diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-10-27 12:33:52 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-05 13:47:45 -0800 |
| commit | 85ae602d555eca4e63274fca1e75e86bbd12afb8 (patch) | |
| tree | d2c348f7c347de4b12463297c94ccde29b0eed17 /commit.h | |
| parent | replay: stop using `the_repository` (diff) | |
| download | git-85ae602d555eca4e63274fca1e75e86bbd12afb8.tar.gz git-85ae602d555eca4e63274fca1e75e86bbd12afb8.zip | |
builtin: add new "history" command
When rewriting history via git-rebase(1) there are a couple of very
common use cases:
- The ordering of two commits should be reversed.
- A commit should be split up into two commits.
- A commit should be dropped from the history completely.
- Multiple commits should be squashed into one.
While these operations are all doable, it often feels needlessly kludgey
to do so by doing an interactive rebase, using the editor to say what
one wants, and then perform the actions. Furthermore, some operations
like splitting up a commit into two are way more involved than that and
require a whole series of commands.
Add a new "history" command to plug this gap. This command will have
several different subcommands to imperatively rewrite history for common
use cases like the above. These subcommands will be implemented in
subsequent commits.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
