summaryrefslogtreecommitdiff
path: root/archive.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-09-30 10:42:05 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-09-30 18:06:50 -0700
commitd709f1fb9d3bfa148dd8b461e633138fdf5957e6 (patch)
tree2c96364852f21c3ed557e8ca6429748bd5cf0b21 /archive.c
parentPrepare for 2.10.1 (diff)
downloadtgif-d709f1fb9d3bfa148dd8b461e633138fdf5957e6.tar.xz
diff_unique_abbrev(): document its assumption and limitation
This function is used to add "..." to displayed object names in "diff --raw --abbrev[=<n>]" output. It bases its behaviour on an untold assumption that the abbreviation length requested by the caller is "reasonble", i.e. most of the objects will abbreviate within the requested length and the resulting length would never exceed it by more than a few hexdigits (otherwise the resulting columns would not align). Explain that in a comment. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.c')
0 files changed, 0 insertions, 0 deletions