From 1297773a266fcb8d36cbb99568c2850ee41d36d1 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 25 Apr 2019 07:35:41 +0200 Subject: [PATCH] branch: skip untracked files for clean state --- autoload/airline/extensions/branch.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 39f0a939..0dd2e6ba 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -17,7 +17,7 @@ let s:vcs_config = { \ 'git': { \ 'exe': 'git', \ 'cmd': 'git status --porcelain -- ', -\ 'dirty': 'git status --porcelain', +\ 'dirty': 'git status -uno --porcelain', \ 'untracked_mark': '??', \ 'exclude': '\.git', \ 'update_branch': 's:update_git_branch', @@ -28,7 +28,7 @@ let s:vcs_config = { \ 'mercurial': { \ 'exe': 'hg', \ 'cmd': 'hg status -u -- ', -\ 'dirty': 'hg status -muard', +\ 'dirty': 'hg status -mard', \ 'untracked_mark': '?', \ 'exclude': '\.hg', \ 'update_branch': 's:update_hg_branch',