git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] fixup! push: switch default from "matching" to "simple"

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 17, 2013, 19:40 UTC
Message-ID
<7vhagwcyqf.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1371492079-19283-1-git-send-email-Matthieu.Moy@imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 5 quoted lines
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
> This is to be squashed into jc/push-2.0-default-to-simple
>
> (Noticed while writing the other patch about --force)
Thanks.

Note that this has to further change if Ram's triangular push fix comes before 2.0.

I am not sure if these original two lines are necessary. Wouldn't it more appropriate to just drop the "Without additional configuration" and go straight to "The default behaviour of this command..."?

Show 20 quoted lines
>  Documentation/git-push.txt | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
> index 9b9e7d1..81b875b 100644
> --- a/Documentation/git-push.txt
> +++ b/Documentation/git-push.txt
> @@ -381,8 +381,10 @@ Examples
>  	configured for the current branch).
>  
>  `git push origin`::
> -	Without additional configuration, works like
> -	`git push origin :`.
> +	Without additional configuration, pushes the current branch to
> +	the configured upstream (`remote.origin.merge` configuration
> +	variable) if it has the same name as the current branch, and
> +	errors out without pushing otherwise.
>  +
>  The default behavior of this command when no <refspec> is given can be
>  configured by setting the `push` option of the remote, or the `push.default`
Previous: Matthieu MoyNext: Matthieu Moy
Message 2 of 3 in “fixup! push: switch default from "matching" to "simple"”
  1. fixup! push: switch default from "matching" to "simple"Matthieu Moy, Jun 17, 2013
  2. Junio C HamanoJun 17, 2013
  3. Matthieu MoyJun 17, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.