projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Better error reporting for "git status"
[git.git]
/
git-status.sh
diff --git
a/git-status.sh
b/git-status.sh
index ca9a15459fc55c8a03aabf2bed85bc34817df450..44398d760c4b212bfebbbe09c4bb11d2068ad49d 100755
(executable)
--- a/
git-status.sh
+++ b/
git-status.sh
@@
-37,7
+37,7
@@
refs/heads/master) ;;
*) echo "# On branch $branch" ;;
esac
-git-update-index -
-refresh >/dev/null 2>&1
+git-update-index -
q --unmerged --refresh || exit
if GIT_DIR="$GIT_DIR" git-rev-parse --verify HEAD >/dev/null 2>&1
then