aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-05 21:59:54 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-05 21:59:54 -0700
commit12dccc165400beae564d2357ce86c71937e5cdc0 (patch)
tree87a379b829fb3024ce8c302c47c66476c808f91f /cache.h
parent76f38347b4199f65e8c897ebf4f9ce1d3a24378b (diff)
downloadgit-12dccc165400beae564d2357ce86c71937e5cdc0.tar.gz
git-12dccc165400beae564d2357ce86c71937e5cdc0.tar.xz
Make fiel checkout function available to the git library
The merge stuff will want it soon, and we don't want to duplicate all the work..
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 481f7c787..7cb5b554b 100644
--- a/cache.h
+++ b/cache.h
@@ -214,4 +214,15 @@ static inline void *xcalloc(size_t nmemb, size_t size)
return ret;
}
+struct checkout {
+ const char *base_dir;
+ int base_dir_len;
+ unsigned force:1,
+ quiet:1,
+ not_new:1,
+ refresh_cache:1;
+};
+
+extern int checkout_entry(struct cache_entry *ce, struct checkout *state);
+
#endif /* CACHE_H */