From: Jeff King Date: Sat, 13 Feb 2010 11:23:43 GMT Subject: Re: [PATCH] add -p: make the beginning of the hunk easier to see Message-ID: <20100213112342.GA1299@coredump.intra.peff.net> In-Reply-To: <4B768807.3030003@gmail.com> On Sat, Feb 13, 2010 at 12:07:51PM +0100, Björn Gustavsson wrote: > diff --git a/git-add--interactive.perl b/git-add--interactive.perl > index cd43c34..4eb7c7c 100755 > --- a/git-add--interactive.perl > +++ b/git-add--interactive.perl > @@ -1439,6 +1439,8 @@ sub patch_update_file { > !defined $hunk[$ix]{USE}); > } > } > + } continue { > + print "\n" x 4, '=' x 72, "\n"; > } > > @hunk = coalesce_overlapping_hunks(@hunk); Wow, I find this terrifically ugly. I guess you don't use color.interactive, which will output a colored hunk header? Or is it that small hunks tend to confused with the previous hunk? -Peff