From: "Santi Béjar" <santi@agolina.net>
To: Elia Pinto <gitter.spiros@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] documentation: update the "Pushing changes to a public repository" section
Date: Sat, 20 Feb 2010 00:09:11 +0100 [thread overview]
Message-ID: <adf1fd3d1002191509y60f4e411kfe2c0e8e580d4df9@mail.gmail.com> (raw)
In-Reply-To: <4df72b1a1002190845o2cbde92btb8804e2467ffda51@mail.gmail.com>
On Fri, Feb 19, 2010 at 5:45 PM, Elia Pinto <gitter.spiros@gmail.com> wrote:
> Extracted from git v1.7.0 Release Notes:
>
> * "git push" into a branch that is currently checked out (i.e. pointed at by
> HEAD in a repository that is not bare) is refused by default.
>
> Update the user manual where necessary
It is a good change. I have some comments below, but I prefer when the
docs explain first the current behavior and afterwards, as a note or
alike, the prior behavior. Like this?
-repository that has a checked-out working tree, but the working tree
-will not be updated by the push. This may lead to unexpected results if
-the branch you push to is the currently checked-out branch!
+repository that has a checked-out working tree, but not into a branch that is
+currently checked out (i.e. pointed at by HEAD in a repository that is not
+bare), as it is refused by default. This is not allowed by default because
+this may lead to unexpected results. Note that prior to the version 1.7 it was
+allowed.
> ---
> Documentation/user-manual.txt | 12 ++++++++----
> 1 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
> index fe6fb72..0897839 100644
> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -1963,10 +1963,14 @@ As with `git fetch`, `git push` will complain
> if this does not result in a
> handling this case.
>
> Note that the target of a "push" is normally a
> -<<def_bare_repository,bare>> repository. You can also push to a
> -repository that has a checked-out working tree, but the working tree
> -will not be updated by the push. This may lead to unexpected results if
> -the branch you push to is the currently checked-out branch!
> +<<def_bare_repository,bare>> repository. Until the version 1.7 you could
This implies that in 1.7 you can.
> +also push to a repository that has a checked-out working tree,
> +but the working tree will not be updated by the push. This might lead to
> +unexpected results if the branch you pushed to was the currently checked-out
> +branch! From 1.7.0 git push" into a branch that is currently checked out
Missing ".
> +(i.e. pointed at by HEAD in a repository that is not bare)
> +is refused by default.
> +
Thanks,
Santi
prev parent reply other threads:[~2010-02-19 23:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-19 16:45 [PATCH] documentation: update the "Pushing changes to a public repository" section Elia Pinto
2010-02-19 23:09 ` Santi Béjar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adf1fd3d1002191509y60f4e411kfe2c0e8e580d4df9@mail.gmail.com \
--to=santi@agolina.net \
--cc=git@vger.kernel.org \
--cc=gitter.spiros@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).