X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-status.sh;h=b90ffc198d97bccfc7f484e8555b01ba9bf5217b;hb=4e72dcec89c7cda7022d4ec2dd686e77deb5376e;hp=62a24a9b03a259fa94f61b3cb060c2b99f55e40e;hpb=1301c6eb412e7c5511b952a12e42c70ad56f028b;p=git.git diff --git a/git-status.sh b/git-status.sh index 62a24a9b..b90ffc19 100755 --- a/git-status.sh +++ b/git-status.sh @@ -2,7 +2,7 @@ # # Copyright (c) 2005 Linus Torvalds # -. git-sh-setup || die "Not a git archive" +GIT_DIR=$(git-rev-parse --git-dir) || exit report () { header="# @@ -41,7 +41,7 @@ git-update-index -q --unmerged --refresh || exit if GIT_DIR="$GIT_DIR" git-rev-parse --verify HEAD >/dev/null 2>&1 then - git-diff-index -M --cached --name-status HEAD | + git-diff-index -M --cached --name-status --diff-filter=MDTCRA HEAD | sed -e ' s/\\/\\\\/g s/ /\\ /g