author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 24 Feb 2008 08:07:28 +0000 (03:07 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 24 Feb 2008 18:01:24 +0000 (10:01 -0800) | ||
commit | 8a5a1884e93564cb1f46a73184d083a5181d573b | |
tree | 7c702b2f8515acfc4e92e3753784ff0455036f19 | tree | snapshot |
parent | feededd05b551a02a95fe2a736e9d5f688b86119 | commit | diff |
Avoid accessing non-tag refs in git-describe unless --all is requested
If we aren't going to use a ref there is no reason for us to open
its object from the object database. This avoids opening any of
the head commits reachable from refs/heads/ unless they are also
reachable through the commit we have been asked to describe and
we need to walk through it to find a tag.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If we aren't going to use a ref there is no reason for us to open
its object from the object database. This avoids opening any of
the head commits reachable from refs/heads/ unless they are also
reachable through the commit we have been asked to describe and
we need to walk through it to find a tag.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-describe.c | diff | blob | history |