X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=cache.h;h=31755c85a0b90c16c87356c6e203576c7e7021a0;hb=e96b6c4bf6dab94fd3833c31adc5105589a59e7a;hp=b1300cd989437e4631d6e4a58b1c32941b5c3b6b;hpb=00dd7422db1e3e0c60d41c2a2299709f90bcf3f6;p=git.git diff --git a/cache.h b/cache.h index b1300cd98..31755c85a 100644 --- a/cache.h +++ b/cache.h @@ -143,6 +143,7 @@ extern void verify_non_filename(const char *prefix, const char *name); /* Initialize and use the cache information */ extern int read_cache(void); extern int write_cache(int newfd, struct cache_entry **cache, int entries); +extern int verify_path(const char *path); extern int cache_name_pos(const char *name, int namelen); #define ADD_CACHE_OK_TO_ADD 1 /* Ok to add */ #define ADD_CACHE_OK_TO_REPLACE 2 /* Ok to replace file/directory */ @@ -159,6 +160,12 @@ extern int index_pipe(unsigned char *sha1, int fd, const char *type, int write_o extern int index_path(unsigned char *sha1, const char *path, struct stat *st, int write_object); extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st); +#define REFRESH_REALLY 0x0001 /* ignore_valid */ +#define REFRESH_UNMERGED 0x0002 /* allow unmerged */ +#define REFRESH_QUIET 0x0004 /* be quiet about it */ +#define REFRESH_IGNORE_MISSING 0x0008 /* ignore non-existent */ +extern int refresh_cache(unsigned int flags); + struct cache_file { struct cache_file *next; char lockfile[PATH_MAX];