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

Re: RFC: Between git-subtree and git-submodules

From
SBSanti Béjar <santi@agolina.net>
Date
Jul 25, 2010, 00:28 UTC
Message-ID
<AANLkTikwpruLt-D0tYn+eP5JpB1h0RD55+xr_7S+RfOa@mail.gmail.com>
In-Reply-To
<AANLkTinyjinsGS2ddyMOW=3zDN1ThJcpF+dc4cBE6L9D@mail.gmail.com>
Show 8 quoted lines
> With #3, I can see that you want something different than I do; you
> want to silently revert your own patches out of the submodule's
> history, when you upgrade the submodule to a new version.  Personally,
> I find this concept a bit objectionable (it's like "git merge -s
> ours"), but okay, it's pretty easy to implement, and you've submitted
> a patch to git-subtree that does it.  My question is: why would you
> want this?  Isn't it clearer to 'git revert' the patches you don't
> want?

While writing the docs for the --prune option I've found this sentence in git-subtree.txt:

	'git subtree merge --squash'
	always adjusts the subtree to match the exactly
	specified commit, even if getting to that commit would
	require undoing some changes that were added earlier.

I think this is not true, and it contradicts with what you've just said. Or I don't understand it correctly.

Thanks, Santi

Previous: Santi BéjarNext: Avery Pennarun
Message 4 of 5 in “RFC: Between git-subtree and git-submodules”
  1. Santi BéjarJul 24, 2010
  2. Avery PennarunJul 24, 2010
  3. Santi BéjarJul 24, 2010
  4. Santi BéjarJul 25, 2010
  5. Avery PennarunJul 26, 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.