<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-rebase.adoc, branch main</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2026-03-06T21:02:20Z</updated>
<entry>
<title>rebase: support --trailer</title>
<updated>2026-03-06T21:02:20Z</updated>
<author>
<name>Li Chen</name>
<email>me@linux.beauty</email>
</author>
<published>2026-03-06T14:53:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e4f9d6b0ab2e1903765258991a6265599d0007ce'/>
<id>urn:sha1:e4f9d6b0ab2e1903765258991a6265599d0007ce</id>
<content type='text'>
Add a new --trailer=&lt;trailer&gt; 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 &lt;me@linux.beauty&gt;
Signed-off-by: Phillip Wood &lt;phillip.wood@dunelm.org.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ja/doc-misc-fixes'</title>
<updated>2025-12-28T08:36:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-12-28T08:36:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=cb7c6f441e58e5d6ea25c41db0ce3331a11ecf14'/>
<id>urn:sha1:cb7c6f441e58e5d6ea25c41db0ce3331a11ecf14</id>
<content type='text'>
Various documentation fixes.

* ja/doc-misc-fixes:
  doc: correct minor wording issues
  doc: fix asciidoc markup issues in several files
</content>
</entry>
<entry>
<title>doc: correct minor wording issues</title>
<updated>2025-12-20T05:55:43Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2025-12-19T18:54:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=8ee262985a1197970cc8938a2fb5c70817d213ab'/>
<id>urn:sha1:8ee262985a1197970cc8938a2fb5c70817d213ab</id>
<content type='text'>
* use imperative mood for consistency in options descriptions
* add missing parenthesis
* reword verbose phrase in git-repack.adoc

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kh/doc-committer-date-is-author-date'</title>
<updated>2025-12-05T05:49:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-12-05T05:49:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=77f8d994a876688f15f5fa00d5cafed235121530'/>
<id>urn:sha1:77f8d994a876688f15f5fa00d5cafed235121530</id>
<content type='text'>
The "--committer-date-is-author-date" option of "git am/rebase" is
a misguided one.  The documentation is updated to discourage its
use.

* kh/doc-committer-date-is-author-date:
  doc: warn against --committer-date-is-author-date
</content>
</entry>
<entry>
<title>doc: warn against --committer-date-is-author-date</title>
<updated>2025-11-20T18:03:31Z</updated>
<author>
<name>Kristoffer Haugsbakk</name>
<email>code@khaugsbakk.name</email>
</author>
<published>2025-11-20T16:26:49Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=fbf3d0669f830b4492070aa33f57dbf2c43fa4c8'/>
<id>urn:sha1:fbf3d0669f830b4492070aa33f57dbf2c43fa4c8</id>
<content type='text'>
This option could create a commit history which violates the assumption
that commits have non-decreasing commit timestamps. Warn against that in
both git-am(1) and git-rebase(1).

The genesis of this option is from git-am(1) and was added in
3f01ad66 (am: Add --committer-date-is-author-date option,
2009-01-22). The commit message doesn’t give us an example
of a use case, but the thread starter does:[1]

    I've a big set of patches in a mbox file: there's sufficient info
    inside for git-am to work.

    Yet, each time I do import these, my sha1sums are changing because of
    different commit dates.

    I'd like to force the commit date to match the info/date from the time
    I received the email (and therefore always get back the right
    sha1sums).

[1]: https://lore.kernel.org/git/46d6db660901221441q60eb90bdge601a7a250c3a247@mail.gmail.com/

So the motivation was to treat git-am(1) as an import command that
creates the same commit IDs.

Putting aside the question of whether you should be using git-am(1) for
importing commits, this approach is problematic:

• you still need to apply the commits to the same base if you want the
  same hashes; and
• you need the same committer.

And if you expect the same committer, why is this person applying the
same patches multiple times with the goal of making *identical* commits?

That was all for git-am(1).

