Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-07-08 13:51:01 +0300
committerJunio C Hamano <gitster@pobox.com>2017-07-10 19:16:37 +0300
commit5e8d2729ae64483efd5e8663cbc9d476364fb472 (patch)
treee29606f21e89c0edc91f5d01394e44c82e5b7b98 /t/t9001-send-email.sh
parent8c8e978f5719c6a58fb998742207bf907f963143 (diff)
wt-status: use separate variable for result of shorten_unambiguous_ref
Store the pointer to the string allocated by shorten_unambiguous_ref in a dedicated variable, short_base, and keep base unchanged. A non-const variable is more appropriate for such an object. It avoids having to cast const away on free and stops redefining the meaning of base, making the code slightly clearer. Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9001-send-email.sh')
0 files changed, 0 insertions, 0 deletions