summaryrefslogtreecommitdiff
path: root/object-store.h
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2018-11-28 16:27:50 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-12-05 11:42:31 +0900
commit08a297bd4996480f0b03830058f413bb24f0d37c (patch)
tree0c26e4b1901a00dae9a8f5959deff513721a09b4 /object-store.h
parentsubmodule.c: fix indentation (diff)
downloadtgif-08a297bd4996480f0b03830058f413bb24f0d37c.tar.xz
submodule.c: sort changed_submodule_names before searching it
We can string_list_insert() to maintain sorted-ness of the list as we find new items, or we can string_list_append() to build an unsorted list and sort it at the end just once. As we do not rely on the sortedness while building the list, we pick the "append and sort at the end" as it has better worst case execution times. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-store.h')
0 files changed, 0 insertions, 0 deletions