diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-07-04 16:46:19 -0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-05 11:47:57 -0700 |
commit | 183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2 (patch) | |
tree | 2ab3a6f27ab3e8857cf3b5a825435f7bf6ed5b72 /builtin/fmt-merge-msg.c | |
parent | Convert the users of for_each_string_list to for_each_string_list_item macro (diff) | |
download | tgif-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.tar.xz |
string_list: Add STRING_LIST_INIT macro and make use of it.
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fmt-merge-msg.c')
-rw-r--r-- | builtin/fmt-merge-msg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/fmt-merge-msg.c b/builtin/fmt-merge-msg.c index bc3c5e6d3e..a76cd4e9d1 100644 --- a/builtin/fmt-merge-msg.c +++ b/builtin/fmt-merge-msg.c @@ -38,8 +38,8 @@ void init_src_data(struct src_data *data) data->generic.strdup_strings = 1; } -static struct string_list srcs = { NULL, 0, 0, 1 }; -static struct string_list origins = { NULL, 0, 0, 1 }; +static struct string_list srcs = STRING_LIST_INIT_DUP; +static struct string_list origins = STRING_LIST_INIT_DUP; static int handle_line(char *line) { @@ -146,7 +146,7 @@ static void shortlog(const char *name, unsigned char *sha1, int i, count = 0; struct commit *commit; struct object *branch; - struct string_list subjects = { NULL, 0, 0, 1 }; + struct string_list subjects = STRING_LIST_INIT_DUP; int flags = UNINTERESTING | TREESAME | SEEN | SHOWN | ADDED; struct strbuf sb = STRBUF_INIT; |