feat: support gitbranch

This commit is contained in:
David Zhang
2021-02-13 17:36:54 +08:00
committed by Olivier Roques
parent 6f70203088
commit 3165e722af

View File

@@ -27,6 +27,8 @@ local function get_branch()
branch = fn.FugitiveHead()
elseif g.loaded_gina then
branch = fn['gina#component#repo#branch']()
elseif g.loaded_gitbranch then
branch = fn['gitbranch#name']()
end
return branch ~= '' and fmt('(%s)', branch) or ''
end