<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 30 Sep 2016, at 17:43, Norbert Hartl &lt;<a href="mailto:norbert@hartl.name" class="">norbert@hartl.name</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Am 30.09.2016 um 17:32 schrieb Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" class="">eliot.miranda@gmail.com</a>&gt;:<br class=""><br class=""><br class="">Hi Esteban,<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Sep 30, 2016, at 5:41 AM, Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com" class="">estebanlm@gmail.com</a>&gt; wrote:<br class=""><br class=""><br class="">Hi,<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">I would like to add also commit id to current VM version.<span class="Apple-converted-space">&nbsp;</span><br class="">We now have this:<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">VM: 201609281647 <a href="https://github.com/estebanlm/opensmalltalk-vm.git" class="">https://github.com/estebanlm/opensmalltalk-vm.git</a> $<span class="Apple-converted-space">&nbsp;</span><br class="">Date: Wed Sep 28 18:47:01 2016 +0200 $<span class="Apple-converted-space">&nbsp;</span><br class="">Plugins: 201609281647 <a href="https://github.com/estebanlm/opensmalltalk-vm.git" class="">https://github.com/estebanlm/opensmalltalk-vm.git</a> $<br class=""><br class="">And that’s ok, of course.<span class="Apple-converted-space">&nbsp;</span><br class="">But I would want also to have the commit version (it makes easier some queries). Something like this:<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">VM: 201609281647 <a href="https://github.com/estebanlm/opensmalltalk-vm.git" class="">https://github.com/estebanlm/opensmalltalk-vm.git</a> $<span class="Apple-converted-space">&nbsp;</span><br class="">Date: Wed Sep 28 18:47:01 2016 +0200 $<span class="Apple-converted-space">&nbsp;</span><br class="">Plugins: 201609281647 <a href="https://github.com/estebanlm/opensmalltalk-vm.git" class="">https://github.com/estebanlm/opensmalltalk-vm.git</a> $<br class="">Commit: 09aaed <a href="https://github.com/estebanlm/opensmalltalk-vm.git" class="">https://github.com/estebanlm/opensmalltalk-vm.git</a> $<br class=""><br class="">What do you think, may I proceed?<br class=""></blockquote><br class="">We discussed this at length during the summer. &nbsp;I very much wanted this too, but it is impossible with git. &nbsp;Any kind of change to the source requires a commit and there is no way of getting hold of the here t commit I'd during a commit. So one can only add an older commit I'd to the source, never the current one. &nbsp;So what we have is as good as one can get until the git designers add some new facility. &nbsp;:-(<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">The commit number is attached to the commit as metadata. So although it is not _in_ the source it is _with_ the source. If you build the vm you just need something reading this version number and compile it in. Or is the vm version"Date: Wed Sep 28 18:47:01 2016 +0200" &nbsp;the date of the commit?</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">I use "git describe" for that. It gives</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">1.3-24-gc0cd61a</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">where 1.3 is the latest tag. 24 is the number of commits since the commit the tag was attached to. And gc0cd61a being the commit hash.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>Exactly. On building time I can add that extra data (that’s what we do in Pharo).&nbsp;</div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Norbert</span></div></blockquote></div><br class=""></body></html>