describe: load refnames before calling describe()
commitfb423da0e5668f3945c5a3e34fe5953cde6985a4
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 17 Oct 2009 16:30:48 +0000 (17 18:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Oct 2009 06:00:02 +0000 (18 23:00 -0700)
treea09587447e9652337f382ecda6ff87685d08caa6
parentbcc9b7427d9f720127479bb603159de89c93f872
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>
builtin-describe.c