interpret-trailers: don't duplicate option strings
There's no need to do so; the argv strings will last until the end of the program. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7a7a517a2f
commit
7c4b169585
@ -19,7 +19,7 @@ static const char * const git_interpret_trailers_usage[] = {
|
|||||||
int cmd_interpret_trailers(int argc, const char **argv, const char *prefix)
|
int cmd_interpret_trailers(int argc, const char **argv, const char *prefix)
|
||||||
{
|
{
|
||||||
int trim_empty = 0;
|
int trim_empty = 0;
|
||||||
struct string_list trailers = STRING_LIST_INIT_DUP;
|
struct string_list trailers = STRING_LIST_INIT_NODUP;
|
||||||
|
|
||||||
struct option options[] = {
|
struct option options[] = {
|
||||||
OPT_BOOL(0, "trim-empty", &trim_empty, N_("trim empty trailers")),
|
OPT_BOOL(0, "trim-empty", &trim_empty, N_("trim empty trailers")),
|
||||||
|
Loading…
Reference in New Issue
Block a user