git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Where has "git ls-remote" reference pattern matching gone?
@ 2007-12-08 22:05 Eyvind Bernhardsen
  2007-12-09  1:34 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Eyvind Bernhardsen @ 2007-12-08 22:05 UTC (permalink / raw)
  To: git

git-ls-remote(1) says that ls-remote supports filtering by reference  
name:


> SYNOPSIS
>        git-ls-remote [--heads] [--tags]  [-u <exec> | --upload-pack  
> <exec>]
>                      <repository> <refs>...
>
> [...]
>
>        <refs>...
>               When unspecified, all references, after filtering done  
> with
>               --heads and --tags, are shown. When <refs>... are  
> specified,
>               only references matching the given patterns are  
> displayed.
>
> [...]
>
>        $ git ls-remote --tags public v\*
>        d6602ec5194c87b0fc87103ca4d67251c76f233a        refs/tags/v0.99
>        f25a265a342aed6041ab0cc484224d9ca54b6f41        refs/tags/ 
> v0.99.1
>        c5db5456ae3b0873fc659c19fafdde22313cc441        refs/tags/ 
> v0.99.2
>        7ceca275d047c90c0c7d5afb13ab97efdf51bd6e        refs/tags/ 
> v0.99.3

But when I try to use the <refs> argument on a current build of git  
(git version v1.5.3.7-1112-g9758ecd), I just get its usage message,  
which doesn't mention that argument:

> vredefort:[backup]% git ls-remote origin foob
> usage: git-ls-remote [--upload-pack=<git-upload-pack>]  
> [<host>:]<directory>


ls-remote was recently made a builtin; was reference filtering  
deliberately removed, or was it just lost in translation from the  
shell script?

Eyvind Bernhardsen

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-09 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-08 22:05 Where has "git ls-remote" reference pattern matching gone? Eyvind Bernhardsen
2007-12-09  1:34 ` Junio C Hamano
2007-12-09  2:20   ` Daniel Barkalow
2007-12-09 15:38     ` Eyvind Bernhardsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).