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

Re: stable as subset of develop

From
Jakub Narębski <jnareb@gmail.com>
Date
Aug 27, 2016, 07:55 UTC
Message-ID
<1b3990a1-f9a0-f48e-239f-095b17108d0a@gmail.com>
In-Reply-To
<57C0FB1D.9070206@devrts.com>
W dniu 27.08.2016 o 04:29, Brett Porter pisze:
Show 16 quoted lines
> 
> In a small group, develop is the branch where all fixes/additions/... from topic
> branches are merged rather dynamically. Thorough testing of commits
> may lag behind, but when we think one is a pretty good commit we want
> to identify it as (at least relatively) the latest stable. We could
> tag it, but we would like these stable commits to be a branch in the
> sense that each commit points back to a previous commit.
> 
> Merging from a development branch commit to stable isn't quite what
> we want. It seems more like:
> 
>   checkout the new good development commit
>   change HEAD to the head of the stable branch
>   git add --all
>   git commit
>   (maybe tag the new commit with the hash of the chosen development commit)

If you are really using topic branches, a better workflow would be to make use of them. That is, do the development of new features on topic branches, test them in relative isolation, and when deemed ready merge them into development branch, for more testing (including integration testing).

Then, those topic branches that are considered stable are merged into stable branch ("trunk"). You can think of it as picking features to have in stable.

Take a look at Junio's blog posts about this topic.
> Will that work (one thing beyond my current understanding is if there
> are index complications)? Other ideas?
That looks a bit like reimplementation of cherry-picking.
Also, I think you would loose the ability to run git-bisect to find
bad commits.
 
> This could help with applying successively more intense testing over
> time and chase down where problems arose.
Reiterationg: if you are using topic branches, use topic-branch workflow.
-- 
Jakub Narębski

author of "Mastering Git"
https://www.packtpub.com/application-development/mastering-git
Previous: Brett PorterNext: Brett Porter
Message 2 of 4 in “stable as subset of develop”
  1. Brett PorterAug 27, 2016
  2. Jakub NarębskiAug 27, 2016
  3. Brett PorterAug 27, 2016
  4. Jakub NarębskiAug 27, 2016

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.