threads / discuss / 44459

pre-rebase, post-rewrite, ...

Subject: pre-rebase, post-rewrite, ...

## tl;dr

One message between Nov 11, 2016 and Nov 11, 2016.

replies: 0people: 1as markdown or json

Uwe Hausbrand· Nov 11, 2016, 09:22 UTC · lore
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

← back to recent threads