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

What hook is called after `git rebase --abort`?

From
KKKonstantin Kharlamov <hi-angel@yandex.ru>
Date
Apr 17, 2023, 10:07 UTC
Message-ID
<0d8c0c2c6f9348a2afea3992f589ab52db5bb434.camel@yandex.ru>
As title says.

The usecase is typical: there's the infamous issue of dangling git-submodule changes appearing in various operations, leading to problems such as inadvertently commiting a submodule hash change while editing an irrelevant commit.

I already had sprinkled a few `git submodule update`s in `post-checkout` and `post-rewrite` hooks, but I just found one more case: executing a `git rebase --abort` to abort a `git rebase` operation that involved changing a submodule commit results in the submodule change appearing in `git diff` even though no rebase operation is ongoing. Apparently there's one more hook that requires to have the same command, any ideas what that could be?

P.S.: please keep me CCed, I'm not subscribed to the list
Message 1 of 1 in “What hook is called after `git rebase --abort`?”
  1. Konstantin KharlamovApr 17, 2023

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.