Code

git gui: show diffs with a minimum of 1 context line
authorClemens Buchacher <drizzd@aon.at>
Sat, 30 Aug 2008 16:45:27 +0000 (18:45 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 1 Sep 2008 19:45:46 +0000 (12:45 -0700)
commit55ba8a3474102eb8d638834d2b9bfe58d5014a40
tree288d84848a2e6444663896f5318a6de1774ea23c
parentf2816b3d34ef93553b14a5fe23c48d092a74901f
git gui: show diffs with a minimum of 1 context line

Staging hunks without context does not work, because line number
information would have to be recomputed for individual hunks.

Since it is already possible to stage individual lines using
'Stage Line for Commit', zero context diffs are not really
necessary for git gui.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh
lib/diff.tcl
lib/option.tcl