author | Franck Bui-Huu <vagabon.xyz@gmail.com> | |
Tue, 12 Sep 2006 09:00:13 +0000 (11:00 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 13 Sep 2006 05:30:32 +0000 (22:30 -0700) | ||
commit | f42a5c4eb0453cd33276e078cd7541b1ef25b2c4 | |
tree | 93a7a3373f67e058bd4f21d3c3f1b69f28fd1c7a | tree | snapshot |
parent | 0f503d77ac9032fbfbd5f3bacafeccbcf408b31f | commit | diff |
connect.c: finish_connect(): allow null pid parameter
git_connect() can return 0 if we use git protocol for example.
Users of this function don't know and don't care if a process
had been created or not, and to avoid them to check it before
calling finish_connect() this patch allows finish_connect() to
take a null pid. And in that case return 0.
[jc: updated function signature of git_connect() with a comment on
its return value. ]
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git_connect() can return 0 if we use git protocol for example.
Users of this function don't know and don't care if a process
had been created or not, and to avoid them to check it before
calling finish_connect() this patch allows finish_connect() to
take a null pid. And in that case return 0.
[jc: updated function signature of git_connect() with a comment on
its return value. ]
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h | diff | blob | history | |
connect.c | diff | blob | history |