summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2f85b7e)
raw | patch | inline | side by side (parent: 2f85b7e)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 2 Jun 2007 20:03:52 +0000 (16:03 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 6 Jun 2007 05:26:50 +0000 (01:26 -0400) |
If the user runs the blame viewer on a working directory file
instead of a specific commit-ish then we have no value for the
commit SHA1 or the summary line; this causes the history menu
to get an empty entry at the very bottom. We now look for this
odd case and call the meny entry "Working Directory".
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
instead of a specific commit-ish then we have no value for the
commit SHA1 or the summary line; this causes the history menu
to get an empty entry at the very bottom. We now look for this
odd case and call the meny entry "Working Directory".
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/blame.tcl | patch | blob | history |
diff --git a/lib/blame.tcl b/lib/blame.tcl
index d8d27c9cbf31fda84024bd4060a795c7d720ba6e..0561fb491d24bfee649f938060cdf4cc26dd5672 100644 (file)
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
if {[regexp {^[0-9a-f]{40}$} $c]} {
set t [string range $c 0 8]...
+ } elseif {$c eq {}} {
+ set t {Working Directory}
} else {
set t $c
}