Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
merge: rename variable
author
Tay Ray Chuan
<rctay89@gmail.com>
Mon, 10 May 2010 17:17:48 +0000
(
01:17
+0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 10 May 2010 18:57:33 +0000
(11:57 -0700)
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>
builtin/merge.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
7558922
)
diff --git
a/builtin/merge.c
b/builtin/merge.c
index 457bb5e48addabe3f2537266b4515add3f89a9b3..0ae480987ac4d97af437e27a9e4d6b8e4ecf4211 100644
(file)
--- a/
builtin/merge.c
+++ b/
builtin/merge.c
@@
-973,7
+973,7
@@
int cmd_merge(int argc, const char **argv, const char *prefix)
reset_hard(remote_head->sha1, 0);
return 0;
} else {
reset_hard(remote_head->sha1, 0);
return 0;
} else {
- struct strbuf m
sg
= STRBUF_INIT;
+ struct strbuf m
erge_names
= STRBUF_INIT;
/* We are invoked directly as the first-class UI. */
head_arg = "HEAD";
/* We are invoked directly as the first-class UI. */
head_arg = "HEAD";
@@
-988,8
+988,8
@@
int cmd_merge(int argc, const char **argv, const char *prefix)
*/
if (!have_message) {
for (i = 0; i < argc; i++)
*/
if (!have_message) {
for (i = 0; i < argc; i++)
- merge_name(argv[i], &m
sg
);
- fmt_merge_msg(option_log, &m
sg
, &merge_msg);
+ merge_name(argv[i], &m
erge_names
);
+ fmt_merge_msg(option_log, &m
erge_names
, &merge_msg);
if (merge_msg.len)
strbuf_setlen(&merge_msg, merge_msg.len-1);
}
if (merge_msg.len)
strbuf_setlen(&merge_msg, merge_msg.len-1);
}