git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Archiving tags/branches?
@ 2008-10-18  1:43 Pete Harlan
  2008-10-18  2:50 ` David Symonds
  2008-10-18 10:23 ` SZEDER Gábor
  0 siblings, 2 replies; 14+ messages in thread
From: Pete Harlan @ 2008-10-18  1:43 UTC (permalink / raw)
  To: git

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:

mkdir .git/refs/archived-tags
cp -a .git/refs/tags/* .git/refs/archived-tags
git tag -d <tag-to-hide> # repeat as necessary

I can then maintain a short list of tags that currently interest me, but
am guaranteed not to lose old branches (say) referenced by those tags.

Is there a reason this won't work?

The immediate downsides I see are:

1. The name "archived-tags" might clash someday with a git directory.

2. I have to manually copy this to clones if I want it there too, and
can't manage it from them remotely.

In general, I'm thinking flat tag and branch namespaces must get
unweildy, and short of implementing directory-style namespace management
within git (e.g., hide tags beginning with "." by default, allow tag
subdirectories) I'm looking for a workaround.

Thanks,

--Pete

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

end of thread, other threads:[~2008-10-21  9:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).