Improve vim statusline blame for uncommitted changes

This commit is contained in:
Talia 2020-08-27 11:18:03 +02:00
parent 70ae947739
commit 21f106fb93
1 changed files with 5 additions and 1 deletions

View File

@ -176,7 +176,11 @@ function s:split_blame_entry(idx, entry)
let l:map["commit"]=a:entry[:match(a:entry, " ")-1]
let l:map["time"]=strftime("%Y-%d-%m %H:%M:%S", l:map["committer-time"])
let l:map["date"]=strftime("%Y-%d-%m", l:map["committer-time"])
if l:map["author"]=="Not Committed Yet"
let l:map["short"]="(Uncommitted)"
else
let l:map["short"]=l:map["commit"][:6]." ".l:map["time"]." ".l:map["author"]
end
return l:map
endfun
let s:split_blame_entry_ref = funcref("s:split_blame_entry")