rebase -m: fix --signoff with conflicts
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | sequencer: always free "struct replay_opts"sequencer.c | +4 | 0 replies | |
| 2/5 | sequencer: start removing private fields from public APIsequencer.c sequencer.h | +35 | 1 reply | |
| 3/5 | sequencer: move current fixups to private contextsequencer.c sequencer.h | +57 | 1 reply | |
| 4/5 | sequencer: store commit message in private contextsequencer.c | +50 | 1 reply | |
| 5/5 | rebase -m: fix --signoff with conflictssequencer.c t/ t/ | +97 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] rebase -m: fix --signoff with conflicts
From: Phillip Wood <[email protected]>
When rebasing with "--signoff" the commit created by "rebase --continue" after resolving conflicts or editing a commit fails to add the "Signed-off-by:" trailer. This happens because the message from the original commit is reused instead of the one that would have been used if the sequencer had not stopped for the user interaction. This series fixes that by introducing an strbuf to hold the message which we then write to rebase_path_message() when stopping for user interaction.
The patches are structured as follows:
Patches 1–3 add private "struct replay_ctx" to "struct replay_opts" and move the private members from the latter into the former. These changes are largely mechanical.
Patch 4 adds strbuf to "struct replay_ctx" to hold the commit message. This change is also largely mechanical.
Patch 5 fixes the bug by using the changes in patch 4 to write the correct message to disc when stopping for user interaction.
This series is based on a merge of 'maint' and 'pw/t3428-cleanup'. In principle it would be passible to avoid the refactoring in patches 1–3 and add a new member to "struct replay_opts" instead. However the changes in those patches are largely mechanical so should be low-risk and they pave the way for more improvements and bug fixes in the future.
base-commit: 7bd541c104a2e383dd250f5f8e514785c4cabbc0
Published-As: https://github.com/phillipwood/git/releases/tag/pw%2Frebase-fix-signoff%2Fv1
View-Changes-At: https://github.com/phillipwood/git/compare/7bd541c10...4c8f88437
Fetch-It-Via: git fetch https://github.com/phillipwood/git pw/rebase-fix-signoff/v1
Phillip Wood (5):
sequencer: always free "struct replay_opts"
sequencer: start removing private fields from public API
sequencer: move current fixups to private context
sequencer: store commit message in private context rebase -m: fix --signoff with conflicts
sequencer.c | 250 ++++++++++++++++++++++++-------------- sequencer.h | 11 +- t/t3428-rebase-signoff.sh | 96 ++++++++++++--- t/t3434-rebase-i18n.sh | 2 +- 4 files changed, 243 insertions(+), 116 deletions(-)
base-commit: 7bd541c104a2e383dd250f5f8e514785c4cabbc0
Signature · 1 line
2.44.0.661.ge68cfcc6c2f