diff options
author | Stefan Beller <sbeller@google.com> | 2018-11-28 16:27:50 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-12-05 11:42:31 +0900 |
commit | 08a297bd4996480f0b03830058f413bb24f0d37c (patch) | |
tree | 0c26e4b1901a00dae9a8f5959deff513721a09b4 /server-info.c | |
parent | submodule.c: fix indentation (diff) | |
download | tgif-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 'server-info.c')
0 files changed, 0 insertions, 0 deletions