summaryrefslogtreecommitdiffstats
path: root/pretty.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-02-10 20:42:28 +0100
committerJunio C Hamano <gitster@pobox.com>2017-02-13 21:06:08 +0100
commit7b4158a8d8d027491e6e2f7eff3789bd25e093d5 (patch)
tree7e5720fb483b8e70afd81f73402b974c86f41860 /pretty.c
parentGit 2.11.1 (diff)
downloadgit-7b4158a8d8d027491e6e2f7eff3789bd25e093d5.tar.xz
git-7b4158a8d8d027491e6e2f7eff3789bd25e093d5.zip
ls-files: pass prefix length explicitly to prune_cache()
The function prune_cache() relies on the fact that it is only called on max_prefix and sneakily uses the matching global variable max_prefix_len directly. Tighten its interface by passing both the string and its length as parameters. While at it move the NULL check into the function to collect all cache-pruning related logic in one place. Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
0 files changed, 0 insertions, 0 deletions