Re: [PATCH v3] push: Enhance unspecified push default warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13-11-08 01:02 PM, Junio C Hamano wrote:
> Matthieu Moy <Matthieu.Moy@xxxxxxxxxxxxxxx> writes:
> 
>> Jonathan Nieder <jrnieder@xxxxxxxxx> writes:
>>
>>> 	When push.default is set to 'matching', git will push local branches
>>> 	to remote branches that already exist with the same (matching) name.
>>
>> Yes, that's better than the original patch (and remains two lines).
>> ...
>>
>>> 	In Git 2.0, git will default to a more conservative 'simple' behavior
>>> 	that only pushes the current branch.
>>
>> That's an option too, but I think mentionning "git pull" was a good
>> idea.
> 
> OK, I'll tentatively update the draft to read like this, redo the
> endgame patch on top and requeue.
> 
>  builtin/push.c | 12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)
> 
> diff --git a/builtin/push.c b/builtin/push.c
> index 5393e28..27c5754 100644
> --- a/builtin/push.c
> +++ b/builtin/push.c
> @@ -174,14 +174,12 @@ N_("push.default is unset; its implicit value is changing in\n"
>     "\n"
>     "  git config --global push.default simple\n"
>     "\n"
> -   "When push.default is set to 'matching', git will push all local branches\n"
> -   "to the remote branches with the same (matching) name.  This will no\n"
> -   "longer be the default in Git 2.0 because a branch could be\n"
> -   "unintentionally pushed to a remote.\n"
> +   "When push.default is set to 'matching', git will push local branches\n"
> +   "to the remote branches that already exist with the same name.\n"
>     "\n"
> -   "In Git 2.0 the new push.default of 'simple' will push only the current\n"
> -   "branch to the same remote branch used by git pull.   A push will\n"
> -   "only succeed if the remote and local branches have the same name.\n"
> +   "In Git 2.0, Git will default to the more conservative 'simple'\n"
> +   "behavior that only pushes the current branch to the corresponding\n"
> +   "remote branch used by 'git pull' to update the current branch from.\n"

That reads a bit awkwardly.  How about:

	In Git 2.0, Git will default to the more conservative 'simple'
	behavior, which only pushes the current branch to the corresponding
	remote branch that 'git pull' uses to update the current branch.

		M.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]