All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pete Harlan <pgit@pcharlan.com>
To: Jakub Narebski <jnareb@gmail.com>
Cc: Johan Herland <johan@herland.net>,
	git@vger.kernel.org, SZEDER Gabor <szeder@ira.uka.de>
Subject: Re: Archiving tags/branches?
Date: Tue, 21 Oct 2008 02:33:48 -0700	[thread overview]
Message-ID: <48FDA1FC.2030206@pcharlan.com> (raw)
In-Reply-To: <200810211015.27257.jnareb@gmail.com>

Jakub Narebski wrote:
> > (The above notional --ls modifier is probably very easy to write, and if
> > I do so it may address all of my woes.  Subversion's branching/tagging
> > can be organized pretty much exactly like this, and importing into git
> > such a repository is what initially led me to ask about organizing tags
> > and branches.)
>
> Hmmm... it looks like what you are complaining is not the fact that
> tags have flat namespace, but the fact that recursive mode is the
> default behavior (something like "ls -R" or "git ls-tree -r").
>   

Yes, though I hope it didn't sound like I was complaining, just trying 
to understand how people manage these things.  (And "recursive" mode
being the only mode is precisely what flattens the namespace.)


> > What I'm usually likely to want from a "list tags" command is to see the
> > most recent few tags, not (say) all 226 tags in git.git.  I'll probably
> > write a little alias that does that, but even then when looking at the
> > whole list it would be nice to have the option to navigate it
> > hierarchically.  (Or in some other manner, and/or possibly with a
> > configurable directory separator.)
>
> So you would want some '--local' / '--non-recursive' option to listing
> all tags (for git-tag) and branches (for git-branch).
>
>   
Sure, though I hadn't thought of it in those terms.

> As to the "most recent few tags":
>   $ git for-each-ref --format='%(refname)' --sort=-taggerdate --count=10 refs/tags/
>
>   

Well that's pretty slick, thanks :)  I have aliased that to "lt", and
"lb" to:

for-each-ref --format='%(refname:short)'  --sort=-authordate --count=8
refs/heads/

(which seems less useful, but it was useful as homework...)

Thanks again,

--Pete

      reply	other threads:[~2008-10-21  9:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-18  1:43 Archiving tags/branches? Pete Harlan
2008-10-18  2:50 ` David Symonds
2008-10-20  6:14   ` Pete Harlan
2008-10-18 10:23 ` SZEDER Gábor
2008-10-18 11:15   ` Johan Herland
2008-10-18 13:02     ` SZEDER Gábor
2008-10-18 13:32       ` Johan Herland
2008-10-20  6:36         ` Pete Harlan
2008-10-20  7:53           ` Johan Herland
2008-10-21  2:53             ` Pete Harlan
2008-10-20 14:35           ` Jakub Narebski
2008-10-21  4:08             ` Pete Harlan
2008-10-21  8:15               ` Jakub Narebski
2008-10-21  9:33                 ` Pete Harlan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48FDA1FC.2030206@pcharlan.com \
    --to=pgit@pcharlan.com \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    --cc=johan@herland.net \
    --cc=szeder@ira.uka.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.