Skip to content

Commit f07871d

Browse files
charvi-077gitster
authored andcommitted
rebase -i: clarify and fix 'fixup -c' rebase-todo help
When `-c` says "edit the commit message" it's not clear what will be edited. The original's commit message or the replacement's message or a combination of the two. Word it such that it states more precisely what exactly will be edited. While at it, also drop the jarring period and capitalization, neither of which is otherwise present in the message. Mentored-by: Christian Couder <[email protected]> Mentored-by: Phillip Wood <[email protected]> Helped-by: Eric Sunshine <[email protected]> Signed-off-by: Charvi Mendiratta <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1f96960 commit f07871d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

rebase-interactive.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ void append_todo_help(int command_count,
4444
"r, reword <commit> = use commit, but edit the commit message\n"
4545
"e, edit <commit> = use commit, but stop for amending\n"
4646
"s, squash <commit> = use commit, but meld into previous commit\n"
47-
"f, fixup [-C | -c] <commit> = like \"squash\", but discard this\n"
48-
" commit's log message. Use -C to replace with this\n"
49-
" commit message or -c to edit the commit message\n"
47+
"f, fixup [-C | -c] <commit> = like \"squash\" but keep only the previous\n"
48+
" commit's log message, unless -C is used, in which case\n"
49+
" keep only this commit's message; -c is same as -C but\n"
50+
" opens the editor\n"
5051
"x, exec <command> = run command (the rest of the line) using shell\n"
5152
"b, break = stop here (continue rebase later with 'git rebase --continue')\n"
5253
"d, drop <commit> = remove commit\n"
@@ -55,7 +56,7 @@ void append_todo_help(int command_count,
5556
"m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]\n"
5657
". create a merge commit using the original merge commit's\n"
5758
". message (or the oneline, if no original merge commit was\n"
58-
". specified). Use -c <commit> to reword the commit message.\n"
59+
". specified); use -c <commit> to reword the commit message\n"
5960
"\n"
6061
"These lines can be re-ordered; they are executed from top to bottom.\n");
6162
unsigned edit_todo = !(shortrevisions && shortonto);

0 commit comments

Comments
 (0)