Skip to content

Commit

Permalink
cherry-pick: rewrap advice message
Browse files Browse the repository at this point in the history
The current message overflows on an 80-character terminal.
While we're at it, fix the spelling of 'committing'.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Feb 12, 2010
1 parent 8051a03 commit 6e35997
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builtin-revert.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ static char *help_msg(const unsigned char *sha1)
return msg;

strcpy(helpbuf, " After resolving the conflicts,\n"
"mark the corrected paths with 'git add <paths>' "
"or 'git rm <paths>' and commit the result.");
"mark the corrected paths with 'git add <paths>' or 'git rm <paths>'\n"
"and commit the result.");

if (action == CHERRY_PICK) {
sprintf(helpbuf + strlen(helpbuf),
"\nWhen commiting, use the option "
"'-c %s' to retain authorship and message.",
" When committing, use the option '-c %s'\n"
"to retain authorship and message.",
find_unique_abbrev(sha1, DEFAULT_ABBREV));
}
return helpbuf;
Expand Down

0 comments on commit 6e35997

Please sign in to comment.