<div dir="ltr"><div dir="ltr"><div>Hi all,</div><div>thanks, I think I've understood what happened:</div><div><br></div><div>For some reasons, i've got a branch named HEAD!!!</div><div>scripts/updateSCCSVersion was applying hooks from this branch and thus was removing all the changes that happened in 2018,</div><div><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commits/Cog/platforms/Cross/vm/sqSCCSVersion.h">https://github.com/OpenSmalltalk/opensmalltalk-vm/commits/Cog/platforms/Cross/vm/sqSCCSVersion.h</a></div><div>letting my working copy dirty...</div><div><br></div><div>I've eradicated the problem:</div><div>git branch -d HEAD</div><div><br></div><div>Now git status does not report any dirty (not staged) file when I run scripts/updateSCCSVersion<br></div><div><br></div><div>How the hell did I create this HEAD branch is another mistery, some miss-typing?</div><div><div>Are super powers of git for the best or for the worst?<br></div><div>It depends in which hands ;)<br></div>Most of what I do is thru SourceTree GUI, so I rarely mess directly with git command (I have to relearn them every time I need'em).</div><br><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le mar. 25 déc. 2018 à 19:38, Alistair Grant <<a href="mailto:akgrant0710@gmail.com">akgrant0710@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
Hi Nicolas & Fabio,<br>
<br>
On Tue, 25 Dec 2018 at 19:00, Fabio Niephaus <<a href="mailto:lists@fniephaus.com" target="_blank">lists@fniephaus.com</a>> wrote:<br>
><br>
> On Tue, 25 Dec 2018 at 4:04 pm, Nicolas Cellier <<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>> wrote:<br>
>><br>
>><br>
>> Hi all,<br>
>> when I execute scripts/updateSCCSVersions I get two modified files<br>
>> platforms/Cross/plugins/sqPluginsSCCSVersion.h<br>
>> platforms/Cross/vm/sqSCCSVersion.h<br>
>><br>
>> is this expected?<br>
>> should someone commit uptodate versions?<br>
><br>
><br>
> Hi Nicolas,<br>
><br>
> Yes, I think it's supposed to be like that. updateSCCSVersions should automatically be invoked by Git and keeps the two files updated with the latest commit information. Why do you think these files are outdated?<br>
<br>
>From memory:<br>
<br>
scripts/updateSCCSVersions installs git hooks to automatically update<br>
sqPluginsSCCSVersion.h & sqSCCSVersion.h with the current version<br>
information whenever a commit is made (and also forces an update when<br>
the script is run).  The version information is reproducible, so there<br>
isn't any need to commit the version files, which reduces the amount<br>
of noise in the commit logs (otherwise these two files would form part<br>
of *every* commit).<br>
<br>
HTH,<br>
Alistair<br>
</blockquote></div>