X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-status.sh;h=b90ffc198d97bccfc7f484e8555b01ba9bf5217b;hb=d3bfdb755e06c04492ad3977e7df3d780b6e02f2;hp=62a24a9b03a259fa94f61b3cb060c2b99f55e40e;hpb=38cc7ab8144e111b47ac0ad3fcf6cb70d546e473;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