<div dir="ltr">Thanks Hans!<div><br></div><div>Is this something that we can document somewhere? (especially if we will continue to maintain / create tags with each branching).</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 25, 2019 at 1:06 PM Hans Wennborg via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">As first discussed in the giant "New LLVM git repository conversion<br>
prototype" thread, I've pushed a git tag that allows git-describe to<br>
be used for generating human readable commit names on master.<br>
<br>
The tag is "llvmorg-10-init", to be interpreted as "the initial commit<br>
with major version number 10". The idea is to add similar tags along<br>
with future version bumps.<br>
<br>
git describe generates a name like this:<br>
<br>
$ git describe a4783ef<br>
llvmorg-10-init-8348-ga4783ef58d3<br>
<br>
Where "llvmorg-10-init" is the tag name, 8348 is the number of commits<br>
since the tag (yay, monotonically incrementing commit numbers), and<br>
"a4783ef58d3" is the hash with "g" as a magic prefix to indicate it's<br>
a git hash.<br>
<br>
The name can be used to refer to commits directly (git only looks at<br>
the hash after the "g"):<br>
<br>
$ git show llvmorg-10-init-8348-ga4783ef58d3 -s --oneline<br>
a4783ef58d3 [Alignment][NFC] getMemoryOpCost uses MaybeAlign<br>
<br>
<br>
Thanks,<br>
Hans<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>