Code

git-describe: --tags and --abbrev
authorJunio C Hamano <junkio@cox.net>
Tue, 27 Dec 2005 22:40:17 +0000 (14:40 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 28 Dec 2005 01:57:27 +0000 (17:57 -0800)
commit2d9e7c9f908d0a025970a5592d47def3d77e77a9
tree95b628ef3953c7f870439a1f11fc877d3b5ed484
parent4cdf78bf964912698ab33579977f21a3e0b832ed
git-describe: --tags and --abbrev

With --tags, not just annontated tags, but also any ref under
refs/tags/ are used to name the revision.

The number of digits is configurable with the --abbrev=<n> option.

Signed-off-by: Junio C Hamano <junkio@cox.net>
describe.c