diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2009-10-30 17:47:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-30 19:20:53 -0700 |
commit | 28754ab5f0ce9b4f6ca1641c3e10e2c68bd9b3fc (patch) | |
tree | 4f70d7d3eb176452be9345b915fbc3db60edbabc /cache.h | |
parent | edace6f02eeae6f4a06ed1e4f6308703523d8535 (diff) | |
download | git-28754ab5f0ce9b4f6ca1641c3e10e2c68bd9b3fc.tar.gz git-28754ab5f0ce9b4f6ca1641c3e10e2c68bd9b3fc.tar.xz |
Move "get_ack()" back to fetch-pack
In 41cb7488 Linus moved this function to connect.c for reuse inside
of the git-clone-pack command. That was 2005, but in 2006 Junio
retired git-clone-pack in commit efc7fa53. Since then the only
caller has been fetch-pack. Since this ACK/NAK exchange is only
used by the fetch-pack/upload-pack protocol we should move it back
to be a private detail of fetch-pack.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -856,7 +856,6 @@ extern struct ref *find_ref_by_name(const struct ref *list, const char *name); extern struct child_process *git_connect(int fd[2], const char *url, const char *prog, int flags); extern int finish_connect(struct child_process *conn); extern int path_match(const char *path, int nr, char **match); -extern int get_ack(int fd, unsigned char *result_sha1); struct extra_have_objects { int nr, alloc; unsigned char (*array)[20]; |