summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff-tree_--stat_--compact-summary_initial_mode
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-02-01 20:02:20 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-02-02 12:05:27 -0800
commitc905cbc49c6455cc8d7c38c24a047396286f0fe6 (patch)
treeca5e04820b567479c5b8f72db8e606a5594b9659 /t/t4013/diff.diff-tree_--stat_--compact-summary_initial_mode
parentGit 2.16 (diff)
downloadtgif-c905cbc49c6455cc8d7c38c24a047396286f0fe6.tar.xz
diff.c: refactor pprint_rename() to use strbuf
Instead of passing char* around, let function handle strbuf directly. All callers already use strbuf internally. This helps kill the "not free" exception in free_diffstat_info(). I don't think this code is so critical that we need to avoid some free() calls. The other benefit comes in the next patch, where we append something in pname before returning from fill_print_name(). With strbuf, it's very simple. With "char *" we may have to resort to explicit reallocation and stuff. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff-tree_--stat_--compact-summary_initial_mode')
0 files changed, 0 insertions, 0 deletions