<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
2. I have added a top-level file VERSION and tools/pre-commit hook to keep it updated. Daniel you will have to copy tools/pre-commit to .git/hooks/pre-commit<br>
<br>
I'm not sure how much I like this. I have tried a post-commit hook which updates the local file with the hash and build info after the commit in the local copy but not the copy send to github and the pre-commit hook updates the file with the has BEFORE the commit so it always reflects and state before the commit, but that also means the number in the file will match what is on the server.<br>


<br>
BTW, It is not possible to set the hash of a current commit into a file that is getting committed because the hash IS based on the content of the files committed, so you get infinite recursion!<br></blockquote><div><br></div>

<div style>How do you manage to get the updated VERSION file to be part of the last commit?</div><div style>I added the pre-commit file as you said, but every time I commit, the VERSION file changes and is marked as modified. And on the Github repository I'm theoretically always one commit hash behind.</div>

<div style><br></div><div style>Daniel</div><div style><br></div><div style><br></div></div><br clear="all"><div><br></div>-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>

eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span>
</div></div>