Fix: remove explicit -u flag in git status command in _forgit_add

git status includes untracked files by default, so passing the flag
explicitly is not necessary. This allows overriding forgits behavior
by setting showUntrackedFiles = no in the .gitconfig.
This commit is contained in:
sandroid 2025-07-14 18:37:33 +02:00
parent b71e54c4aa
commit e492774175
No known key found for this signature in database
GPG key ID: 91418C9982B8B76E

View file

@ -477,7 +477,7 @@ _forgit_add() {
files=()
while IFS='' read -r file; do
files+=("$file")
done < <(git -c color.status=always -c status.relativePaths=true -c core.quotePath=false status -su |
done < <(git -c color.status=always -c status.relativePaths=true -c core.quotePath=false status -s |
grep -F -e "$changed" -e "$unmerged" -e "$untracked" |
sed -E 's/^(..[^[:space:]]*)[[:space:]]+(.*)$/[\1] \2/' |
FZF_DEFAULT_OPTS="$opts" fzf |