Since Xcode 4.0 starting to support git version control, so that we could bind git tag and commit hash text with Xcode field. The steps in the pseudo-code are below:
- $ git commit -am "COMMIT LOG"
- trigger post-commit hooking
- Setting the tag number and new commit hash to plist.
In the real code is like below:
Put the code in a file to PROJECT_FOLDER/.git/hooks/post-commit, and make it executable.
2 則留言:
the *real code* is mssing, at least it will not be shown at the website
@j.erik Fixed.
張貼留言