git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 18, 2007, 06:13 UTC
Message-ID
<7vy7he8cjl.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070718032907.GY32566@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 31 quoted lines
> 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+######################################################################
> a+##
>   ## repository setup
>   
>   if {[catch {
> a@@ -1598,43 +1635,6 a@@ apply_config
>   
>   ######################################################################
>   ##
> a-## feature option selection
> ....
> a-##
>   ## ui construction
>   
>   set ui_comm {}
Gaah, my eyes, my *eyes*!!
	runs, stays in bathroom for 10 minutes and washes, and
        comes back...

It might not be actually so bad. But I wonder if it would be more obvious if you do not show the whole "a-" lines but leave just a marker there. That is (ugliness of "a@@" and "a-" that made me wash my eyes needs to be fixed, though -- but that is only the syntax):

a@@ -1598,43 +1635,6 a@@ apply_config
  
  ######################################################################
  ##
a-<<< Block a was originally here >>>
  ## ui construction
  
  set ui_comm {}

You are coming up with a new output format that is only used when it is a straight move and nothing else, so by definition there is really no need to show both removal and addition.

Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 5 of 11 in “Move bundle specific stuff into bundle.[ch]”
  1. 1/3 Move bundle specific stuff into bundle.[ch]Johannes Schindelin, Jul 17, 2007
  2. Daniel BarkalowJul 18, 2007
  3. Daniel BarkalowJul 18, 2007
  4. Shawn O. PearceJul 18, 2007
  5. Junio C HamanoJul 18, 2007
  6. Shawn O. PearceJul 18, 2007
  7. Junio C HamanoJul 18, 2007
  8. Johannes SchindelinJul 18, 2007
  9. Johannes SchindelinJul 18, 2007
  10. Daniel BarkalowJul 18, 2007
  11. Johannes SchindelinJul 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.