projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc2cff
)
Don't squash-merge if the old and new commits are the same.
author
Avery Pennarun
<apenwarr@gmail.com>
Sat, 30 May 2009 07:33:17 +0000
(
03:33
-0400)
committer
Avery Pennarun
<apenwarr@gmail.com>
Sat, 30 May 2009 07:33:17 +0000
(
03:33
-0400)
git-subtree.sh
patch
|
blob
|
history
diff --git
a/git-subtree.sh
b/git-subtree.sh
index 863e28bb74527d39b6278d4aa4798e78411c79e4..f7fe11117869460aad9f572cf0302b5f06ee0563 100755
(executable)
--- a/
git-subtree.sh
+++ b/
git-subtree.sh
@@
-523,6
+523,10
@@
cmd_merge()
set $first_split
old=$1
sub=$2
+ if [ "$sub" = "$rev" ]; then
+ say "Subtree is already at commit $rev."
+ exit 0
+ fi
new=$(new_squash_commit "$old" "$sub" "$rev") || exit $?
debug "New squash commit: $new"
rev="$new"