git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Lodato <lodatom@gmail.com>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: git list <git@vger.kernel.org>
Subject: Re: A Visual Git Reference
Date: Mon, 8 Feb 2010 19:18:14 -0500	[thread overview]
Message-ID: <ca433831002081618s1e3193c3ge7b637ede540533a@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1002081513430.14365@iabervon.org>

On Mon, Feb 8, 2010 at 4:57 PM, Daniel Barkalow <barkalow@iabervon.org> wrote:
> The "3-way merge" node should graphically distinguish the base from the
> two sides, rather than having all three just go in. The "3-way merge"
> operation is tricky to understand visually without some sort of "split and
> rejoin, with specific points" thing.

Yes, I'm not happy with the merge picture at all.  As you said, it's
difficult to draw a nice picture for it that doesn't become too
complex.  I'll have to think of a better way...

> Also, it would probably be worth showing the use of the index in the
> process of a 3-way merge: all three versions go into the blue box, and a
> combination (with conflict markers) goes into the pink box; the user
> cleans up the pink box, and replaces the 3-part blue box content with the
> cleaned-up single result content; then the commit gives the diagram you
> have for "git merge other".

My fear is making the graphic too complicated.  That said, it may be
worth making separate graphics: a simple no-conflict case, and a more
complicated conflict case.

> I think you should introduce the detached HEAD situation early; right
> after "git checkout HEAD~ files", it would be worth showing "git checkout
> HEAD~". It's pretty common for people in the "technical user" part of the
> kernel community to use git to browse history and test different commits,
> and never do a commit at all. This is a pretty common mode across many
> version control systems (e.g., "cvs checkout -D yesterday"), and nothing
> unexpected happens if you don't try to commit while doing it.

Good point.  At your suggestion, I moved up the detached HEAD section
and integrated part of it into the checkout section.  You're right,
this does come up a lot, so I should cover it.

> In fact, you
> could show tracking down a bug introduced between maint and master by
> checking out c10b9 and then da985.

I may add a section on git bisect in the future.

> Then, later, you can bring up the fact that you can actually do commits in
> that situation, and show how that works. That part is the part that's
> novel and could potentially lead to people doing work and having it become
> unreachable. Also, after commiting with a detached HEAD, the normal next
> step is to create a new branch ("git checkout -b new-topic").

Done.  Good idea.

Thanks for the feedback.  If you have any other thoughts, I'd be glad
to hear them!
Mark

  reply	other threads:[~2010-02-09  0:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-08 19:34 A Visual Git Reference Mark Lodato
2010-02-08 19:51 ` Peter Baumann
2010-02-08 20:21   ` Mark Lodato
2010-02-08 20:34     ` Jon Seymour
2010-02-08 20:57       ` Mark Lodato
2010-02-09  0:09     ` Johannes Schindelin
2010-02-08 21:57 ` Daniel Barkalow
2010-02-09  0:18   ` Mark Lodato [this message]
2010-02-10  3:40   ` John J. Franey
2010-02-10  5:20 ` Jeff King
2010-03-17 19:03   ` Scott R. Godin
2010-02-10 17:02 ` Dilip M
2010-02-18  1:17 ` Michael Witten
2010-02-18  1:39   ` Mark Lodato
2010-02-18  3:03     ` Michael Witten
2010-02-18 12:38     ` Tor Arvid Lund
2010-02-18 12:53     ` Tay Ray Chuan
2010-02-18  1:39   ` Jeff King

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=ca433831002081618s1e3193c3ge7b637ede540533a@mail.gmail.com \
    --to=lodatom@gmail.com \
    --cc=barkalow@iabervon.org \
    --cc=git@vger.kernel.org \
    /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 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).