* [PATCH] Documentation/git-pull: clarify configuration
@ 2010-11-09 20:56 Martin von Zweigbergk
2010-11-10 3:48 ` Jonathan Nieder
0 siblings, 1 reply; 3+ messages in thread
From: Martin von Zweigbergk @ 2010-11-09 20:56 UTC (permalink / raw)
To: git, gitster; +Cc: Martin von Zweigbergk
The sentence about 'branch.<name>.rebase' refers to the first sentence
in the paragraph. Clarify by moving it right after that sentence.
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
---
Documentation/git-pull.txt | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/Documentation/git-pull.txt b/Documentation/git-pull.txt
index c50f7dc..e9c0393 100644
--- a/Documentation/git-pull.txt
+++ b/Documentation/git-pull.txt
@@ -92,12 +92,11 @@ include::merge-options.txt[]
:git-pull: 1
--rebase::
- Instead of a merge, perform a rebase after fetching. If
- there is a remote ref for the upstream branch, and this branch
- was rebased since last fetched, the rebase uses that information
- to avoid rebasing non-local changes. To make this the default
- for branch `<name>`, set configuration `branch.<name>.rebase`
- to `true`.
+ Instead of a merge, perform a rebase after fetching. To make this
+ the default for branch `<name>`, set configuration
+ `branch.<name>.rebase` to `true`. If there is a remote ref for the
+ upstream branch, and this branch was rebased since last fetched, the
+ rebase uses that information to avoid rebasing non-local changes.
+
[NOTE]
This is a potentially _dangerous_ mode of operation.
--
1.7.3.2.167.ga361b
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation/git-pull: clarify configuration
2010-11-09 20:56 [PATCH] Documentation/git-pull: clarify configuration Martin von Zweigbergk
@ 2010-11-10 3:48 ` Jonathan Nieder
[not found] ` <AANLkTik5MMKWune_i6omu=vXmuVEJqff6Bm0=yNcS9+z@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Nieder @ 2010-11-10 3:48 UTC (permalink / raw)
To: Martin von Zweigbergk; +Cc: git, gitster
Martin von Zweigbergk wrote:
> The sentence about 'branch.<name>.rebase' refers to the first sentence
> in the paragraph. Clarify by moving it right after that sentence.
Sane.
> --- a/Documentation/git-pull.txt
> +++ b/Documentation/git-pull.txt
> @@ -92,12 +92,11 @@ include::merge-options.txt[]
> :git-pull: 1
>
> --rebase::
> - Instead of a merge, perform a rebase after fetching. If
> - there is a remote ref for the upstream branch, and this branch
> - was rebased since last fetched, the rebase uses that information
> - to avoid rebasing non-local changes. To make this the default
> - for branch `<name>`, set configuration `branch.<name>.rebase`
> - to `true`.
> + Instead of a merge, perform a rebase after fetching. To make this
> + the default for branch `<name>`, set configuration
> + `branch.<name>.rebase` to `true`.
Grammatically, the narrator first gives an order to the git program
("perform a rebase") and then to the person configuring it ("set the
configuration"). Maybe it would be clearer to focus on what the
program does in this case?
Instead of merging, rebase the current branch on top of the
upstream branch after fetching. If there is a remote-tracking
branch corresponding to the upstream branch and the upstream
branch was rebased since last fetched, the rebase uses that
information to avoid rebasing non-local changes.
The default behavior is to merge rather than rebasing, but it
can be overridden per branch with the `branch.<name>.rebase`
configuration item (see git-config(1)).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-10 17:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09 20:56 [PATCH] Documentation/git-pull: clarify configuration Martin von Zweigbergk
2010-11-10 3:48 ` Jonathan Nieder
[not found] ` <AANLkTik5MMKWune_i6omu=vXmuVEJqff6Bm0=yNcS9+z@mail.gmail.com>
2010-11-10 17:25 ` When is a patch ready for inclusion? (Re: [PATCH] Documentation/git-pull: clarify configuration) Jonathan Nieder
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).