<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 19:43, Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com" class="">estebanlm@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" class="" 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;"><div class=""><br class="Apple-interchange-newline">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 class="" 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;"><br class="" 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;"><blockquote type="cite" class="" 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;">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<span class="Apple-converted-space">&nbsp;</span><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>$<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<span class="Apple-converted-space">&nbsp;</span><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=""><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<span class="Apple-converted-space">&nbsp;</span><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>$<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<span class="Apple-converted-space">&nbsp;</span><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="">Commit: 09aaed<span class="Apple-converted-space">&nbsp;</span><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=""><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 class="" 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;"><span class="" 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;">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 class="" 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;"><span class="" 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;">I use "git describe" for that. It gives</span><br class="" 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;"><br class="" 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;"><span class="" 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;">1.3-24-gc0cd61a</span><br class="" 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;"><br class="" 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;"><span class="" 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;">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 class="" 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;"></div></blockquote><div 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 class=""></div><div 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="">Exactly. On building time I can add that extra data (that’s what we do in Pharo).&nbsp;</div></div></blockquote><div><br class=""></div><div>Let me clarify a bit this.&nbsp;</div><div>I can add the commit info in building time without polluting the files. This is extremely useful for search problems, because I can tell &nbsp;“just give me the version of your vm” and do a checkout of that exact version immediately. I do not even need to do a search of which VM corresponds to the version date: I already have it :)</div><div><br class=""></div><div>This will not change nothing on things as they are now and it will do my life (and I sure the life of all of us) better :)</div><div>(of course, I can do it only for Pharo if you are not convinced)</div><div><br class=""></div><div>cheers,&nbsp;</div><div>Esteban</div><br class=""><blockquote type="cite" class=""><div class=""><br class="" 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;"><blockquote type="cite" class="" 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;"><div class=""><br class="" 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;"><span class="" 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;">Norbert</span></div></blockquote></div></blockquote></div><br class=""></body></html>