diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-02-01 20:02:20 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-02 12:05:27 -0800 |
commit | c905cbc49c6455cc8d7c38c24a047396286f0fe6 (patch) | |
tree | ca5e04820b567479c5b8f72db8e606a5594b9659 /.travis.yml | |
parent | Git 2.16 (diff) | |
download | tgif-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 '.travis.yml')
0 files changed, 0 insertions, 0 deletions