diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-14 16:55:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-14 16:55:06 -0700 |
commit | c0fd1f517efeb67df32b8d4ffa209afab14be436 (patch) | |
tree | 007728a4e0c2572196e5b118761bf69fdea5bfd8 /cache.h | |
parent | fdee7d07ba6c79b3e5125e96adbe1d9c3e75ce1d (diff) | |
download | git-c0fd1f517efeb67df32b8d4ffa209afab14be436.tar.gz |
Make "ce_match_path()" a generic helper function
... and make git-diff-files use it too. This all _should_ make the
diffcore-pathspec.c phase unnecessary, since the diff'ers now all do the
path matching early interally.
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -148,6 +148,7 @@ extern int remove_cache_entry_at(int pos); extern int remove_file_from_cache(char *path); extern int ce_same_name(struct cache_entry *a, struct cache_entry *b); extern int ce_match_stat(struct cache_entry *ce, struct stat *st); +extern int ce_path_match(const struct cache_entry *ce, const char **pathspec); extern int index_fd(unsigned char *sha1, int fd, struct stat *st, int write_object, const char *type); extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st); |