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

Re: git-union-merge proposal

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jun 21, 2011, 05:22 UTC
Message-ID
<20110621052211.GA16919@elie>
In-Reply-To
<20110621022049.GA1632@gnu.kitenet.net>
Hi Joey,
Joey Hess wrote[1]:
Show 13 quoted lines
> * git-annex stores location tracking information to log files in
>   .git-annex/; gitattributes is configured to use merge=union,
>   and the log files have timestamps or are otherwise structured to be
>   safely merged.
> * git notes merge -s cat_sort_uniq
>   Notes are stored in a tree using the object sha, which can be
>   union merged, when the notes' format is a series of independant lines.
> * probably other tools do things like this too, or will ...
>
> So I've written a prototype of a git-union-merge that could be used
> for all of these. It works like this:
>
> git union-merge foo origin/foo refs/heads/foo 

Hm, this makes a lot of sense. Often a person needs a worktree anyway to check the merge result for sanity, but as you say, that needn't always be the case.

[...]
> Prototype is attached, I doubt it would be suitable for git as-is,
Does the GitRepo module that it uses come from git-annex?

If the prototype were self-contained, I would encourage you to submit it for inclusion under contrib/ so it can evolve and eventually graduate out of there. Cc-ing Johan (who has no doubt thought through these things in the context of "git notes") in case he has thoughts on it.

Regards, Jonathan

[1] http://thread.gmane.org/gmane.comp.version-control.git/176119
Previous: Joey HessNext: Johan Herland
Message 2 of 8 in “git-union-merge proposal”
  1. Joey HessJun 21, 2011
  2. Jonathan NiederJun 21, 2011
  3. Johan HerlandJun 21, 2011
  4. Joey HessJun 21, 2011
  5. Junio C HamanoJun 21, 2011
  6. Junio C HamanoJun 21, 2011
  7. Joey HessJun 21, 2011
  8. Junio C HamanoJun 21, 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.