author | Junio C Hamano <gitster@pobox.com> | |
Sat, 24 Oct 2009 05:40:18 +0000 (22:40 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 24 Oct 2009 05:40:18 +0000 (22:40 -0700) |
* maint:
Fix list of released versions in the toc document
Do not fail "describe --always" in a tag-less repository
Fix list of released versions in the toc document
Do not fail "describe --always" in a tag-less repository
1 | 2 | |||
---|---|---|---|---|
Documentation/git.txt | patch | | diff1 | | diff2 | | blob | history |
builtin-describe.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc Documentation/git.txt
Simple merge
diff --cc builtin-describe.c
index 2dcfd3dfebdaad8fe87b8d09fa00b058f519ac5a,7542b5705c4e0f3d214d3f3ff7367ee03bf82b9f..eaa8a9d229c97ebaab9ee3aa09d2456f68cd172c
--- 1/builtin-describe.c
--- 2/builtin-describe.c
+++ b/builtin-describe.c
return cmd_name_rev(i + argc, args, prefix);
}
- if (!found_names)
+ for_each_ref(get_name, NULL);
++ if (!found_names && !always)
+ die("No names found, cannot describe anything.");
+
if (argc == 0) {
describe("HEAD", 1);
} else {