diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-02-23 16:58:03 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-23 16:58:03 -0800 |
commit | 8813596531c08ed7488f85805cd0ec974a9c7c96 (patch) | |
tree | daabc937eaf2047f85c64811e8ac9c2bf05155af /builtin | |
parent | Merge branch 'hw/t1410-adjust-test-for-reftable' (diff) | |
parent | log: add a --no-graph option (diff) | |
download | tgif-8813596531c08ed7488f85805cd0ec974a9c7c96.tar.xz |
Merge branch 'ah/log-no-graph'
"git log --graph --graph" used to leak a graph structure, and there
was no way to countermand "--graph" that appear earlier on the
command line. A "--no-graph" option has been added and resource
leakage has been plugged.
* ah/log-no-graph:
log: add a --no-graph option
log: fix memory leak if --graph is passed multiple times
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/blame.c | 1 | ||||
-rw-r--r-- | builtin/shortlog.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index 7fafeac408..ef831de5ac 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -934,6 +934,7 @@ int cmd_blame(int argc, const char **argv, const char *prefix) parse_revision_opt(&revs, &ctx, options, blame_opt_usage); } parse_done: + revision_opts_finish(&revs); no_whole_file_rename = !revs.diffopt.flags.follow_renames; xdl_opts |= revs.diffopt.xdl_opts & XDF_INDENT_HEURISTIC; revs.diffopt.flags.follow_renames = 0; diff --git a/builtin/shortlog.c b/builtin/shortlog.c index e7f7af5de3..228d782754 100644 --- a/builtin/shortlog.c +++ b/builtin/shortlog.c @@ -388,6 +388,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix) parse_revision_opt(&rev, &ctx, options, shortlog_usage); } parse_done: + revision_opts_finish(&rev); argc = parse_options_end(&ctx); if (nongit && argc > 1) { |