Skip to content

Commit c17866d

Browse files
committed
Merge branch 'gp/avoid-explicit-mention-of-dot-git-refs' into maint
* gp/avoid-explicit-mention-of-dot-git-refs: Fix ".git/refs" stragglers
2 parents 1d66383 + 48dfe96 commit c17866d

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Documentation/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ core.sharedRepository::
443443

444444
core.warnAmbiguousRefs::
445445
If true, Git will warn you if the ref name you passed it is ambiguous
446-
and might match multiple refs in the .git/refs/ tree. True by default.
446+
and might match multiple refs in the repository. True by default.
447447

448448
core.compression::
449449
An integer -1..9, indicating a default compression level.

Documentation/gitcli.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,14 @@ couple of magic command line options:
107107
---------------------------------------------
108108
$ git describe -h
109109
usage: git describe [options] <committish>*
110+
or: git describe [options] --dirty
110111

111112
--contains find the tag that comes after the commit
112113
--debug debug search strategy on stderr
113-
--all use any ref in .git/refs
114-
--tags use any tag in .git/refs/tags
115-
--abbrev [<n>] use <n> digits to display SHA-1s
116-
--candidates <n> consider <n> most recent tags (default: 10)
114+
--all use any ref
115+
--tags use any tag, even unannotated
116+
--long always use long format
117+
--abbrev[=<n>] use <n> digits to display SHA-1s
117118
---------------------------------------------
118119

119120
--help-all::

builtin/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
402402
struct option options[] = {
403403
OPT_BOOLEAN(0, "contains", &contains, N_("find the tag that comes after the commit")),
404404
OPT_BOOLEAN(0, "debug", &debug, N_("debug search strategy on stderr")),
405-
OPT_BOOLEAN(0, "all", &all, N_("use any ref in .git/refs")),
406-
OPT_BOOLEAN(0, "tags", &tags, N_("use any tag in .git/refs/tags")),
405+
OPT_BOOLEAN(0, "all", &all, N_("use any ref")),
406+
OPT_BOOLEAN(0, "tags", &tags, N_("use any tag, even unannotated")),
407407
OPT_BOOLEAN(0, "long", &longformat, N_("always use long format")),
408408
OPT__ABBREV(&abbrev),
409409
OPT_SET_INT(0, "exact-match", &max_candidates,

0 commit comments

Comments
 (0)