]> git.ipfire.org Git - thirdparty/git.git/commit
ls-remote: add support for showing symrefs
authorThomas Gummerer <t.gummerer@gmail.com>
Mon, 18 Jan 2016 23:20:50 +0000 (00:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jan 2016 18:07:56 +0000 (10:07 -0800)
commit99c08d4eb28f0525d71125e7903fd4462bfd6787
tree3b08569626d8d45f67497d3a4acc5d4605e2e0f9
parentba5f28bf79ea652fbe2be12f5ca6b351bb6ad591
ls-remote: add support for showing symrefs

Sometimes it's useful to know the main branch of a git repository
without actually downloading the repository.  This can be done by
looking at the symrefs stored in the remote repository.  Currently git
doesn't provide a simple way to show the symrefs stored on the remote
repository, even though the information is available.  Add a --symref
command line argument to the ls-remote command, which shows the symrefs
in the remote repository.

While there, replace a literal tab in the format string with \t to make
it more obvious to the reader.

Suggested-by: pedro rijo <pedrorijo91@gmail.com>
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-ls-remote.txt
builtin/ls-remote.c
t/t5512-ls-remote.sh