Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch]

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Barkalow <barkalow@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, <git@...>
Date: Tuesday, July 17, 2007 - 11:29 pm

Daniel Barkalow <barkalow@iabervon.org> wrote:

I just moved a huge block in git-gui so I have a great example...

What about a patch format like this?  I doubt people move more than
26 blocks in the same patch of the same file, so using a single
character block prefix when the before/after images are identical
might work OK.

diff --git a/git-gui.sh b/git-gui.sh
index 0443129..f13fa80 100755
--- a/git-gui.sh
+++ b/git-gui.sh
a@@ -632,6 +632,43 a@@ You are using [git-version]:
  
  ######################################################################
  ##
a+## feature option selection
a+
a+if {[regexp {^git-(.+)$} [appname] _junk subcommand]} {
a+	unset _junk
a+} else {
a+	set subcommand gui
a+}
a+if {$subcommand eq {gui.sh}} {
a+	set subcommand gui
a+}
a+if {$subcommand eq {gui} && [llength $argv] > 0} {
a+	set subcommand [lindex $argv 0]
a+	set argv [lrange $argv 1 end]
a+}
a+
a+enable_option multicommit
a+enable_option branch
a+enable_option transport
a+
a+switch -- $subcommand {
a+browser -
a+blame {
a+	disable_option multicommit
a+	disable_option branch
a+	disable_option transport
a+}
a+citool {
a+	enable_option singlecommit
a+
a+	disable_option multicommit
a+	disable_option branch
a+	disable_option transport
a+}
a+}
a+
a+######################################################################
a+##
  ## repository setup
  
  if {[catch {
a@@ -1598,43 +1635,6 a@@ apply_config
  
  ######################################################################
  ##
a-## feature option selection
a-
a-if {[regexp {^git-(.+)$} [appname] _junk subcommand]} {
a-	unset _junk
a-} else {
a-	set subcommand gui
a-}
a-if {$subcommand eq {gui.sh}} {
a-	set subcommand gui
a-}
a-if {$subcommand eq {gui} && [llength $argv] > 0} {
a-	set subcommand [lindex $argv 0]
a-	set argv [lrange $argv 1 end]
a-}
a-
a-enable_option multicommit
a-enable_option branch
a-enable_option transport
a-
a-switch -- $subcommand {
a-browser -
a-blame {
a-	disable_option multicommit
a-	disable_option branch
a-	disable_option transport
a-}
a-citool {
a-	enable_option singlecommit
a-
a-	disable_option multicommit
a-	disable_option branch
a-	disable_option transport
a-}
a-}
a-
a-######################################################################
a-##
  ## ui construction
  
  set ui_comm {}
-- 
1.5.3.rc1.818.g84b7


-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] Move bundle specific stuff into bundle.[ch], Johannes Schindelin, (Tue Jul 17, 6:49 pm)
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch], Daniel Barkalow, (Tue Jul 17, 10:48 pm)
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch], Johannes Schindelin, (Wed Jul 18, 5:56 am)
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch], Daniel Barkalow, (Wed Jul 18, 12:25 pm)
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch], Johannes Schindelin, (Wed Jul 18, 12:33 pm)
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch], Daniel Barkalow, (Tue Jul 17, 11:23 pm)
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch], Johannes Schindelin, (Wed Jul 18, 6:09 am)
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch], Shawn O. Pearce, (Tue Jul 17, 11:29 pm)
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch], Shawn O. Pearce, (Wed Jul 18, 2:19 am)