git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-commit: Only call git-rerere if $GIT_DIR/rr-cache exists

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 11, 2006, 15:03 UTC
Message-ID
<Pine.LNX.4.63.0602111602270.26560@wbgn013.biozentrum.uni-wuerzburg.de>

This makes an error go away if you do not have Digest.pm installed, but do not intend to make use of git-rerere anyway.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 git-commit.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
111b9e1abeb98a8009a457fe8e7dff5a91b30778
diff --git a/git-commit.sh b/git-commit.sh
index 073ec81..28ec7c3 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -638,7 +638,7 @@ else
 fi
 ret="$?"
 rm -f "$GIT_DIR/COMMIT_MSG" "$GIT_DIR/COMMIT_EDITMSG"
-git-rerere
+test -d "$GIT_DIR/rr-cache" && git-rerere
 
 if test -x "$GIT_DIR"/hooks/post-commit && test "$ret" = 0
 then
-- 
1.1.4.gaef2-dirty
Next: Junio C Hamano
Message 1 of 2 in “git-commit: Only call git-rerere if $GIT_DIR/rr-cache exists”
  1. git-commit: Only call git-rerere if $GIT_DIR/rr-cache existsJohannes Schindelin, Feb 11, 2006
  2. Junio C HamanoFeb 11, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.