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

Re: [PATCHv2] Update gitworkflows man page to include release workflow

From
Thomas Rast <trast@student.ethz.ch>
Date
Nov 12, 2009, 08:27 UTC
Message-ID
<200911120927.16764.trast@student.ethz.ch>
In-Reply-To
<1257869339-15999-2-git-send-email-rocketraman@fastmail.fm>

Here's my promised review of the whole patch. Much of the text fits my understanding of what's actually going on, but Junio will have the final word on what he actually does (or what a sensible simplification might be).

rocketraman@fastmail.fm wrote:
> +The current maintenance branch is optionally copied to another branch
> +named with the older release version number (e.g. maint-X.Y.(Z-1)
> +where X.Y.Z is the previous release). This allows for further
> +maintenance releases on the older codebase.

The use of Z-1 confused me; I guess by "previous release" you mean "the release we just tagged in the last step". Otherwise the maint version number would come out wrong.

Show 9 quoted lines
> +.Update maint to new release
> +[caption="Recipe: "]
> +=====================================
> +* `git checkout maint`
> +* `git merge master`
> +=====================================
> +
> +This updates 'maint' from 'master', while preserving the 'maint'
> +reflog.

I agree with what Junio said in the other mail: it's important at this point that this was a fast-forward. (If it's not, master could be missing some fixes made on maint.)

> +An alternative approach to updating the 'maint' branch is to run
> +
> +  $ git branch -f maint master
In my book the alternative approach is
  git branch -m maint maint-X.Y.(Z-1)
  git branch maint master

I'd rather not teach users to play with loaded guns, much less in a "good examples of workflows" manpage.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Thomas Rast
Message 13 of 13 in “Update gitworkflows man page to include release workflow”
  1. rocketraman@fastmail.fmNov 10, 2009
  2. [PATCHv2] Update gitworkflows man page to include release workflowrocketraman@fastmail.fm, Nov 10, 2009
  3. Štěpán NěmecNov 10, 2009
  4. Raman GuptaNov 10, 2009
  5. Thiago FarinaNov 11, 2009
  6. Raman GuptaNov 11, 2009
  7. Junio C HamanoNov 11, 2009
  8. Raman GuptaNov 12, 2009
  9. Junio C HamanoNov 12, 2009
  10. Thomas RastNov 12, 2009
  11. Raman GuptaNov 12, 2009
  12. Thomas RastNov 11, 2009
  13. Thomas RastNov 12, 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.