author | Finn Arne Gangstad <finnag@pvv.org> | |
Mon, 6 Apr 2009 13:41:01 +0000 (15:41 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 8 Apr 2009 04:51:59 +0000 (21:51 -0700) | ||
commit | 9a23ba3375e2afa8045a433a3debce99c373beb2 | |
tree | fc41723967648256079a56c42a0e0fc55babfcef | tree | snapshot |
parent | bed5d42163ec2e2ddde3b1d78d303a4fb39bc0d0 | commit | diff |
remote: New function remote_is_configured()
Previously, there was no easy way to check for the existence of a
configured remote. remote_get for example would always create the remote
"on demand".
This new function returns 1 if the remote is configured, 0 otherwise.
Signed-off-by: Finn Arne Gangstad <finnag@pvv.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Previously, there was no easy way to check for the existence of a
configured remote. remote_get for example would always create the remote
"on demand".
This new function returns 1 if the remote is configured, 0 otherwise.
Signed-off-by: Finn Arne Gangstad <finnag@pvv.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c | diff | blob | history | |
remote.h | diff | blob | history |