]> git.ipfire.org Git - thirdparty/git.git/commit
tree-walk: accept a raw length for traverse_path_len()
authorJeff King <peff@peff.net>
Wed, 31 Jul 2019 04:38:20 +0000 (00:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Aug 2019 20:06:52 +0000 (13:06 -0700)
commitb3b3cbcbf246b1051ad453bc02e24a89573e2911
tree3de6ade42d5a43eca2da12cd6053c57d0c4c66b5
parent37806080d7be1ab5b2fa918f6a528652596ea2c1
tree-walk: accept a raw length for traverse_path_len()

We take a "struct name_entry", but only care about the length of the
path name. Let's just take that length directly, making it easier to use
the function from callers that sometimes do not have a name_entry at
all.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge-tree.c
tree-walk.h
unpack-trees.c