X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=cache.h;h=e589918320f35970711c2a3609f54739a9269168;hb=f1f0d0889e5557bc467490fdbd53f7b912503a33;hp=dcfcbbc7ce2b50d16ba75b90d99b5eaed59df3c1;hpb=a9ab586a5db015d200dfdadcf5876d62f15dd36c;p=git.git diff --git a/cache.h b/cache.h index dcfcbbc7..e5899183 100644 --- a/cache.h +++ b/cache.h @@ -50,6 +50,17 @@ * Your search - "port 9418" - did not match any documents. * * as www.google.com puts it. + * + * This port has been properly assigned for git use by IANA: + * git (Assigned-9418) [I06-050728-0001]. + * + * git 9418/tcp git pack transfer service + * git 9418/udp git pack transfer service + * + * with Linus Torvalds as the point of + * contact. September 2005. + * + * See http://www.iana.org/assignments/port-numbers */ #define DEFAULT_GIT_PORT 9418 @@ -150,6 +161,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_modified(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); @@ -230,7 +242,7 @@ extern void *read_object_with_reference(const unsigned char *sha1, unsigned char *sha1_ret); const char *show_date(unsigned long time, int timezone); -void parse_date(const char *date, char *buf, int bufsize); +int parse_date(const char *date, char *buf, int bufsize); void datestamp(char *buf, int bufsize); extern int setup_ident(void);