libgit2/tests-clar/status
Russell Belfer a1683f28ce More tests and bug fixes for status with rename
This changes the behavior of the status RENAMED flags so that they
will be combined with the MODIFIED flags if appropriate.  If a file
is modified in the index and also renamed, then the status code
will have both the GIT_STATUS_INDEX_MODIFIED and INDEX_RENAMED bits
set.  If it is renamed but the OID has not changed, then just the
GIT_STATUS_INDEX_RENAMED bit will be set.  Similarly, the flags
GIT_STATUS_WT_MODIFIED and GIT_STATUS_WT_RENAMED can both be set
independently of one another.

This fixes a serious bug where the check for unmodified files that
was done at data load time could end up erasing the RENAMED state
of a file that was renamed with no changes.

Lastly, this contains a bunch of new tests for status with renames,
including tests where the only rename changes are case changes.
The expected results of these tests have to vary by whether the
platform uses a case sensitive filesystem or not, so the expected
data covers those platform differences separately.
2013-06-17 10:03:49 -07:00
..
ignore.c Reorganize diff and add basic diff driver 2013-06-10 10:10:39 -07:00
renames.c More tests and bug fixes for status with rename 2013-06-17 10:03:49 -07:00
single.c Fix error hashing empty file. 2012-09-27 13:12:27 -04:00
status_data.h Support for core.ignorecase 2012-09-17 15:42:41 -04:00
status_helpers.c Update diff handling of untracked directories 2013-04-30 04:25:56 -07:00
status_helpers.h Update diff handling of untracked directories 2013-04-30 04:25:56 -07:00
submodules.c Fix trailing whitespaces 2013-05-15 22:41:30 +02:00
worktree_init.c Move some low-level repo fns to include/git2/sys 2013-04-21 11:50:56 -07:00
worktree.c Improve case handling in git_diff__paired_foreach 2013-06-17 10:03:49 -07:00