diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-06-13 17:37:48 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-13 17:37:48 (GMT) |
commit | 7013220d2b3181d4ae55e21e0f18b9abfd6e011d (patch) | |
tree | 4ceb8a1c5dd10047c7d9b59a30e9687cc7fc8372 /builtin/blame.c | |
parent | e059388fb200fb2b5281ce211242ef3525a9c2c7 (diff) | |
parent | 64093fc06a871f71316211a2aea6bb46c49b20ab (diff) | |
download | git-7013220d2b3181d4ae55e21e0f18b9abfd6e011d.zip git-7013220d2b3181d4ae55e21e0f18b9abfd6e011d.tar.gz git-7013220d2b3181d4ae55e21e0f18b9abfd6e011d.tar.bz2 |
Merge branch 'jk/parseopt-string-list' into jk/string-list-static-init
* jk/parseopt-string-list:
blame,shortlog: don't make local option variables static
interpret-trailers: don't duplicate option strings
parse_opt_string_list: stop allocating new strings
Diffstat (limited to 'builtin/blame.c')
-rw-r--r-- | builtin/blame.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index 21f42b0..80d2431 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -2522,12 +2522,12 @@ int cmd_blame(int argc, const char **argv, const char *prefix) enum object_type type; struct commit *final_commit = NULL; - static struct string_list range_list; - static int output_option = 0, opt = 0; - static int show_stats = 0; - static const char *revs_file = NULL; - static const char *contents_from = NULL; - static const struct option options[] = { + struct string_list range_list = STRING_LIST_INIT_NODUP; + int output_option = 0, opt = 0; + int show_stats = 0; + const char *revs_file = NULL; + const char *contents_from = NULL; + const struct option options[] = { OPT_BOOL(0, "incremental", &incremental, N_("Show blame entries as we find them, incrementally")), OPT_BOOL('b', NULL, &blank_boundary, N_("Show blank SHA-1 for boundary commits (Default: off)")), OPT_BOOL(0, "root", &show_root, N_("Do not treat root commits as boundaries (Default: off)")), |