summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7bbdeaa)
raw | patch | inline | side by side (parent: 7bbdeaa)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 12 Feb 2006 02:55:43 +0000 (18:55 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 12 Feb 2006 02:55:43 +0000 (18:55 -0800) |
Johannes noticed that git-rerere depends on Digest.pm, and if
one does not use the command, one can live without it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
one does not use the command, one can live without it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-am.sh | patch | blob | history | |
git-commit.sh | patch | blob | history | |
git-merge.sh | patch | blob | history |
diff --git a/git-am.sh b/git-am.sh
index ee6886f300f507b26bd8f96a01d30cb7c6d2ee39..98b9215f700b5cb6a01e39f0f0f0100dcb6e395e 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
# saying that we reverted all those changes.
git-merge-resolve $orig_tree -- HEAD $his_tree || {
- git-rerere
+ if test -d "$GIT_DIR/rr-cache"
+ then
+ git-rerere
+ fi
echo Failed to merge in the changes.
exit 1
}
diff --git a/git-commit.sh b/git-commit.sh
index 073ec81e14e8aa55df913b4452ead35fb73d5134..59551d99f9672233da2d8d847f9f4d535dba26de 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
fi
ret="$?"
rm -f "$GIT_DIR/COMMIT_MSG" "$GIT_DIR/COMMIT_EDITMSG"
-git-rerere
+if test -d "$GIT_DIR/rr-cache"
+then
+ git-rerere
+fi
if test -x "$GIT_DIR"/hooks/post-commit && test "$ret" = 0
then
diff --git a/git-merge.sh b/git-merge.sh
index dc17baf6e0017b99f94fd9b462ce7243d1fbe0e0..74f07610fa2042ef0f2cb12c051d3be9139a680b 100755 (executable)
--- a/git-merge.sh
+++ b/git-merge.sh
sed -e 's/^[^ ]* / /' |
uniq
} >>"$GIT_DIR/MERGE_MSG"
- git rerere
+ if test -d "$GIT_DIR/rr-cache"
+ then
+ git-rerere
+ fi
die "Automatic merge failed; fix up by hand"
fi