Show 7 not 8 SHA charcters in statusline

This commit is contained in:
Tim Pope
2018-09-24 17:04:06 -04:00
parent 9fec8aadc5
commit a9100fafb8

View File

@@ -3739,7 +3739,7 @@ function! fugitive#Statusline(...) abort
let status = ''
let commit = s:DirCommitFile(@%)[1]
if len(commit)
let status .= ':' . commit[0:7]
let status .= ':' . commit[0:6]
endif
let status .= '('.FugitiveHead(7).')'
return '[Git'.status.']'