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

[PATCH 0/4] implement automatic submodule merge strategy when possible

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Jun 30, 2010, 19:23 UTC
Message-ID
<cover.1277923843.git.hvoigt@hvoigt.net>

This series implements a semi-automatic submodule merge as was discussed in this thread:

http://thread.gmane.org/gmane.comp.version-control.git/148942
In short:

Suppose we merge two submodule hashes A and B. If either A->B or B->A is a fast-forward the automatic result is the one containing both.

If there is not direct relation between A and B but we find a merge on any ref that contains both we suggest this as a possible resolution to the user. If there are more merges we output a list of them.

The suggestion tells the user to use update-index because checkout_submodule() on which Jens is working is not finished yet. This is a temporary solution and we can automatically checkout a submodule later when this is implemented.

Note: As I am not that familiar with the git codebase yet another pair
of eyes would be really appreciated.
The newest version of this series can always be found on
git://github.com/hvoigt/git.git
Branch: submodule_merge_v2
Heiko Voigt (4):
  add missing && to submodule-merge testcase
  teach ref iteration module about submodules
  extent setup_revisions() so it works with submodules
  implement automatic fast forward merge for submodules
 cache.h                    |    3 +
 merge-recursive.c          |    9 ++-
 path.c                     |   38 +++++++++++
 refs.c                     |  130 +++++++++++++++++++++++++++++--------
 refs.h                     |    8 ++
 revision.c                 |   32 +++++----
 revision.h                 |    1 +
 submodule.c                |  154 ++++++++++++++++++++++++++++++++++++++++++++
 submodule.h                |    2 +
 t/t7405-submodule-merge.sh |  124 +++++++++++++++++++++++++++++++++--
 10 files changed, 450 insertions(+), 51 deletions(-)
Next: Heiko Voigt
Message 1 of 7 in “implement automatic submodule merge strategy when possible”
  1. 0/4 implement automatic submodule merge strategy when possibleHeiko Voigt, Jun 30, 2010
  2. 1/4 add missing && to submodule-merge testcaseHeiko Voigt, Jun 30, 2010
  3. 2/4 teach ref iteration module about submodulesHeiko Voigt, Jun 30, 2010
  4. Junio C HamanoJun 30, 2010
  5. Heiko VoigtJul 6, 2010
  6. 3/4 extent setup_revisions() so it works with submodulesHeiko Voigt, Jun 30, 2010
  7. 4/4 implement automatic fast forward merge for submodulesHeiko Voigt, Jun 30, 2010

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.