From: Junio C Hamano <gitster@pobox.com>
To: Jay Soffian <jaysoffian@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Correct git-pull documentation
Date: Sat, 16 Feb 2008 01:31:03 -0800 [thread overview]
Message-ID: <7vodahb63s.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1203137441-52448-1-git-send-email-jaysoffian@gmail.com> (Jay Soffian's message of "Fri, 15 Feb 2008 23:50:41 -0500")
Jay Soffian <jaysoffian@gmail.com> writes:
> The --rebase option was documented in the wrong place (under MERGE
> STRATEGIES instead of OPTIONS). Noted the branch.<name>.rebase
> option and clarified the use '.' in a few places. Switched
> "git-<command>" to "git command".
Clarifying that --rebase is not a strategy is a good
improvement. Thanks.
> @@ -55,12 +57,13 @@ Often people use `git pull` without giving any parameter.
> Traditionally, this has been equivalent to saying `git pull
> origin`. However, when configuration `branch.<name>.remote` is
> present while on branch `<name>`, that value is used instead of
> -`origin`.
> +`origin`. (`branch.<name>.remote` may be set to `.` to pull from
> +the local repository by default.)
I am not sure if this special case deserves mentioning here.
> -In order to determine what URL to use to fetch from, the value
> -of the configuration `remote.<origin>.url` is consulted
> -and if there is not any such variable, the value on `URL: ` line
> -in `$GIT_DIR/remotes/<origin>` file is used.
> +Unless pulling from the local repository, a URL must be determined
> +for the origin. This is done by first consulting
> +`remote.<origin>.url`. If there is not any such variable, the value
> +on `URL: ` line in `$GIT_DIR/remotes/<origin>` file is used.
Likewise.
> @@ -138,6 +141,9 @@ You should refrain from abusing this option to sneak substantial
> changes into a merge commit. Small fixups like bumping
> release/version name would be acceptable.
>
> +git pull --rebase . master::
> + This syntax is equivalent to calling `git rebase master`; see
> + linkgit:git-rebase[1] for details.
Likewise. That is a very roundabout way to say "git rebase
master". It happens to work as a logical consequence of two
facts (1) that you can pull from any remote and (2) that "." is
a valid remote that names local. I am personally happy that the
command works consistently, but I think we should rather teach
people the more natural way to do their rebase in our
documentation.
The fact that we earlier talked about "git pull ." does not
justify this addition. Even though "git pull ." is also a
roundabout way, it used to be the only way (we did not have the
"git merge" callable as the top-level command) and there are
existing documents that show the "git pull ." form out there on
the web, and that is the primary reason we mention this ancient
form, so that people who saw such an ancient notation can find
out what it is about in our documentation. Some people still
prefer it from pure inertia, and we have no reason to deprecate
it, but I do not think it is something we should advertise as
the first class interface.
next prev parent reply other threads:[~2008-02-16 9:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-16 4:50 [PATCH] Correct git-pull documentation Jay Soffian
2008-02-16 8:20 ` Nagy Balázs
2008-02-16 9:31 ` Junio C Hamano [this message]
2008-02-16 10:04 ` Jay Soffian
-- strict thread matches above, loose matches on Subject: below --
2008-02-19 19:24 Jay Soffian
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=7vodahb63s.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jaysoffian@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.