git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jay Soffian <jaysoffian@gmail.com>
Cc: Christian Halstrick <christian.halstrick@gmail.com>, git@vger.kernel.org
Subject: Re: How to create tags outside of refs/tags?
Date: Mon, 21 Feb 2011 15:52:09 -0800	[thread overview]
Message-ID: <7vpqqlgd3q.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <AANLkTi=CseZLobCoq+Li0AexHR+eaZpe84DG5hGzWHzR@mail.gmail.com> (Jay Soffian's message of "Mon\, 21 Feb 2011 12\:48\:51 -0500")

Jay Soffian <jaysoffian@gmail.com> writes:

> On Mon, Feb 21, 2011 at 12:21 PM, Christian Halstrick
> <christian.halstrick@gmail.com> wrote:
>> I would like to create a tag which full name is not starting with
>> refs/tags. Is that possible with 'git tag'?
>
> Nope.
>
>> If not, is there any other command to create such tags?
>
> If it's just a light-weight tag, you can use the low-level (plumbing)
> command update-ref to create an arbitrary ref:

That is a very unfriendly answer.  You shouldn't be answering everybody
who ask "How do I shoot my foot off?  git-foo command does not seem to let
me do so" with "Here is how to do that".

> $ git update-ref refs/blargh HEAD

At least, please say "that thing is no longer a tag, many git commands
would complain because refs/blargh does not have two-levels, and do not
ever think about starting that thing without 'refs/', or your 'gc' may end
up losing that object" when you give a potentially dangerous hint like
that (the last one being the most important).

  reply	other threads:[~2011-02-21 23:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-21 17:21 How to create tags outside of refs/tags? Christian Halstrick
2011-02-21 17:48 ` Jay Soffian
2011-02-21 23:52   ` Junio C Hamano [this message]
2011-02-22  6:17 ` Christian Halstrick
2011-02-22  8:03   ` Jeff King
2011-02-22  8:09     ` Junio C Hamano
2011-02-22  8:14       ` Jeff King
2011-02-22 10:09         ` Jakub Narebski
2011-02-22 15:27           ` Jeff King
2011-02-22 16:21             ` Christian Halstrick
2011-02-22 18:38               ` Junio C Hamano
2011-02-22 22:08                 ` Christian Halstrick
2011-02-23 12:42                   ` Michael J Gruber
2011-02-23 13:45                     ` Christian Halstrick
2011-02-23 16:36                 ` Enrico Weigelt
2011-02-22 15:06   ` Jay Soffian

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=7vpqqlgd3q.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=christian.halstrick@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jaysoffian@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).