author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 3 Aug 2007 02:55:22 +0000 (22:55 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 3 Aug 2007 02:55:22 +0000 (22:55 -0400) | ||
commit | a13ee29b975d3a9a012983309e842d942b2bbd44 | |
tree | 6c4aa2018e61336541a2af4a4bca7eecc7896306 | tree | snapshot |
parent | 84f67537b13bf0a959b1cad50b0d490071dc921a | commit | diff |
git-gui: Avoid Tcl error in popup menu on diff viewer
If there is no path currently shown in the diff viewer then we
were getting Tcl errors anytime the user right-clicked on the
diff viewer to bring up its popup menu. The bug here is caused
by trying to get the file_state for the empty string; this path
is never seen so we never have file_state for it. In such cases
we now disable the Stage Hunk For Commit option.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If there is no path currently shown in the diff viewer then we
were getting Tcl errors anytime the user right-clicked on the
diff viewer to bring up its popup menu. The bug here is caused
by trying to get the file_state for the empty string; this path
is never seen so we never have file_state for it. In such cases
we now disable the Stage Hunk For Commit option.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |