summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-18 00:42:01 -0700
committerJunio C Hamano <gitster@pobox.com>2007-09-18 00:42:01 -0700
commit9346b4e1ad2d03541f18b38f7e9fb7ad0ca6434e (patch)
treed49794a304c2b949d9a49e56b7e5028cce44e406 /cache.h
parent148c63006a8e4985a9eee0863073588d8ac18a8a (diff)
parent58f6fb53dd1104559f6f5507562a975c0ff079af (diff)
downloadgit-9346b4e1ad2d03541f18b38f7e9fb7ad0ca6434e.tar.gz
Merge branch 'cr/reset'
* cr/reset: Simplify cache API An additional test for "git-reset -- path" Make "git reset" a builtin. Move make_cache_entry() from merge-recursive.c into read-cache.c Add tests for documented features of "git reset".
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 493983cbae..8246500166 100644
--- a/cache.h
+++ b/cache.h
@@ -264,6 +264,7 @@ extern struct cache_entry *refresh_cache_entry(struct cache_entry *ce, int reall
extern int remove_index_entry_at(struct index_state *, int pos);
extern int remove_file_from_index(struct index_state *, const char *path);
extern int add_file_to_index(struct index_state *, const char *path, int verbose);
+extern struct cache_entry *make_cache_entry(unsigned int mode, const unsigned char *sha1, const char *path, int stage, int refresh);
extern int ce_same_name(struct cache_entry *a, struct cache_entry *b);
extern int ie_match_stat(struct index_state *, struct cache_entry *, struct stat *, int);
extern int ie_modified(struct index_state *, struct cache_entry *, struct stat *, int);