Alexander Gladysh [off-list ref] wrote:
On Fri, Sep 5, 2008 at 8:53 AM, Shawn O. Pearce [off-list ref] wrote:
quoted
git-gui: Fix diff parsing for lines starting with "--" or "++"
Somewhat related bug, but reproduceable event without "--". If I set
diff context to none in git gui (by repeatedly clicking "show less
context") I'm sometimes not able to stage hunk or line.
git-apply refuses to apply a patch with 0 context lines. Latest
git-gui in maint (and in Git 1.6.0.2?) won't let you reduce the
number of context lines below 1, so you never can see this error.
Reduce context to none, then do stage hunk. It fails with message:
error: patch failed: file.ext:3
error: file.ext: patch does not apply
OK
--
Shawn.