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..
This commit is contained in:
Linus Torvalds
2005-06-05 21:59:54 -07:00
parent 76f38347b4
commit 12dccc1654
4 changed files with 192 additions and 174 deletions

11
cache.h
View File

@ -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 */