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

What's the recommendation for forgetting all rerere's records?

From
Sean Allred <allred.sean@gmail.com>
Date
Dec 6, 2023, 22:37 UTC
Message-ID
<m0y1e7kkft.fsf@epic96565.epic.com>
Hi all,

When outside the context of a conflict (no rebase/merge in progress), what's the intended workflow to clear out the contents of $GIT_DIR/rr-cache?

We have developers who'd like to discard their faulty resolutions after completing a rebase gone awry (but not aborted). There doesn't seem to be a recommendation in git-rerere(1) for how to deal with this situation. (git-rerere-forget seems to only work in the context of an active conflict -- and is documented as such.)

I'm wary of recommending `rm -rf "$(git rev-parse --git-dir)/rr-cache"` -- it's hard to describe this as anything but hacky when the rest of the experience is handled in porcelain.

Thanks!

-- Sean Allred

Next: Junio C Hamano
Message 1 of 7 in “What's the recommendation for forgetting all rerere's records?”
  1. Sean AllredDec 6, 2023
  2. Junio C HamanoDec 8, 2023
  3. Sean AllredDec 15, 2023
  4. Junio C HamanoDec 15, 2023
  5. Sean AllredJan 3, 2024
  6. Sean AllredJan 3, 2024
  7. Sean AllredFeb 10, 2024

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.