run commit-callback for a range of commits #382
-
I was looking to run the commit callback for a range of commits. The command I was running doesn't fail, but it doesn't seem to modify the commits? I was running
on the master branch of https://github.com/PaperMC/Paper. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I was wondering that too, I can confirm applying it to a range doesn't work for some reason. |
Beta Was this translation helpful? Give feedback.
-
Any news on this? It doesnt work for me either... |
Beta Was this translation helpful? Give feedback.
-
I just realized, I'm in the same boat with another example here: #439... I've now upvoted the question, because seems we're a few persons in this boat... |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.