author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 17 Oct 2009 16:30:48 +0000 (18:30 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 19 Oct 2009 06:00:02 +0000 (23:00 -0700) | ||
commit | fb423da0e5668f3945c5a3e34fe5953cde6985a4 | |
tree | a09587447e9652337f382ecda6ff87685d08caa6 | tree | snapshot |
parent | bcc9b7427d9f720127479bb603159de89c93f872 | commit | diff |
describe: load refnames before calling describe()
Get rid of the static variable that was used to prevent loading all
the refnames multiple times by moving that code out of describe(),
simply making sure it is only run once that way.
Also change the error message that is shown in case no refnames are
found to not include a hash any more, as the error condition is not
specific to any particular revision.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Get rid of the static variable that was used to prevent loading all
the refnames multiple times by moving that code out of describe(),
simply making sure it is only run once that way.
Also change the error message that is shown in case no refnames are
found to not include a hash any more, as the error condition is not
specific to any particular revision.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-describe.c | diff | blob | history |