]> git.proxmox.com Git - libgit2.git/commit - tests/status/submodules.c
Update submodules with parent-tracked content
authorRussell Belfer <rb@github.com>
Tue, 8 Apr 2014 21:47:20 +0000 (14:47 -0700)
committerRussell Belfer <rb@github.com>
Tue, 8 Apr 2014 21:47:20 +0000 (14:47 -0700)
commiteb7e17cc900f1f59f653cd7b277750fb1d5b721a
tree70ddd6f3496bae4745308ca1174da2759ad7b33a
parentce2e82694a19b9994acaa9376bff81bc8e968637
Update submodules with parent-tracked content

This updates how libgit2 treats submodule-like directories that
actually have tracked content inside of them.  This is a strange
corner case, but it seems that many people have abortive submodule
setups and then just went ahead and added the files into the
parent repository.  In this case, we should just treat the
submodule as if it was a normal directory.

Libgit2 will still try to skip over real submodules and contained
repositories that do not have tracked files inside them, but this
adds some new handling for cases where the apparently submodule
data is in conflict with the actual list of tracked files.
src/diff.c
tests/status/submodules.c