Skip to content

Commit b7f5716

Browse files
committed
Merge branch 'sg/complete-untracked-filter'
* sg/complete-untracked-filter: completion: improve untracked directory filtering for filename completion
2 parents 40b7732 + ea95c7b commit b7f5716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ _git_add ()
901901
esac
902902

903903
# XXX should we check for --update and --all options ?
904-
__git_complete_index_file "--others --modified"
904+
__git_complete_index_file "--others --modified --directory --no-empty-directory"
905905
}
906906

907907
_git_archive ()
@@ -1063,7 +1063,7 @@ _git_clean ()
10631063
esac
10641064

10651065
# XXX should we check for -x option ?
1066-
__git_complete_index_file "--others"
1066+
__git_complete_index_file "--others --directory"
10671067
}
10681068

10691069
_git_clone ()

0 commit comments

Comments
 (0)