From fd373ba6c2081f7fedce77d332014b20fb5af201 Mon Sep 17 00:00:00 2001 From: sandr01d <88739791+sandr01d@users.noreply.github.com> Date: Tue, 15 Jul 2025 21:00:04 +0200 Subject: [PATCH] Fix: remove explicit -u flag in git status command in _forgit_add (#455) 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. --- bin/git-forgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-forgit b/bin/git-forgit index 6e5f916..c9be829 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -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 |