From 8efcf352a39f6280ba76407c3eb72231e2e43184 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Wed, 18 Sep 2019 22:12:37 +0100 Subject: [PATCH] updated git.sh --- .bash.d/git.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash.d/git.sh b/.bash.d/git.sh index f975879c..05e9c8b4 100644 --- a/.bash.d/git.sh +++ b/.bash.d/git.sh @@ -458,7 +458,7 @@ gitdiff(){ revert_typechange(){ # want splitting to separate filenames # shellcheck disable=SC2046 - co $(git status --porcelain | awk '/^.T/{print $2}') + co $(git status --porcelain -s "${1:-.}" | awk '/^.T/{print $2}') } rm_untracked(){ @@ -467,6 +467,6 @@ rm_untracked(){ for x in "${@:-}"; do # want splitting to separate filenames # shellcheck disable=SC2046 - rm -v $(git status --porcelain setup | awk '/^??/{print $2}') + rm -v $(git status --porcelain -s "$x" | awk '/^??/{print $2}') done }