Skip to content

Commit

Permalink
completions/git: Complete untracked files immediately
Browse files Browse the repository at this point in the history
Fixes #8049
  • Loading branch information
faho committed Jun 8, 2021
1 parent 71b9463 commit 6950272
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/completions/git.fish
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ function __fish_git_files
# (don't use --ignored=no because that was only added in git 2.16, from Jan 2018.
set -q ignored; and set -a status_opt --ignored

set -q untracked; and set -a status_opt -unormal
# If we're looking for untracked files, we give untracked files even inside untracked directories.
# This makes it nicer if e.g. you're in an untracked directory and want to just add one file.
set -q untracked; and set -a status_opt -uall
or set -a status_opt -uno

# We need to set status.relativePaths to true because the porcelain v2 format still honors that,
Expand Down

0 comments on commit 6950272

Please sign in to comment.