git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Chanters <david.chanters@googlemail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: A note from the maintainer: Follow-up questions (MaintNotes)
Date: Tue, 1 Sep 2009 17:58:36 +0100	[thread overview]
Message-ID: <ac3d41850909010958l890bf2fyda6e61e3cb082c2a@mail.gmail.com> (raw)
In-Reply-To: <7v8wgzla02.fsf@alter.siamese.dyndns.org>

2009/9/1 Junio C Hamano <gitster@pobox.com>:
>    $ git log --oneline --first-parent origin/master..origin/pu
>
> would be a handy way to view where the tip of each branch is.

Yes it is - thanks for that!  I presume that (in other workflows --
not necessarily git,git's) that using git-resurrect.sh would be
preferable to the git-log suggestion above if the topic branch wanting
to be "resurrected" had several merge points?

> So if you for example happen to be interested in jc/log-tz topic,
> you would do something like:
>
>    $ git checkout -b jc/log-tz 2178d02^2
>    $ git log -p master..
>
> to check out, and view what changes the topic introduces.

This is really useful - thank you - it's solving a missing piece of a
puzzle for me.  :)

> where "ai" is typically the author's initial, and topic-name names the
> topic just like you would name a function.  A topic typically forks from
> the tip of master if it is a new feature, or a much older commit in maint
> if it is a fix (and in such a case, topic-name typically begins with
> a string "maint-").

Makes sense - and on that note - in our current workflow of using Git,
we have a feature branch, call it "featureA" which is forked from
"master" (where our stable code lives) -- but obviously over time, if
bugfixes happen and get released, what do we do about then ensuring
that featureA also benefits from these bug-fixes?  Since invariably
people will want to develop using the bug-fixes, but "featureA" long
since branched from "master" at a point in the past, before the
bug-fixes?

What do you do, about this when handling topic branches merged into
next, or doesn't it really matter by that point?

[...snip really useful explanation...]

I can't thank you enough, Junio for this -- you've effectively ironed
out a workflow here I think I can now go away and start using -
thanks.  :)

David

  parent reply	other threads:[~2009-09-01 16:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-30 22:19 A note from the maintainer: Follow-up questions (MaintNotes) David Chanters
2009-08-31  8:05 ` Andreas Ericsson
2009-09-01  1:38 ` Junio C Hamano
2009-09-01  2:55   ` Jeff King
2009-09-01 16:58   ` David Chanters [this message]
2009-09-01 19:09     ` Junio C Hamano

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=ac3d41850909010958l890bf2fyda6e61e3cb082c2a@mail.gmail.com \
    --to=david.chanters@googlemail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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).