Skip to content

Commit

Permalink
doc: drop "explicitly given" from push.default description
Browse files Browse the repository at this point in the history
The documentation for push.default mentions that it is used if no
refspec is "explicitly given". Let's drop the notion of "explicit" here,
since it's vague, and just mention that any refspec from anywhere is
sufficient to override this.

I've dropped the mention of "explicitly given" from the definition of
the "nothing" value right below, too. It's close enough to our
clarification that it should be obvious we mean the same type of "given"
here.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
peff authored and gitster committed Jan 29, 2020
1 parent c7a6207 commit 8b2a192
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/config/push.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
push.default::
Defines the action `git push` should take if no refspec is
explicitly given. Different values are well-suited for
given (whether from the command-line, config, or elsewhere).
Different values are well-suited for
specific workflows; for instance, in a purely central workflow
(i.e. the fetch source is equal to the push destination),
`upstream` is probably what you want. Possible values are:
+
--

* `nothing` - do not push anything (error out) unless a refspec is
explicitly given. This is primarily meant for people who want to
given. This is primarily meant for people who want to
avoid mistakes by always being explicit.

* `current` - push the current branch to update a branch with the same
Expand Down

0 comments on commit 8b2a192

Please sign in to comment.