Re: [JGIT PATCH 8/6] Fix zero context insert and delete hunk headers to match CGit
- From
Miles Bader <miles@gnu.org>
- Date
- May 3, 2009, 00:50 UTC
- Message-ID
- <8763gjdn6r.fsf@catnip.gol.com>
- In-Reply-To
- <20090503001423.GO23604@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
> And here is that hack. It just feels wrong to me that I need > to subtract 1 from the Edit region's line numbers, *only* when > context is 0, in order to get the same output as CGit.
A big comment saying "this may look a bit funny, but it's the standard's fault: [text from std...]" might help salve the wound...
-Miles
-- .Numeric stability is probably not all that important when you're guessing.