Skip to content

checkout: learn the checkout.guess config variable

Denton Liu git 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 1 replySuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

* Clarify that --guess is the default for checkout in the docs

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Documentation/config/checkout: replace sq with backticksDocumentation/config/checkout.txt+8 -80 replies
2/2checkout: learn to respect checkout.guessDocumentation/config/checkout.txt Documentation/git-checkout.txt Documentation/git-switch.txt +5 more+101 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] checkout: learn the checkout.guess config variable

If a user does not wish to use DWIM behaviour, they must manually specify git checkout --no-guess each time. Teach checkout and switch to honour the checkout.guess config variable instead.

Changes since v1:

* Replace enumerated priority list with bullet points

Changes since v2:

* Clarify that --guess is the default for checkout in the docs

Denton Liu (2):
Documentation/config/checkout: replace sq with backticks
checkout: learn to respect checkout.guess

 Documentation/config/checkout.txt      | 21 +++++++----
 Documentation/git-checkout.txt         |  5 ++-
 Documentation/git-switch.txt           |  3 ++
 builtin/checkout.c                     |  7 +++-
 contrib/completion/git-completion.bash | 25 ++++++++-----
 t/t2024-checkout-dwim.sh               | 11 ++++++
 t/t2060-switch.sh                      |  5 ++-
 t/t9902-completion.sh                  | 52 ++++++++++++++++++++++++++
 8 files changed, 109 insertions(+), 20 deletions(-)

Range-diff against v2:

1:  f08d3f796a = 1:  f08d3f796a Documentation/config/checkout: replace sq with backticks
2:  2678680a08 ! 2:  eb9daf4bcd checkout: learn to respect checkout.guess

@@ Documentation/config/checkout.txt: will checkout the <something> branch on ano

## Documentation/git-checkout.txt ##
@@ Documentation/git-checkout.txt: branches from there if <branch> is ambiguous but exists on the
+ 'origin' remote. See also checkout.defaultRemote in
linkgit:git-config[1].
+
- Use --no-guess to disable this.
+-Use --no-guess to disable this.
++--guess is the default behavior. Use --no-guess to disable it.
++
+The default behavior can be set via the checkout.guess configuration
+variable.

Signature · 1 line
2.28.0.942.g77c4c6094c