-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to "bake in" replace references #82
Comments
Looks like, this is still not possible. I want to do something like:
|
@mhagger possible that your issue text refers to syntax
I wonder how JGit handles replacements. @HelgeBoehme see PR #147 for a |
@javabrett Yes, I meant I'm not sure that you want to use replace references permanently. Aside from requiring all repository users to do special configuration, it's also nonconventional and you're therefore more likely to run into bugs and edge cases. If at all possible, I'd suggest using replace references temporarily while in the process of rewriting your history, then getting rid of them. |
Within Git itself, you can use "replace" references to cause it to use one object in place of another. This facility has gotten more powerful lately with
git replace --edit
-- rewrite an object interactively by editing its text representationgit replace --graft
-- rewrite a commit to have different parentsIt would be nice to be able to "bake in" such replacements, making the substitutions a part of the permanent Git history. Then, for example, one could do fixups interactively via replace references, and then bake them in to make the changes permanent. "Baking in" obviously involves percolating the substitutions upwards to the branch tips, something that BFG must already have code to do.
Would it be hard to teach BFG to bake replace refences in? I think it would be a great feature!
Edited to fix git commands
The text was updated successfully, but these errors were encountered: