author | Petr Baudis <pasky@suse.cz> | |
Tue, 8 Jul 2008 17:48:04 +0000 (19:48 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 9 Jul 2008 05:46:01 +0000 (22:46 -0700) | ||
commit | 31a92f6aa47732e93f6685b8d1fd1ac09c1fec44 | |
tree | 06cfcea954c5772d5ff8f4ff4b0ee54b4b449091 | tree | snapshot |
parent | e896912c5edb8f989a2d25e101b2eb14f1a56aa9 | commit | diff |
Git.pm: Add remote_refs() git-ls-remote frontend
This patch also converts the good ole' git-remote.perl to use it.
It is otherwise used in the repo.or.cz machinery and I guess other
scripts might find it useful too.
Unfortunately,
git-ls-remote --heads .
is subtly different from
git-ls-remote . refs/heads/
(since the second matches anywhere in the string, not just at the
beginning) so we have to provide interface for both.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This patch also converts the good ole' git-remote.perl to use it.
It is otherwise used in the repo.or.cz machinery and I guess other
scripts might find it useful too.
Unfortunately,
git-ls-remote --heads .
is subtly different from
git-ls-remote . refs/heads/
(since the second matches anywhere in the string, not just at the
beginning) so we have to provide interface for both.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/examples/git-remote.perl | diff | blob | history | |
perl/Git.pm | diff | blob | history |