Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
archive - leakfix for format_subst()
[gitweb.git]
/
git-merge-ours.sh
diff --git
a/git-merge-ours.sh
b/git-merge-ours.sh
index 4f3d053889de4a5ba8e6e5d519c014a51220accd..c81a790aa60ea08144dd0899d1aee2ec334a1825 100755
(executable)
--- a/
git-merge-ours.sh
+++ b/
git-merge-ours.sh
@@
-9,6
+9,6
@@
# because the current index is what we will be committing as the
# merge result.
-
test "$(git-diff-index --cached --name-status HEAD)" = ""
|| exit 2
+
git diff-index --quiet --cached HEAD
|| exit 2
exit 0