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

Automatic merge of local modifications in submodules?

From
JWJosef Wolf <jw@raven.inka.de>
Date
Oct 3, 2009, 11:30 UTC
Message-ID
<20091003113002.GA29831@raven.wolf.lan>
Hello,

I am trying to explore gti's submodule functionality. Since I'm used to svn:externals, I am missing the automatic merge of local modifications. So I'd like to do something like:

  (cd submodule; git stash)
  git submodule update
  (cd submodule; git stash pop)

The problem with this command sequence is that it is not atomic. So if it is automatically executed from a script (e.g cron or post-update-hook), it will cause damage.

Any ideas how to properly auto-merge local modifications on submodule update? git-submodule don't seem to have an option to do that.

Message 1 of 1 in “Automatic merge of local modifications in submodules?”
  1. Josef WolfOct 3, 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.