Merge pull request #888 from ohcibi/feature/add-pathshorten-as-long-branch-name-option

Add `pathshorten` as a built-in format for long branch names
This commit is contained in:
Bailey Ling committed 2015-12-28 14:56:02 -05:00
commit 2fbdbc8893
2 files changed
+9 -1

No files matched your search

+4
View File
@@ -14,6 +14,10 @@ if s:head_format == 1
function! s:format_name(name)
return fnamemodify(a:name, ':t')
endfunction
elseif s:head_format == 2
function! s:format_name(name)
return pathshorten(a:name)
endfunction
elseif type(s:head_format) == type('')
function! s:format_name(name)
return call(s:head_format, [a:name])