libgit2/tests/index
Edward Thomson 280adb3f94 index: canonicalize directory case when adding
On case insensitive systems, when given a user-provided path in the
higher-level index addition functions (eg `git_index_add_bypath` /
`git_index_add_frombuffer`), examine the index to try to match the
given path to an existing directory.

Various mechanisms can cause the on-disk representation of a folder
to not match the representation in HEAD or the index - for example,
a case changing rename of some file `a/file.txt` to `A/file.txt`
will update the paths in the index, but not rename the folder on
disk.

If a user subsequently adds `a/other.txt`, then this should be stored
in the index as `A/other.txt`.
2015-09-08 11:32:40 -04:00
..
addall.c win32: ensure hidden files can be staged 2015-08-03 18:33:15 -05:00
bypath.c index: canonicalize directory case when adding 2015-09-08 11:32:40 -04:00
cache.c Clean up some memory leaks 2014-10-26 22:27:44 -04:00
collision.c conflict tests: use GIT_IDXENTRY_STAGE_SET 2015-05-28 09:44:22 -04:00
conflicts.c introduce git_index_entry_is_conflict 2015-05-28 09:47:31 -04:00
crlf.c Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
filemodes.c index: add tests around case switching 2015-08-14 21:06:51 +02:00
inmemory.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
names.c reset: remove reflog message override 2015-03-03 14:40:50 +01:00
racy.c index test: include repository.h for decl 2015-06-29 21:23:09 +00:00
read_index.c index: introduce git_index_read_index 2015-05-11 14:12:05 -04:00
read_tree.c Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
rename.c Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
reuc.c reset: remove reflog message override 2015-03-03 14:40:50 +01:00
stage.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
tests.c index: add tests around case switching 2015-08-14 21:06:51 +02:00