feat(git): show diff stats when there's no branch
For example, it can show stats for yadm managed files.
This commit is contained in:
committed by
Olivier Roques
parent
c9209c583b
commit
bbd48eaaef
@@ -45,7 +45,11 @@ end
|
||||
local function get_item()
|
||||
local hunks, branch = get_hunks(), get_branch()
|
||||
if branch == '' then
|
||||
if hunks == '+0 ~0 -0' then
|
||||
return ''
|
||||
else
|
||||
return hunks
|
||||
end
|
||||
end
|
||||
branch = not branch and '' or ' ' .. branch
|
||||
return table.concat({hunks, branch})
|
||||
|
||||
Reference in New Issue
Block a user