summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-09-11 11:06:45 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-09-11 11:06:45 -0700
commit59d7cbd343d098783f8a91fb67d90ac3d066ea77 (patch)
treef3655aec189b8c190b366c7616632cb7e83454b9 /cache.h
parentMerge branch 'jc/doc-git-updates' into maint (diff)
parentfetch-pack: mention server version with verbose output (diff)
downloadtgif-59d7cbd343d098783f8a91fb67d90ac3d066ea77.tar.xz
Merge branch 'jc/capabilities' into maint
* jc/capabilities: fetch-pack: mention server version with verbose output parse_feature_request: make it easier to see feature values fetch-pack: do not ask for unadvertised capabilities do not send client agent unless server does first send-pack: fix capability-sending logic include agent identifier in capability string
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 67f28b4da9..95daa690aa 100644
--- a/cache.h
+++ b/cache.h
@@ -1038,7 +1038,9 @@ struct extra_have_objects {
};
extern struct ref **get_remote_heads(int in, struct ref **list, unsigned int flags, struct extra_have_objects *);
extern int server_supports(const char *feature);
-extern const char *parse_feature_request(const char *features, const char *feature);
+extern int parse_feature_request(const char *features, const char *feature);
+extern const char *server_feature_value(const char *feature, int *len_ret);
+extern const char *parse_feature_value(const char *feature_list, const char *feature, int *len_ret);
extern struct packed_git *parse_pack_index(unsigned char *sha1, const char *idx_path);