Code

Teach git-describe to display distances from tags.
authorShawn O. Pearce <spearce@spearce.org>
Thu, 25 Jan 2007 17:39:54 +0000 (12:39 -0500)
committerJunio C Hamano <junkio@cox.net>
Sun, 28 Jan 2007 10:08:51 +0000 (02:08 -0800)
commit237fb6ca7cbe45f88523ad367d0d703a039dff2d
tree4dfdc4b03eb64ce8003868dc584514a412799bb6
parent46e5e69d5f2e8ae87a29953531a3d1bd7cb0292f
Teach git-describe to display distances from tags.

If you get two different describes at different
times from a non-rewinding branch and they both come up with the same
tag name, you can tell which is the 'newer' one by distance.  This is
rather common in practice, so its incredibly useful.

[jc: still needs documentation and fixups when traversal gives up
 early.]

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-describe.c