Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: Fix "Stage/Unstage Line" with one line of context.
[gitweb.git]
/
lib
/
diff.tcl
diff --git
a/lib/diff.tcl
b/lib/diff.tcl
index 96ba94906cf8037b58c2ba135654da840f9fff9a..ee7f391e2f24c418c14cacc63768da7b258e3754 100644
(file)
--- a/
lib/diff.tcl
+++ b/
lib/diff.tcl
@@
-423,6
+423,9
@@
proc apply_line {x y} {
# the line to stage/unstage
set ln [$ui_diff get $i_l $next_l]
set patch "$patch$ln"
+ if {$c1 eq {-}} {
+ set n [expr $n+1]
+ }
} elseif {$c1 ne {-} && $c1 ne {+}} {
# context line
set ln [$ui_diff get $i_l $next_l]