From 12dccc165400beae564d2357ce86c71937e5cdc0 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 5 Jun 2005 21:59:54 -0700 Subject: 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.. --- cache.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 481f7c7870..7cb5b554b3 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 */ -- cgit v1.3-5-g9baa