Re: -p diff output and the 'Index:' line
- From
Sean <seanlkml@sympatico.ca>
- Date
- May 29, 2005, 07:52 UTC
- Message-ID
- <2788.10.10.10.24.1117353158.squirrel@linux1>
- In-Reply-To
- <7vd5raqy28.fsf@assigned-by-dhcp.cox.net>
On Sun, May 29, 2005 3:41 am, Junio C Hamano said:
Show 15 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. > > 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.
It's good to know you can wrap this into a shell script too, which saves you having to type the search string in "less" each time... something like:
git-diff-tree "$@" | git-diff-helper | less -p "^diff --git .*"
Sean