static void get_idx_file(char *name) { select_getanyfile(); hdr_cache_forever(); send_local_file("application/x-git-packed-objects-toc", name); }
static void get_loose_object(char *name) { select_getanyfile(); hdr_cache_forever(); send_local_file("application/x-git-loose-object", name); }
static void get_text_file(char *name) { select_getanyfile(); hdr_nocache(); send_local_file("text/plain", name); }
static void get_idx_file(struct strbuf *hdr, char *name) { select_getanyfile(hdr); hdr_cache_forever(hdr); send_local_file(hdr, "application/x-git-packed-objects-toc", name); }
static void get_loose_object(struct strbuf *hdr, char *name) { select_getanyfile(hdr); hdr_cache_forever(hdr); send_local_file(hdr, "application/x-git-loose-object", name); }
static void get_text_file(struct strbuf *hdr, char *name) { select_getanyfile(hdr); hdr_nocache(hdr); send_local_file(hdr, "text/plain", name); }