diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-08-28 18:30:39 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-08-28 18:40:02 -0400 |
commit | 6c9352bf30e97af5d646d92ceab1c7b0f4c7a1c4 (patch) | |
tree | c5ebd5511ad3bc7a48fef8b1f270e5228357f305 /tests/diff | |
parent | 810cabb9dfa57127e78cb47dbe8ea95943fb2642 (diff) | |
download | libgit2-6c9352bf30e97af5d646d92ceab1c7b0f4c7a1c4.tar.gz |
iterator: sort subdirs properly with pathlist
When given a pathlist, don't assume that directories sort before
files. Walk through any list of entries sorting before us to make
sure that we've exhausted all entries that *aren't* directories.
Eg, if we're searching for 'foo/bar', and we have a 'foo.c', keep
advancing the pathlist to keep looking for an entry prefixed with
'foo/'.
Diffstat (limited to 'tests/diff')
0 files changed, 0 insertions, 0 deletions