git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: determine name of tag used for checkout when multiple tags exist?

From
JHJesse Hopkins <jesse.hops@gmail.com>
Date
Sep 5, 2015, 14:23 UTC
Message-ID
<CAL3By-9e2ZjShFxMKoLfc_q0LFvB51m15Z8Ydp8b8fGNdcUp_A@mail.gmail.com>
In-Reply-To
<20150904111915.GB27660@serenity.lan>
On Fri, Sep 4, 2015 at 5:19 AM, John Keeping <john@keeping.me.uk> wrote:
> I think it would be a reasonable enhancement to include the branch name
> in the reflog message if "-b" is given to "git clone", but I'm not aware
> of any (formal) policy on the format of reflog messages so relying on
> any particular message may not be 100% reliable across Git upgrades.

Thanks for posting my dropped message. Apparently the gmail Android app doesn't do plain text. I understand that parsing the reflog message may not be future-proof, but I'm going to go for it. I think that will be more reliable than trying to track the tag name externally. Having the reflog message show up for a "-b" clone would be helpful, but it will be easy enough for me to clone HEAD, then immediately checkout the tag of interest. Thanks again for the suggestion, would've never thought use the reflog.

Previous: John Keeping
Message 5 of 5 in “determine name of tag used for checkout when multiple tags exist?”
  1. Jesse HopkinsSep 4, 2015
  2. Jacob KellerSep 4, 2015
  3. John KeepingSep 4, 2015
  4. John KeepingSep 4, 2015
  5. Jesse HopkinsSep 5, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.