From: Pete Harlan <pgit@pcharlan.com>
To: David Symonds <dsymonds@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Archiving tags/branches?
Date: Sun, 19 Oct 2008 23:14:30 -0700 [thread overview]
Message-ID: <48FC21C6.90600@pcharlan.com> (raw)
In-Reply-To: <ee77f5c20810171950j9ab85bfi6eddca167f86fda2@mail.gmail.com>
David Symonds wrote:
> On Sat, Oct 18, 2008 at 12:43 PM, Pete Harlan <pgit@pcharlan.com>
> wrote:
>> Hi,
>>
>> I'm looking for a way to manage an ever-growing list of tags. I've
>> read some git docs, but am new to git and wonder if the below
>> method doesn't work or if there's a standard practice I haven't run
>> into.
>>
>> Most of the tags in my repo are uninteresting to look at, but can't
>> be deleted. (Code releases for the most part, or stalled topic
>> branches.) If I wanted to archive those, it looks like this would
>> work:
>
> Is it really true that they can't be deleted? The only reason to
> avoid it might be for preventing Git's GC from cleaning them up, but
> if all your branches/tags are reachable via "interesting"
> branches/tags then you could just slap the tag name and SHA1 in a
> text file somewhere.
>
>
> Dave.
Thank you for your response. The tags aren't reachable; they're
dead-end branches.
Our development history looks like this:
o---o---o---o---o---o---o---o---o---o---o---o---o---o master
\ \ \
o---o---o r1.0 o---o---o r1.1 o---o---o r1.2
with releases branched off the development line and stabilized during
QA. Fixes into the release branches are cherry-picked out of master,
with no merges.
With a new release every few weeks, the tags pile up.
(There are workflows, such as git.git's, where the release tags form one
long line of development, and when we start using git we may use a
different workflow, but the above was our svn workflow, for the
obvious reason that svn doesn't understand merges. We're going to
import hundreds of such branches in the conversion to git; most such
names are noise, but we don't want to lose the history.)
I would think a built-in feature for archiving refs would be useful to
other projects, even when the tags/branches are reachable and therefore
one could manually stash them in a file. Getting the design right is
tricky because there are a lot of different ways to approach it, but the
idea seems generally useful to me.
One direction would be to support directory commands for tags, using
refs/tags and refs/branches as the root directories of trees. (This was
the solution in svn, which naturally supports a hierarchy of branches.)
Another would be to have a regexp for hiding tags/branches with a
certain pattern (e.g., leading '.'). What I'll probably do in the short
term is write an alias that lists the most recent 10 tags and use that
most of the time.
--Pete
next prev parent reply other threads:[~2008-10-20 6:15 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 [this message]
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
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=48FC21C6.90600@pcharlan.com \
--to=pgit@pcharlan.com \
--cc=dsymonds@gmail.com \
--cc=git@vger.kernel.org \
/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 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).