It was added to git-rebase(1) in 570ccad3 (rebase: add options passed to
git-am, 2009-03-18)[2] in order to plug options that could not be sent
on to git-am(1). At this point the utility of the option graduated to
making no sense; a use case for `git rebase --committer-date-is-author-
date` is still yet to be found.

Just warn against using this option on both commands and remind the user
to consider whether they really need it.

† 2: See also 7573cec5 (rebase -i: support
     --committer-date-is-author-date, 2020-08-17) for the commit for the
     merge backend

Suggested-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Kristoffer Haugsbakk &lt;code@khaugsbakk.name&gt;
Acked-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'je/doc-rebase'</title>
<updated>2025-08-28T18:28:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-08-28T18:28:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e345b776f6bdbc48b54f80f2bb990caf36a95a48'/>
<id>urn:sha1:e345b776f6bdbc48b54f80f2bb990caf36a95a48</id>
<content type='text'>
Documentation for "git rebase" has been updated.

* je/doc-rebase:
  doc: git-rebase: update discussion of internals
  doc: git-rebase: move --onto explanation down
  doc: git rebase: clarify arguments syntax
  doc: git rebase: dedup merge conflict discussion
  doc: git-rebase: start with an example
</content>
</entry>
<entry>
<title>doc: git-rebase: update discussion of internals</title>
<updated>2025-08-23T16:03:30Z</updated>
<author>
<name>Julia Evans</name>
<email>julia@jvns.ca</email>
</author>
<published>2025-08-23T00:43:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3f7f2b0359e38a86db601b406d68e8fb43ae977e'/>
<id>urn:sha1:3f7f2b0359e38a86db601b406d68e8fb43ae977e</id>
<content type='text'>
- make it clearer that we're talking about a multistep process
- give a more technically accurate description how rebase works with the
  merge backend.
- condense the explanation of how git rebase skips commits with the same
  textual changes into a single bullet point and remove the explanatory
  diagram. Lots of things which are more complicated are already being
  explained without a diagram.
- remove the explanation of how exactly `--fork-point` and `--root`
  work since that information is in the OPTIONS section
- put all discussion of `ORIG_HEAD` inside the note

Signed-off-by: Julia Evans &lt;julia@jvns.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git-rebase: move --onto explanation down</title>
<updated>2025-08-23T16:03:29Z</updated>
<author>
<name>Julia Evans</name>
<email>julia@jvns.ca</email>
</author>
<published>2025-08-23T00:43:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=981ce57389af2eafb219a8dc4d6d0f55888c4a14'/>
<id>urn:sha1:981ce57389af2eafb219a8dc4d6d0f55888c4a14</id>
<content type='text'>
There's a very clear explanation with examples of using --onto which is
currently buried in the very long DESCRIPTION section. This moves it to
its own section, so that we can reference the explanation from the
`--onto` option by name.

Signed-off-by: Julia Evans &lt;julia@jvns.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git rebase: clarify arguments syntax</title>
<updated>2025-08-23T16:03:29Z</updated>
<author>
<name>Julia Evans</name>
<email>julia@jvns.ca</email>
</author>
<published>2025-08-23T00:43:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1469715a9c9dc6e291567fcee16cda9943767138'/>
<id>urn:sha1:1469715a9c9dc6e291567fcee16cda9943767138</id>
<content type='text'>
Remove duplicate explanation of `git rebase &lt;upstream&gt; &lt;branch&gt;` which
is already explained above.

Signed-off-by: Julia Evans &lt;julia@jvns.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git rebase: dedup merge conflict discussion</title>
<updated>2025-08-23T16:03:29Z</updated>
<author>
<name>Julia Evans</name>
<email>julia@jvns.ca</email>
</author>
<published>2025-08-23T00:42:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=af5a099197fca46fd0a255fe036ab03f2d63ffe3'/>
<id>urn:sha1:af5a099197fca46fd0a255fe036ab03f2d63ffe3</id>
<content type='text'>
Previously there were two explanations, this combines them both into a
single explanation.

Signed-off-by: Julia Evans &lt;julia@jvns.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
