mirror of
https://github.com/git/git.git
synced 2024-11-01 06:47:52 +01:00
git-gui: Label the uncommitted blame history entry
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>
This commit is contained in:
parent
2f85b7e4b4
commit
c5db65aef3
1 changed files with 2 additions and 0 deletions
|
@ -370,6 +370,8 @@ method _history_menu {} {
|
|||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue