Petr Baudis wrote: > So the strategy I'm thinking of now is to manually (I think no GIT tool > can do that for me) dereference the possible tag chain until I end up at > some non-tag object. Now, if it is a commit and I don't have it yet, it > means that it is not interesting to me because it does not belong to a > branch I'm following, so I will just ignore the tag (won't download > anything else and won't record it in the refs/tags directory). git-rev-parse $tagname^0