Skip to content

run commit-callback for a range of commits #382

Answered by newren
Machine-Maker asked this question in Q&A
Discussion options

You must be logged in to vote

See the last paragraph of https://github.com/newren/git-filter-repo/blob/main/Documentation/FAQ.md#why-did-git-filter-repo-rewrite-more-commit-hashes-than-i-expected. You should probably see https://github.com/newren/git-filter-repo/blob/main/Documentation/FAQ.md#why-did-git-filter-repo-rewrite-commit-hashes too, as somehow expecting new commits to maintain their same commit IDs despite rewriting some of their ancestors is impossible within Git. Ranges passed to --refs need to include refnames rather than revisions on the right side of the range or you're merely adding new commits that nothing references to your history.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by newren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants