git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: A note from the maintainer: Follow-up questions (MaintNotes)

From
DCDavid Chanters <david.chanters@googlemail.com>
Date
Sep 1, 2009, 16:58 UTC
Message-ID
<ac3d41850909010958l890bf2fyda6e61e3cb082c2a@mail.gmail.com>
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?

Show 7 quoted lines
> 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. :)

Show 5 quoted lines
> 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
Previous: Jeff KingNext: Junio C Hamano
Message 5 of 6 in “A note from the maintainer: Follow-up questions (MaintNotes)”
  1. David ChantersAug 30, 2009
  2. Andreas EricssonAug 31, 2009
  3. Junio C HamanoSep 1, 2009
  4. Jeff KingSep 1, 2009
  5. David ChantersSep 1, 2009
  6. Junio C HamanoSep 1, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.