Skip to content

Commit

Permalink
merge: rename variable
Browse files Browse the repository at this point in the history
It is more accurate to call it 'merge_names' instead of 'msg', as it
does not contain the final message.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Tay Ray Chuan authored and Junio C Hamano committed May 10, 2010
1 parent 7558922 commit 97d45bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
reset_hard(remote_head->sha1, 0);
return 0;
} else {
struct strbuf msg = STRBUF_INIT;
struct strbuf merge_names = STRBUF_INIT;

/* We are invoked directly as the first-class UI. */
head_arg = "HEAD";
Expand All @@ -988,8 +988,8 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
*/
if (!have_message) {
for (i = 0; i < argc; i++)
merge_name(argv[i], &msg);
fmt_merge_msg(option_log, &msg, &merge_msg);
merge_name(argv[i], &merge_names);
fmt_merge_msg(option_log, &merge_names, &merge_msg);
if (merge_msg.len)
strbuf_setlen(&merge_msg, merge_msg.len-1);
}
Expand Down

0 comments on commit 97d45bc

Please sign in to comment.