author | Johannes Sixt <johannes.sixt@telecom.at> | |
Fri, 19 Oct 2007 19:47:53 +0000 (21:47 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Oct 2007 05:30:39 +0000 (01:30 -0400) | ||
commit | 98158e9cfd2808613f305bf587ce697762c884bb | |
tree | 87502b9a44bf4ca790f60ce8639a903e23b4ac7a | tree | snapshot |
parent | ca5bb5d5390e4ec709ca3e11c451c58a836d4ee6 | commit | diff |
Change git_connect() to return a struct child_process instead of a pid_t.
This prepares the API of git_connect() and finish_connect() to operate on
a struct child_process. Currently, we just use that object as a placeholder
for the pid that we used to return. A follow-up patch will change the
implementation of git_connect() and finish_connect() to make full use
of the object.
Old code had early-return-on-error checks at the calling sites of
git_connect(), but since git_connect() dies on errors anyway, these checks
were removed.
[sp: Corrected style nit of "conn == NULL" to "!conn"]
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This prepares the API of git_connect() and finish_connect() to operate on
a struct child_process. Currently, we just use that object as a placeholder
for the pid that we used to return. A follow-up patch will change the
implementation of git_connect() and finish_connect() to make full use
of the object.
Old code had early-return-on-error checks at the calling sites of
git_connect(), but since git_connect() dies on errors anyway, these checks
were removed.
[sp: Corrected style nit of "conn == NULL" to "!conn"]
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
builtin-archive.c | diff | blob | history | |
builtin-fetch-pack.c | diff | blob | history | |
cache.h | diff | blob | history | |
connect.c | diff | blob | history | |
peek-remote.c | diff | blob | history | |
send-pack.c | diff | blob | history | |
transport.c | diff | blob | history |