summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d36a8f7)
raw | patch | inline | side by side (parent: d36a8f7)
author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 16 Jan 2008 06:29:39 +0000 (01:29 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 16 Jan 2008 06:29:39 +0000 (01:29 -0500) |
If we apply a hunk in either direction this may change the file's
status. For example if a file is completely unstaged, and has at
least two hunks in it and the user stages one hunk the file will
change from "Modified, not staged" to "Portions staged for commit".
Resetting the file path causes our trace on this variable to fire;
that trace is used to update the file header in the diff viewer to
the file's current status.
Noticed by Johannes Sixt.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
status. For example if a file is completely unstaged, and has at
least two hunks in it and the user stages one hunk the file will
change from "Modified, not staged" to "Portions staged for commit".
Resetting the file path causes our trace on this variable to fire;
that trace is used to update the file header in the diff viewer to
the file's current status.
Noticed by Johannes Sixt.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/diff.tcl | patch | blob | history |
diff --git a/lib/diff.tcl b/lib/diff.tcl
index 18aba3eae34297471aa905c9e157e1b5aedd369e..d04f6dbde2c468274770aa5543758186803e9ac5 100644 (file)
--- a/lib/diff.tcl
+++ b/lib/diff.tcl
display_file $current_diff_path $mi
if {$o eq {_}} {
clear_diff
+ } else {
+ set current_diff_path $current_diff_path
}
}