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

Re: Working on merged branches whilst seeing current master

From
NSNicolas Sebrecht <nicolas.s.dev@gmx.fr>
Date
Nov 11, 2009, 21:57 UTC
Message-ID
<20091111215727.GK27518@vidovic>
In-Reply-To
<1257959806206-3987667.post@n2.nabble.com>
The 11/11/09, rhlee wrote:
Show 11 quoted lines
> 
> I use branches for features. I have a branch and I merged it into my master
> branch as I thought it was finished. But it turns out I wasn't and so I need
> to work on it again.
> 
> I have made some more changes (branches and merges) on master. So what I
> should do is checkout that branch, work on it committing along the way and
> then merge it again onto my master branch.
> 
> However I though I am working on a feature branch I want to be also working
> from the master branch as reference.

If the feature branch is merged to the mainline, it should really mean that the feature is ready : the feature branch life stop here. This also means that if you see that this feature was not as ready as you thought, you have to restart a _new_ feature branch off of the mainline.

That's why there is the "next" branch in the git releases process. This way, we can test the feature branches without touching master for some time.

>                                      Yes I know I probably should not be
> working like this. My branches should be wholly independent. But I doing web
> development not kernel development so there is much less modularity and
> branches/features have a tendency to creep into one another.

This should not be the case. Modularity in the release process and the development strategy is not tied to "what I am developing". I'm doing some web development too and have no difficulty around this point.

> Or should I just create a new branch? But if I do this there is no link
> between the old and new branch.

Yes, feature branches have no reason to live after they are merged to the mainline.

-- 
Nicolas Sebrecht
Previous: rhleeNext: Tim Mazid
Message 2 of 7 in “Working on merged branches whilst seeing current master”
  1. rhleeNov 11, 2009
  2. Nicolas SebrechtNov 11, 2009
  3. Tim MazidNov 12, 2009
  4. rhleeNov 12, 2009
  5. Tim MazidNov 26, 2009
  6. rhleeNov 12, 2009
  7. Nicolas SebrechtNov 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.