From e4927741756bb2a44a1b984be5f3885e8d7d5b38 Mon Sep 17 00:00:00 2001 From: sandroid Date: Mon, 14 Jul 2025 18:37:33 +0200 Subject: [PATCH] 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. --- bin/git-forgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-forgit b/bin/git-forgit index 365dd9c..de6f2ed 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 |