]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'kh/branch-ref-syntax-advice'
authorJunio C Hamano <gitster@pobox.com>
Fri, 15 Mar 2024 23:05:59 +0000 (16:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Mar 2024 23:05:59 +0000 (16:05 -0700)
When git refuses to create a branch because the proposed branch
name is not a valid refname, an advice message is given to refer
the user to exact naming rules.

* kh/branch-ref-syntax-advice:
  branch: advise about ref syntax rules
  advice: use double quotes for regular quoting
  advice: use backticks for verbatim
  advice: make all entries stylistically consistent
  t3200: improve test style

1  2 
Documentation/config/advice.txt
advice.c
advice.h
builtin/branch.c
t/t3200-branch.sh

index dde8e7840ef38225995549411fbcf9305b160c37,06c754899c553e2dcca7bec4c3083a9b1aa88e22..f83341165367baac4f02779eedf432822644e615
@@@ -123,23 -126,20 +126,23 @@@ advice.*:
                by linkgit:git-switch[1] or
                linkgit:git-checkout[1] when switching branches.
        statusUoption::
-               Advise to consider using the `-u` option to linkgit:git-status[1]
-               when the command takes more than 2 seconds to enumerate untracked
-               files.
+               Shown when linkgit:git-status[1] takes more than 2
+               seconds to enumerate untracked files, to tell the user that
+               they can use the `-u` option.
        submoduleAlternateErrorStrategyDie::
-               Advice shown when a submodule.alternateErrorStrategy option
+               Shown when a submodule.alternateErrorStrategy option
                configured to "die" causes a fatal error.
 +      submoduleMergeConflict::
 +              Advice shown when a non-trivial submodule merge conflict is
 +              encountered.
        submodulesNotUpdated::
-               Advice shown when a user runs a submodule command that fails
+               Shown when a user runs a submodule command that fails
                because `git submodule update --init` was not run.
        suggestDetachingHead::
-               Advice shown when linkgit:git-switch[1] refuses to detach HEAD
+               Shown when linkgit:git-switch[1] refuses to detach HEAD
                without the explicit `--detach` option.
        updateSparsePath::
-               Advice shown when either linkgit:git-add[1] or linkgit:git-rm[1]
+               Shown when either linkgit:git-add[1] or linkgit:git-rm[1]
                is asked to update index entries outside the current sparse
                checkout.
        waitingForEditor::
diff --cc advice.c
Simple merge
diff --cc advice.h
Simple merge
Simple merge
Simple merge