summaryrefslogtreecommitdiff
path: root/gpg-interface.h
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2017-11-02 12:41:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-03 23:12:06 +0900
commit91904f5645196ceef92c6fca21cc9454928613f0 (patch)
tree78b179c532684a9830f74b073e0dc26a6a9b6698 /gpg-interface.h
parentt6120: fix typo in test name (diff)
downloadtgif-91904f5645196ceef92c6fca21cc9454928613f0.tar.xz
list-objects.c: factor out traverse_trees_and_blobs
With traverse_trees_and_blobs factored out of the main traverse function, the next patch can introduce an in-order revision walking with ease. In the next patch we'll call `traverse_trees_and_blobs` from within the loop walking the commits, such that we'll have one invocation of that function per commit. That is why we do not want to have memory allocations in that function, such as we'd have if we were to use a strbuf locally. Pass a strbuf from traverse_commit_list into the blob and tree traversing function as a scratch pad that only needs to be allocated once. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gpg-interface.h')
0 files changed, 0 insertions, 0 deletions