diff options
author | Nanako Shiraishi <nanako3@lavabit.com> | 2009-12-08 12:13:14 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-06 17:18:56 -0800 |
commit | f59baa502f49c3f1579a82bc37d2bb3ce9e7b5da (patch) | |
tree | 68571e1d4bc751a39720cc57871c1d20f8e8b3be /Documentation | |
parent | 0205e72f088322a70a77643a7cd2d8b23ee07e14 (diff) | |
download | git-f59baa502f49c3f1579a82bc37d2bb3ce9e7b5da.tar.gz git-f59baa502f49c3f1579a82bc37d2bb3ce9e7b5da.tar.xz |
rebase -i --autosquash: auto-squash commits
Teach a new option, --autosquash, to the interactive rebase.
When the commit log message begins with "!fixup ...", and there
is a commit whose title begins with the same ..., automatically
modify the todo list of rebase -i so that the commit marked for
squashing come right after the commit to be modified, and change
the action of the moved commit from pick to squash.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-rebase.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt index 9b648ece6..e2e61d364 100644 --- a/Documentation/git-rebase.txt +++ b/Documentation/git-rebase.txt @@ -308,6 +308,16 @@ which makes little sense. root commits will be rewritten to have <newbase> as parent instead. +--autosquash:: + When the commit log message begins with "squash! ..." (or + "fixup! ..."), and there is a commit whose title begins with + the same ..., automatically modify the todo list of rebase -i + so that the commit marked for quashing come right after the + commit to be modified, and change the action of the moved + commit from `pick` to `squash` (or `fixup`). ++ +This option is only valid when '--interactive' option is used. + include::merge-strategies.txt[] NOTES |