git-gui: Fix applying a line when all following lines are deletions
commit390425bdef450a0eb246552f94ca88a05dc11d06
authorJeff Epler <jepler@unpythonic.net>
Tue, 8 Dec 2009 00:22:42 +0000 (7 18:22 -0600)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 23 Jan 2010 23:00:09 +0000 (23 15:00 -0800)
tree3a277ad02d60707d4588980c113e3c67a19128d2
parent7ec2b69f1ad54db0acee165701c769de33f5ba13
git-gui: Fix applying a line when all following lines are deletions

If a diff looked like:

 @@
  context
 -del1
 -del2

and you wanted to stage the deletion 'del1', the generated patch
wouldn't apply because it was missing the line 'del2' converted to
context, but this line was counted in the @@-line

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/diff.tcl