I wrote a simple post-checkout git hook to capture the currently checked out tag:
#!/bin/sh
# Get the repository name
repo_name=$(basename `git rev-parse --show-toplevel`)
# Get the current tag
current_tag=$(git describe --tags --exact-match 2> /dev/null)
# If there is a current tag
if [ $? -eq 0 ]; then
echo "$repo_name: $current_tag" >> ../PackageDependencies.history
else
echo "WARNING: Ignoring post-checkout hook, no tag found"
fi
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: