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

Re: -p diff output and the 'Index:' line

From
Petr Baudis <pasky@ucw.cz>
Date
May 29, 2005, 12:02 UTC
Message-ID
<20050529120248.GD1036@pasky.ji.cz>
In-Reply-To
<7vd5raqy28.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Sun, May 29, 2005 at 09:41:03AM CEST, I got a letter where Junio C Hamano <junkio@cox.net> told me that...

Show 9 quoted lines
> >>>>> "PB" == Petr Baudis <pasky@ucw.cz> writes:
> 
> PB>   What do you think? Would you hate it to show up in the diffs, or are
> PB> you ok with it?
> 
> I cannot tell if you are asking about cg-diff or changing the
> built-in diff-* output.  The Subject: line suggests you are
> talking about the latter, but if that is the case I have to
> admit that I am not that sympathetic to Index: nor separator.
Yes, I'm talking about the latter.
Show 5 quoted lines
> Like Linus, I do "/^diff --git .*" in my less sessions, which
> gives a very nice highlighted separator line without wasting a
> single line on the terminal.  If any of the readers on the list
> didn't know about this trick (especially the trailing .* part),
> please try it.  I'm certain everybody would love it.

When I do just cg-diff to see what I changed I usually do not pipe it to less, and typing that / stuff seems insane (although /^d.* could give a good approximation). OTOH I think I'll go for the diff output colorification (at the Cogito level), so the separator indeed isn't strictly necessary. I can live without it. :-)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Thomas GlanzmannNext: Junio C Hamano
Message 5 of 9 in “-p diff output and the 'Index:' line”
  1. Petr BaudisMay 29, 2005
  2. Junio C HamanoMay 29, 2005
  3. SeanMay 29, 2005
  4. Thomas GlanzmannMay 29, 2005
  5. Petr BaudisMay 29, 2005
  6. Junio C HamanoMay 29, 2005
  7. Petr BaudisMay 29, 2005
  8. Junio C HamanoMay 30, 2005
  9. Petr BaudisMay 30, 2005

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.