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

pre-rebase, post-rewrite, ...

From
Uwe Hausbrand <uwe.hausbrand@gmx.de>
Date
Nov 11, 2016, 09:22 UTC
Message-ID
<CAHNyMp8sM70SyDC=Ae=HpQ2bRuqJB9DzmjvN=JK7oQYxaJZxUg@mail.gmail.com>
Hi all,

I am using the pre-rebase hook to generate a tag. I am using this tag to check if my rebase lost any commits or content when i'm cleaning up my local commit history. What i now want to do is using a post-rebase hook to make a diff check and remove my generated tag in case there is no difference.

I use the post-rewrite hook to make this check, but this only triggers in case of a rewrite happening (which is understandable). But the pre-rebase hook triggers on every git rebase call and so i generate tags which could be removed automatically.

Is there any other hook i could use or why is there no post-rebase hook?

An older post mentions ( http://marc.info/?l=git&m=120796177421283&w=2 ) point 5 which i think applies to my problem, but as i can't alias real git commands (which is ok) i would need to use a new command.

Best regards, Uwe

Message 1 of 1 in “pre-rebase, post-rewrite, ...”
  1. Uwe HausbrandNov 11, 2016

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.