From 12d5d3c0d1e06caccd33bfcf97198ad91736db59 Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Wed, 2 Sep 2020 15:40:02 +0800 Subject: [PATCH] fish: sync #107 --- forgit.plugin.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forgit.plugin.fish b/forgit.plugin.fish index 1f4ac54..906303c 100755 --- a/forgit.plugin.fish +++ b/forgit.plugin.fish @@ -159,7 +159,7 @@ function forgit::checkout_file set files (git ls-files --modified "$git_rev_parse" | env FZF_DEFAULT_OPTS="$opts" fzf --preview="$cmd") if test -n "$files" for file in $files - echo $file | tr '\n' '\0' | xargs -I{} -0 git checkout -q {} + echo $file | tr '\n' '\0' | xargs -I{} -0 git checkout -q {} end git status --short return @@ -189,11 +189,11 @@ function forgit::clean $FORGIT_CLEAN_FZF_OPTS " - set files (git clean -xdfn $argv| awk '{print $3}'| env FZF_DEFAULT_OPTS="$opts" fzf |sed 's#/$##') + set files (git clean -xdffn $argv| awk '{print $3}'| env FZF_DEFAULT_OPTS="$opts" fzf |sed 's#/$##') if test -n "$files" for file in $files - echo $file | tr '\n' '\0'| xargs -0 -I{} git clean -xdf {} + echo $file | tr '\n' '\0'| xargs -0 -I{} git clean -xdff {} end git status --short return