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

Re: Is there a way to have local changes in a branch 'bake' while working in different branches?

From
John Keeping <john@keeping.me.uk>
Date
Dec 16, 2016, 15:22 UTC
Message-ID
<20161216152227.GA1783@john.keeping.me.uk>
In-Reply-To
<14b481f95c5043aca6cdfddfe4728fa9@BLUPR79MB001.MGDADSK.autodesk.com>
On Thu, Dec 15, 2016 at 08:14:58PM +0000, Larry Minton wrote:
Show 9 quoted lines
> My question:
> 
> Let's say I have a code change that I want to 'bake' for a while
> locally, just to make sure some edge case doesn't pop up while I am
> working on other things.  Is there any practical way of doing that?  I
> could constantly merge that 'bake me' branch into other branches as I
> work on them and then remove those changes from the branches before
> sending them out for code review, but sooner or later pretty much
> guaranteed to screw that up....

I wrote a tool [1] a while ago to manage integration branches so I use a personal integration branch to pull together various in-progress branches.

It means you can keep each topic in its own branch but work/test on top of a unified branch by running:

	git integration --rebuild my-integration-branch
whenever you change one of the topic branches.

I also use the instruction sheet to keep track of abandoned topics that I might want to go back to but which are currently in a broken state, you can see an example of that in my CGit integration branch [2].

[1] http://johnkeeping.github.io/git-integration/ [2] https://github.com/johnkeeping/cgit/blob/d01ce31ed3dfa9b05ef971464da2af5b9d6f2756/GIT-INTEGRATION-INSN

Previous: Junio C Hamano
Message 4 of 4 in “Is there a way to have local changes in a branch 'bake' while working in different branches?”
  1. Larry MintonDec 15, 2016
  2. Aaron SchrabDec 15, 2016
  3. Junio C HamanoDec 16, 2016
  4. John KeepingDec 16, 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.