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

Re: Maint-only commits

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Sep 18, 2011, 19:11 UTC
Message-ID
<20110918191120.GA6334@nibiru.local>
In-Reply-To
<6416457.30612.1305580526325.JavaMail.root@mail.hq.genarts.com>
* Stephen Bash <bash@genarts.com> wrote:
Show 11 quoted lines
> Hi all-
> 
> In my office we've recently run into three separate fixes 
> required on our maintenance branch that should not be 
> included in master (our normal workflow is to make changes 
> on maint, tag, release, and then merge to master).  Normally 
> these "maint only" fixes are interspersed with commits that 
> should go back into master.  In the past the "maint only" 
> commits were rare, so I'd carefully use "merge -s ours" 
> to avoid including the "maint only" changes in master.  
> But now I'm wondering if there's a better process/workflow? 
Of course, there is: use topic branches and rebase.

Assuming you've found a bug in maint, which is also still in master.

#1: for off a topic branch (for that bug) from maint
#2: fix the bug there
#3: rebase to latest maint (if changed meanwhile) and test carefully
#4: (ff-)merge your bugfix branch to maint
#5: rebase bugfix branch to master (maybe incremental, if they
    went too far away from another) and test carefully
#6: (ff-)merge bugfix branch to master
#7: drop that topic branch, as you're done now.
cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Previous: Jay Soffian
Message 5 of 5 in “Maint-only commits”
  1. Stephen BashMay 16, 2011
  2. Junio C HamanoMay 16, 2011
  3. Stephen BashMay 17, 2011
  4. Jay SoffianMay 17, 2011
  5. Enrico WeigeltSep 18, 2011

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.