git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] user-manual: be consistent in illustrations to 'git rebase'
@ 2010-09-28  8:20 Kirill Smelkov
  2010-09-28  9:47 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Kirill Smelkov @ 2010-09-28  8:20 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Kirill Smelkov

Since we use a-b-c for mywork commits in one place, I think it would be
logical to also use a-b-c too in other illustration on this topic.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
---
 Documentation/user-manual.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index fecc4eb..87ca1a7 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -2424,41 +2424,41 @@ Keeping a patch series up to date using git rebase
 --------------------------------------------------
 
 Suppose that you create a branch "mywork" on a remote-tracking branch
 "origin", and create some commits on top of it:
 
 -------------------------------------------------
 $ git checkout -b mywork origin
 $ vi file.txt
 $ git commit
 $ vi otherfile.txt
 $ git commit
 ...
 -------------------------------------------------
 
 You have performed no merges into mywork, so it is just a simple linear
 sequence of patches on top of "origin":
 
 ................................................
  o--o--o <-- origin
         \
-         o--o--o <-- mywork
+         a--b--c <-- mywork
 ................................................
 
 Some more interesting work has been done in the upstream project, and
 "origin" has advanced:
 
 ................................................
  o--o--O--o--o--o <-- origin
         \
          a--b--c <-- mywork
 ................................................
 
 At this point, you could use "pull" to merge your changes back in;
 the result would create a new merge commit, like this:
 
 ................................................
  o--o--O--o--o--o <-- origin
         \        \
          a--b--c--m <-- mywork
 ................................................
 
-- 
1.7.3.6.g64005

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] user-manual: be consistent in illustrations to 'git rebase'
  2010-09-28  8:20 [PATCH] user-manual: be consistent in illustrations to 'git rebase' Kirill Smelkov
@ 2010-09-28  9:47 ` Junio C Hamano
  2010-09-28 11:08   ` Kirill Smelkov
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2010-09-28  9:47 UTC (permalink / raw)
  To: Kirill Smelkov; +Cc: Junio C Hamano, git

Kirill Smelkov <kirr@mns.spb.ru> writes:

> Since we use a-b-c for mywork commits in one place, I think it would be
> logical to also use a-b-c too in other illustration on this topic.
>
> Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
> ---
>  Documentation/user-manual.txt |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
> index fecc4eb..87ca1a7 100644
> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -2424,41 +2424,41 @@ Keeping a patch series up to date using git rebase
>  --------------------------------------------------
>  
>  Suppose that you create a branch "mywork" on a remote-tracking branch
>  "origin", and create some commits on top of it:
>  
>  -------------------------------------------------
>  $ git checkout -b mywork origin
>  $ vi file.txt
>  $ git commit
>  $ vi otherfile.txt
>  $ git commit
>  ...
>  -------------------------------------------------
>  
>  You have performed no merges into mywork, so it is just a simple linear
>  sequence of patches on top of "origin":
>  
>  ................................................
>   o--o--o <-- origin
>          \
> -         o--o--o <-- mywork
> +         a--b--c <-- mywork
>  ................................................

Perhaps you would want to make the origin commit "O" while you are at it
(I can locally fix it up)?

>  Some more interesting work has been done in the upstream project, and
>  "origin" has advanced:
>  
>  ................................................
>   o--o--O--o--o--o <-- origin
>          \
>           a--b--c <-- mywork
>  ................................................
>  
>  At this point, you could use "pull" to merge your changes back in;
>  the result would create a new merge commit, like this:
>  
>  ................................................
>   o--o--O--o--o--o <-- origin
>          \        \
>           a--b--c--m <-- mywork
>  ................................................
>  
> -- 
> 1.7.3.6.g64005

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] user-manual: be consistent in illustrations to 'git rebase'
  2010-09-28  9:47 ` Junio C Hamano
@ 2010-09-28 11:08   ` Kirill Smelkov
  0 siblings, 0 replies; 3+ messages in thread
From: Kirill Smelkov @ 2010-09-28 11:08 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Tue, Sep 28, 2010 at 02:47:45AM -0700, Junio C Hamano wrote:
> Kirill Smelkov <kirr@mns.spb.ru> writes:
> 
> > Since we use a-b-c for mywork commits in one place, I think it would be
> > logical to also use a-b-c too in other illustration on this topic.
> >
> > Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
> > ---
> >  Documentation/user-manual.txt |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
> > index fecc4eb..87ca1a7 100644
> > --- a/Documentation/user-manual.txt
> > +++ b/Documentation/user-manual.txt
> > @@ -2424,41 +2424,41 @@ Keeping a patch series up to date using git rebase
> >  --------------------------------------------------
> >  
> >  Suppose that you create a branch "mywork" on a remote-tracking branch
> >  "origin", and create some commits on top of it:
> >  
> >  -------------------------------------------------
> >  $ git checkout -b mywork origin
> >  $ vi file.txt
> >  $ git commit
> >  $ vi otherfile.txt
> >  $ git commit
> >  ...
> >  -------------------------------------------------
> >  
> >  You have performed no merges into mywork, so it is just a simple linear
> >  sequence of patches on top of "origin":
> >  
> >  ................................................
> >   o--o--o <-- origin
> >          \
> > -         o--o--o <-- mywork
> > +         a--b--c <-- mywork
> >  ................................................
> 
> Perhaps you would want to make the origin commit "O" while you are at it
> (I can locally fix it up)?

Yes, please do, and thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-28 11:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28  8:20 [PATCH] user-manual: be consistent in illustrations to 'git rebase' Kirill Smelkov
2010-09-28  9:47 ` Junio C Hamano
2010-09-28 11:08   ` Kirill Smelkov

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).