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

`git merge --abort` does not run `git rerere clear`

From
Sam Kuper <sam.kuper@uclmail.net>
Date
Jun 12, 2018, 19:32 UTC
Message-ID
<CAD-JurLXh=rOC=bhjTa8jCpeDWkbDhCztSpjLuMEUGm1-QnAiw@mail.gmail.com>
`man git-rerere` says:
Show 5 quoted lines
> clear
>
> Reset the metadata used by rerere if a merge resolution is to be
> aborted. Calling git am [--skip|--abort] or git rebase
> [--skip|--abort] will automatically invoke this command.

It makes sense that `git am [--skip|--abort]` and `git rebase [--skip|--abort]` would run `git rerere clear`.

However, if they run it, then shouldn't `git merge --abort` run it, too?

If not, then what is the reason why not, and might it be helpful for this reason to be mentioned at some appropriate place in the documentation?

Thanks :)
Next: Junio C Hamano
Message 1 of 3 in “`git merge --abort` does not run `git rerere clear`”
  1. Sam KuperJun 12, 2018
  2. Junio C HamanoJun 12, 2018
  3. Sam KuperJun 12, 2018

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.