summaryrefslogtreecommitdiff
path: root/rebase-interactive.c
diff options
context:
space:
mode:
authorCharvi Mendiratta <charvi077@gmail.com>2021-01-29 18:20:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-29 23:21:56 (GMT)
commit9e3cebd97cbd47909e683e617d5ffa2781f0adaa (patch)
treed8630af03308f88441fa8767f552c336d4953b0e /rebase-interactive.c
parent71ee81cd9eea308aa72d41fed3ef1cd40b4cb89a (diff)
downloadgit-9e3cebd97cbd47909e683e617d5ffa2781f0adaa.zip
git-9e3cebd97cbd47909e683e617d5ffa2781f0adaa.tar.gz
git-9e3cebd97cbd47909e683e617d5ffa2781f0adaa.tar.bz2
rebase -i: add fixup [-C | -c] command
Add options to `fixup` command to fixup both the commit contents and message. `fixup -C` command is used to replace the original commit message and `fixup -c`, additionally allows to edit the commit message. Original-patch-by: Phillip Wood <phillip.wood@dunelm.org.uk> Mentored-by: Christian Couder <chriscool@tuxfamily.org> Mentored-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Charvi Mendiratta <charvi077@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rebase-interactive.c')
-rw-r--r--rebase-interactive.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rebase-interactive.c b/rebase-interactive.c
index 762853b..c3bd02a 100644
--- a/rebase-interactive.c
+++ b/rebase-interactive.c
@@ -44,7 +44,9 @@ void append_todo_help(int command_count,
"r, reword <commit> = use commit, but edit the commit message\n"
"e, edit <commit> = use commit, but stop for amending\n"
"s, squash <commit> = use commit, but meld into previous commit\n"
-"f, fixup <commit> = like \"squash\", but discard this commit's log message\n"
+"f, fixup [-C | -c] <commit> = like \"squash\", but discard this\n"
+" commit's log message. Use -C to replace with this\n"
+" commit message or -c to edit the commit message\n"
"x, exec <command> = run command (the rest of the line) using shell\n"
"b, break = stop here (continue rebase later with 'git rebase --continue')\n"
"d, drop <commit> = remove commit\n"