summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-08 17:05:07 -0800
committerRussell Belfer <rb@github.com>2012-11-09 13:52:07 -0800
commitad9a921b92a964a0f28a5f0d59079cde5a0ada1e (patch)
tree218caac93e8acd2686521974ce77d165386c4e4b /src/fileops.h
parent55cbd05b18960e761a4d237ce5f1ff06455da98d (diff)
downloadlibgit2-ad9a921b92a964a0f28a5f0d59079cde5a0ada1e.tar.gz
Rework checkout with new strategy options
This is a major reworking of checkout strategy options. The checkout code is now sensitive to the contents of the HEAD tree and the new options allow you to update the working tree so that it will match the index content only when it previously matched the contents of the HEAD. This allows you to, for example, to distinguish between removing files that are in the HEAD but not in the index, vs just removing all untracked files. Because of various corner cases that arise, etc., this required some additional capabilities in rmdir and other utility functions. This includes the beginnings of an implementation of code to read a partial tree into the index based on a pathspec, but that is not enabled because of the possibility of creating conflicting index entries.
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index 6952c463c..a74f8b758 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -109,6 +109,7 @@ extern int git_futils_mkpath2file(const char *path, const mode_t mode);
* * GIT_RMDIR_SKIP_NONEMPTY - skip non-empty directories with no error.
* * GIT_RMDIR_EMPTY_PARENTS - remove containing directories up to base
* if removing this item leaves them empty
+ * * GIT_RMDIR_REMOVE_BLOCKERS - remove blocking file that causes ENOTDIR
*
* The old values translate into the new as follows:
*
@@ -121,6 +122,7 @@ typedef enum {
GIT_RMDIR_REMOVE_FILES = (1 << 0),
GIT_RMDIR_SKIP_NONEMPTY = (1 << 1),
GIT_RMDIR_EMPTY_PARENTS = (1 << 2),
+ GIT_RMDIR_REMOVE_BLOCKERS = (1 << 3),
} git_futils_rmdir_flags;
/**