Hello,


I would like to push a version string to a file within the Git repo, like a 
version number, but not with an incremented value.

I would like to put into the file the branch / tag name and the date of the 
head eg


On the master branch within the file should be written: master 2012-10-27

The value on the master should be changed on each commit

If a new branch is created the value should be: branchname <date of the 
latest commit>

On a tag creation the tag name and date should be added on which the tag is 
created.


I don't know how to do this, because I have found in the documentation that 
Git supports

clients and server hook (I'm comming from SVN), so I don't know which type 
of hook is the

best choice. IMHO it should be a server-side hook. 


The next question is, that I need a change on a checked in file, so the 
commit hash is changed,

can I do something like this, because the content of the commit is changed? 
IMHO the version

string can be added also on a check-out, I think this is the best solution.


Can anybody help me to solve this problem?

Thanks a lot


Phil

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/rzDUaAhBDJsJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to