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

Re: rebase planning: determining blobs changed by multiple branches

From
NKNeal Kreitzinger <nkreitzinger@gmail.com>
Date
Feb 8, 2011, 01:27 UTC
Message-ID
<4D509C1A.50801@gmail.com>
In-Reply-To
<1297126350-sup-6606@localhost.localdomain>
On 2/7/2011 6:59 PM, Marc Weber wrote:
Show 23 quoted lines
> Hi Neal,
>
> I'm not quite sure what you want to do?
> rebase all branches on top of commit l so that they are up to date?
>
> Why do you want to find common blobs?
> If the same conflict happens you could use gitrere and reuse a conflict
> resolution.
>
> git ls-files --with $HASH
> gives you a list of files
>
> git diff --name-only
> should  give you a nice list of modified files.
>
> So using the intersection of  ls-files of branch and tip should give you
> common files. Substracting changed files using --name-only should yield
> the files which were not modified.
> Maybe there are nicer solutions though.
>
> Rebasing is always bad. Have you considered using top-git?
> This way you can merge with tip and create the rebased patches using the
> export function.

Our master represents our new system and we want to have a linear history so we use rebase. Each branch is a project. If a project does not have any merges with other projects then it can rebase with little impact. If projects are changing alot of the same blobs then they will have alot of merged blobs and can be rebased on eachother in throw-away-integration branches. In this way the branches can be grouped into appropriate rebase groups so the merge-conflict resolutions of these groups can be resolved simultaneously in different integration repos. So lets say you have 5 groups, then you can rebase those 5 integration-branches onto master one-by-one instead of doing 15 project branches one-by-one. I thought maybe git had a cool command for analyzing this in one fell swoop.

v/r, Neal

Previous: Marc Weber
Message 3 of 3 in “rebase planning: determining blobs changed by multiple branches”
  1. Neal KreitzingerFeb 8, 2011
  2. Marc WeberFeb 8, 2011
  3. Neal KreitzingerFeb 8, 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.