diff options
| author | Li Chen <me@linux.beauty> | 2026-03-06 14:53:32 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-06 13:02:20 -0800 |
| commit | e4f9d6b0ab2e1903765258991a6265599d0007ce (patch) | |
| tree | e8c55fc7e1698bb2f0a411f717c1b0a01353aeaf /gitk-git | |
| parent | 5e148696bf86f0173dfc91571d15ba833ec19ccd (diff) | |
| download | git-e4f9d6b0ab2e1903765258991a6265599d0007ce.tar.xz | |
rebase: support --trailer
Add a new --trailer=<trailer> option to git rebase to append trailer
lines to each rewritten commit message (merge backend only).
Because the apply backend does not provide a commit-message filter,
reject --trailer when --apply is in effect and require the merge backend
instead.
This option implies --force-rebase so that fast-forwarded commits are
also rewritten. Validate trailer arguments early to avoid starting an
interactive rebase with invalid input.
Add integration tests covering error paths and trailer insertion across
non-interactive and interactive rebases.
Signed-off-by: Li Chen <me@linux.beauty>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitk-git')
0 files changed, 0 insertions, 0 deletions
