summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2020-04-11 02:44:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-11 21:15:49 (GMT)
commit1b5735f75c7fd5a46a86adce35d1ed0c6e00ee0f (patch)
treefcec9e9ab8c5e97c2f06ef52525546ba6b1fb2f3 /Documentation
parent274b9cc25322d9ee79aa8e6d4e86f0ffe5ced925 (diff)
downloadgit-1b5735f75c7fd5a46a86adce35d1ed0c6e00ee0f.zip
git-1b5735f75c7fd5a46a86adce35d1ed0c6e00ee0f.tar.gz
git-1b5735f75c7fd5a46a86adce35d1ed0c6e00ee0f.tar.bz2
rebase -i: mark commits that begin empty in todo editor
While many users who intentionally create empty commits do not want them thrown away by a rebase, there are third-party tools that generate empty commits that a user might not want. In the past, users have used rebase to get rid of such commits (a side-effect of the fact that the --apply backend is not currently capable of keeping them). While such users could fire up an interactive rebase and just remove the lines corresponding to empty commits, that might be difficult if the third-party tool generates many of them. Simplify this task for users by marking such lines with a suffix of " # empty" in the todo list. Suggested-by: Sami Boukortt <sami@boukortt.com> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-rebase.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt
index f7a6033..8ab0558 100644
--- a/Documentation/git-rebase.txt
+++ b/Documentation/git-rebase.txt
@@ -620,7 +620,8 @@ commits that started empty, though these are rare in practice. It
also drops commits that become empty and has no option for controlling
this behavior.
-The merge backend keeps intentionally empty commits. Similar to the
+The merge backend keeps intentionally empty commits (though with -i
+they are marked as empty in the todo list editor). Similar to the
apply backend, by default the merge backend drops commits that become
empty unless -i/--interactive is specified (in which case it stops and
asks the user what to do). The merge backend also has an