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

Re: Is it possible get the tag name of working copy in Git?

From
Stefan Beller <sbeller@google.com>
Date
Mar 13, 2015, 17:00 UTC
Message-ID
<CAGZ79kaeWkVD-tCVMRYBxgG80_PHOeHKeSdpodAPqgpdiARa7Q@mail.gmail.com>
In-Reply-To
<5502AF86.9050803@web.de>
On Fri, Mar 13, 2015 at 2:36 AM, Torsten Bögershausen <tboegi@web.de> wrote:
Show 5 quoted lines
> On 03/13/2015 08:08 AM, chen chang wrote:
>>
>> I want to use make file auto generate the revision number of working
>> copy from the tag name in git.
>

Maybe you're looking for git describe? http://git-scm.com/docs/git-describe

Previous: Torsten Bögershausen
Message 3 of 3 in “Is it possible get the tag name of working copy in Git?”
  1. chen changMar 13, 2015
  2. Torsten BögershausenMar 13, 2015
  3. Stefan BellerMar 13, 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.