Fix a minor problem in identifying squashes vs. normal splits.

This didn't seem to have any noticeable side effects other than
suspicious-looking log messages when you used -d.
This commit is contained in:
Avery Pennarun 2009-10-02 16:09:09 -04:00
parent 6f2012cdc0
commit 2275f7077d

View File

@ -214,12 +214,14 @@ find_existing_splits()
--pretty=format:'START %H%n%s%n%n%b%nEND%n' $revs | --pretty=format:'START %H%n%s%n%n%b%nEND%n' $revs |
while read a b junk; do while read a b junk; do
case "$a" in case "$a" in
START) main="$b"; sq="$b" ;; START) sq="$b" ;;
git-subtree-mainline:) main="$b" ;; git-subtree-mainline:) main="$b" ;;
git-subtree-split:) sub="$b" ;; git-subtree-split:) sub="$b" ;;
END) END)
debug " Main is: '$main'"
if [ -z "$main" -a -n "$sub" ]; then if [ -z "$main" -a -n "$sub" ]; then
# squash commits refer to a subtree # squash commits refer to a subtree
debug " Squash: $sq from $sub"
cache_set "$sq" "$sub" cache_set "$sq" "$sub"
fi fi
if [ -n "$main" -a -n "$sub" ]; then if [ -n "$main" -a -n "$sub" ]; then