author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 31 Oct 2009 00:47:23 +0000 (17:47 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 31 Oct 2009 02:20:53 +0000 (19:20 -0700) | ||
commit | edace6f02eeae6f4a06ed1e4f6308703523d8535 | |
tree | 6d9b04955335bca0703fee906764720f353afa72 | tree | snapshot |
parent | 743c4b7b0fa5422d1bb5dc59c6cb919a881dd98b | commit | diff |
fetch-pack: Use a strbuf to compose the want list
This change is being offered as a refactoring to make later
commits in the smart HTTP series easier.
By changing the enabled capabilities to be formatted in a strbuf
it is easier to add a new capability to the set of supported
capabilities.
By formatting the want portion of the request into a strbuf and
writing it as a whole block we can later decide to hold onto
the req_buf (instead of releasing it) to recycle in stateless
communications.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This change is being offered as a refactoring to make later
commits in the smart HTTP series easier.
By changing the enabled capabilities to be formatted in a strbuf
it is easier to add a new capability to the set of supported
capabilities.
By formatting the want portion of the request into a strbuf and
writing it as a whole block we can later decide to hold onto
the req_buf (instead of releasing it) to recycle in stateless
communications.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch-pack.c | diff | blob | history | |
commit.c | diff | blob | history | |
commit.h | diff | blob | history |