aboutsummaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-06-26 07:58:07 +0200
committerJunio C Hamano <gitster@pobox.com>2016-06-27 10:58:02 -0700
commitd0b39a03cd5d6d5f9e2eac4907d9f47ec3d821da (patch)
tree504adddf81e1493cba1dd257a560255e0d1b636d /diff.h
parenta52397cce6c1049c3c9507d734243ee125d11f0c (diff)
downloadgit-d0b39a03cd5d6d5f9e2eac4907d9f47ec3d821da.tar.gz
git-d0b39a03cd5d6d5f9e2eac4907d9f47ec3d821da.tar.xz
fetch: refactor ref update status formatting code
This makes it easier to change the formatting later. And it makes sure translators cannot mess up format specifiers and break Git. There are a couple call sites where the length of the second column is TRANSPORT_SUMMARY_WIDTH instead of calculated by TRANSPORT_SUMMARY(), which is enforced now. The result should be the same because these call sites do not contain characters outside ASCII range. The two strbuf_addf() calls instead of one is mostly to reduce diff-noise in a future patch where "ref -> ref" is reformatted differently. 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 'diff.h')
0 files changed, 0 insertions, 0 deletions