aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorGlen Choo <chooglen@google.com>2022-09-01 01:17:59 +0200
committerJunio C Hamano <gitster@pobox.com>2022-09-02 09:16:24 -0700
commit9d02f9499ffe7af9ce7e449e482820d437f84026 (patch)
tree7f878c854c8a9d8e0a95cfd189ba3cf13db83ef4 /commit-graph.c
parentsubmodule--helper: add "const" to passed "struct update_data" (diff)
downloadgit-9d02f9499ffe7af9ce7e449e482820d437f84026.tar.gz
git-9d02f9499ffe7af9ce7e449e482820d437f84026.zip
submodule--helper: refactor "errmsg_str" to be a "struct strbuf"
Refactor code added in e83e3333b57 (submodule: port submodule subcommand 'summary' from shell to C, 2020-08-13) so that "errmsg" and "errmsg_str" are folded into one. The distinction between the empty string and NULL is something that's tested for by e.g. "t/t7401-submodule-summary.sh". This is in preparation for fixing a memory leak the "struct strbuf" in the pre-image. Let's also pass a "const char *" to print_submodule_summary(), as it should not be modifying the "errmsg". Signed-off-by: Glen Choo <chooglen@google.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Reviewed-by: Glen Choo <chooglen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions