* [PATCH] Note that '.' is a useful value for <repository> in git-pull.
@ 2005-11-01 3:28 Daniel Barkalow
0 siblings, 0 replies; only message in thread
From: Daniel Barkalow @ 2005-11-01 3:28 UTC (permalink / raw)
To: git
Mention in the tutorial and in the documentation for git-pull that you can
merge local branches with all the bells and whistles with
"git pull . <branch>"
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
---
"git pull . <branch>" does, in fact, do exactly what I wanted, and, when
the tutorial mentioned that you could do this, it didn't mention why you
might want to.
Documentation/git-pull.txt | 3 ++-
Documentation/tutorial.txt | 12 ++++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
applies-to: 8c8ace55eb085e930dcc9482f7cf66f9399374b4
0ba51e8c8298aff4256bd63289071f23b4d83db3
diff --git a/Documentation/git-pull.txt b/Documentation/git-pull.txt
index bae05de..fe0c18a 100644
--- a/Documentation/git-pull.txt
+++ b/Documentation/git-pull.txt
@@ -13,7 +13,8 @@ SYNOPSIS
DESCRIPTION
-----------
-Runs 'git-fetch' with the given parameters.
+Runs 'git-fetch' with the given parameters. This is effectively
+skipped if the repository is '.'
When only one ref is downloaded, runs 'git resolve' to merge it
into the local HEAD. Otherwise uses 'git octopus' to merge them
diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt
index b9f737e..78443a9 100644
--- a/Documentation/tutorial.txt
+++ b/Documentation/tutorial.txt
@@ -1027,8 +1027,16 @@ course, you will pay the price of more d
multiple working trees, but disk space is cheap these days.
[NOTE]
-You could even pull from your own repository by
-giving '.' as <remote-repository> parameter to `git pull`.
+
+One useful special case is
+
+ git pull . <branch-name>
+
+which does about the same thing as the `git resolve` calls for merging
+local branches, except that you don't have to type in the message or
+the side you're merging into (which is the branch that you have
+checked out).
+
It is likely that you will be pulling from the same remote
repository from time to time. As a short hand, you can store
---
0.99.8.GIT
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-01 3:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-01 3:28 [PATCH] Note that '.' is a useful value for <repository> in git-pull Daniel Barkalow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox