aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-10-27 12:33:52 +0100
committerJunio C Hamano <gitster@pobox.com>2025-11-05 13:47:45 -0800
commit85ae602d555eca4e63274fca1e75e86bbd12afb8 (patch)
treed2c348f7c347de4b12463297c94ccde29b0eed17 /commit.h
parentreplay: stop using `the_repository` (diff)
downloadgit-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