-
-
Notifications
You must be signed in to change notification settings - Fork 89
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 a --notes option to 'move' command #1348
Comments
Possibly git-branchless should just observe the usual note-rewriting configuration options like https://git-scm.com/docs/git-config#Documentation/git-config.txt-notesrewriteRef Does note-rewriting work if you enable it and use on-disk rebases ( |
So that's kind of working. First, here's the config options I set: $ git config --global --list | grep notes.rewrite The good news is that setting those options and doing --on-disk The slight bummer is that, as you seem to have expected, if I don't set --on-disk, the notes are not copied when running The bad news is that notes are not copied/maintained when doing a Watching the output from
|
I didn't test |
Since some of the git-branchless commands just call I don't know exactly when/how during the rebase Git copies the notes (and what happens, for example, if you rewrite some commits and then abort the rebase?). The best place to replicate the Git logic would probably be in git-branchless/git-branchless-lib/src/core/rewrite/execute.rs Lines 897 to 905 in 8d99e3d
|
The 'move' command will automatically update all branches in the commits being moved, so that they move with the commits. Which is of course very useful.
It would be great if there was a --notes option that could be passed to the 'move' command that would do the same for commit notes. It would effectively just need to track the original commits and their counterparts after the move, and then run "git notes copy $ORIGINAL_COMMIT $MOVED_COMMIT" for all of them.
The text was updated successfully, but these errors were encountered: