threads / discuss / 15243

patchSubject: [PATCH] Update to the git tutorial

Subject: Subject: [PATCH] Update to the git tutorial

## tl;dr

2 messages between Aug 28, 2008 and Aug 29, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Paolo Ciarrocchi· Aug 28, 2008, 12:23 UTC · lore
From: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Update to gitutorial as discussedin the git mailing list:
http://marc.info/?t=121969390900002&r=1&w=2
Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
---
 Documentation/gittutorial.txt |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)
Show changes to Documentation/gittutorial.txt +28 −1
diff --git a/Documentation/gittutorial.txt b/Documentation/gittutorial.txt
index 48d1454..384972c 100644
--- a/Documentation/gittutorial.txt
+++ b/Documentation/gittutorial.txt
@@ -321,10 +321,37 @@ pulling, like this:
 
 ------------------------------------------------
 alice$ git fetch /home/bob/myrepo master
-alice$ git log -p ..FETCH_HEAD
+alice$ git log -p HEAD..FETCH_HEAD
 ------------------------------------------------
 
 This operation is safe even if Alice has uncommitted local changes.
+The range notation HEAD..FETCH_HEAD" means "show everything that is reachable
+from the FETCH_HEAD but exclude anything that is reachable from HEAD.
+Alice already knows everything that leads to her current state (HEAD),
+and reviewing what Bob has in his state (FETCH_HEAD) that she has not
+seen with this command
+
+If Alice wants to visualize what Bob did since their histories forked
+she can issue the following command:
+
+------------------------------------------------
+$ gitk HEAD..FETCH_HEAD
+------------------------------------------------
+
+This uses the same two-dot range notation we saw earlier with 'git log'.
+
+Alice may want to view what both of them did since they forked.
+She can use three-dot form instead of the two-dot form:
+
+------------------------------------------------
+$ gitk HEAD...FETCH_HEAD
+------------------------------------------------
+
+This means "show everything that is reachable from either one, but
+exclude anything that is reachable from both of them".
+
+Please note that these range notation can be used with both gitk
+and "git log".
 
 After inspecting what Bob did, if there is nothing urgent, Alice may
 decide to continue working without pulling from Bob.  If Bob's history
-- 
1.5.6.1.1071.g76fb
Paolo Ciarrocchi· Aug 29, 2008, 10:22 UTC · re: Paolo Ciarrocchi · lore

Re: Subject: [PATCH] Update to the git tutorial

On Thu, Aug 28, 2008 at 2:23 PM, Paolo Ciarrocchi <paolo.ciarrocchi@vodafone.com> wrote:

Show 10 quoted lines
> From: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
>
> Update to gitutorial as discussedin the git mailing list:
>
> http://marc.info/?t=121969390900002&r=1&w=2
>
> Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
> ---
>  Documentation/gittutorial.txt |   29 ++++++++++++++++++++++++++++-
>  1 files changed, 28 insertions(+), 1 deletions(-)

Nice to see that you pick up the patch (with the right correction to my poor changelog :-/).

BTW, I made the patch with msysgit on win, MUA is Thunderbird and editor is Notepad++. It might be a good idea to adjust CodingGuidelines since there might be other win contributors.

ciao,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/

← back to recent threads