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

Re: git-diff-tree does not use alternate objects for submodules

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
May 13, 2012, 22:13 UTC
Message-ID
<20120513221333.GB59647@book.hvoigt.net>
In-Reply-To
<20120513172301.GA58961@book.hvoigt.net>
On Sun, May 13, 2012 at 07:23:25PM +0200, Heiko Voigt wrote:
Show 32 quoted lines
> Here is the simplest approach I could think of (not sure if its maybe
> too simple). On first sight it seems to work (even if I exchange the
> absolute path in alternates with a relative one.
> 
> Please see below.
> 
> Cheers Heiko
> 
> I used the following setup to test:
> 
> mkdir sub_alt &&
> (cd sub_alt &&
> git init &&
> echo a >a &&
> git add a &&
> git commit -m a) &&
> mkdir super &&
> (cd super &&
> git clone -s ../sub_alt sub &&
> git init &&
> git add sub &&
> git commit -m "sub a") &&
> (cd sub_alt &&
> echo b >b &&
> git add b &&
> git commit -m b) &&
> (cd super &&
> 	(cd sub &&
> 	 git fetch &&
> 	 git checkout origin/master) &&
>  git diff --submodule
> )

Junio in case you decide to queue this: I would like to rework the above code into a proper testcase and add that to the patch. The previous patch is the state as far as I got today so interested people can test whether it fixes their issue.

Cheers Heiko
Previous: Heiko VoigtNext: Heiko Voigt
Message 8 of 12 in “git-diff-tree does not use alternate objects for submodules”
  1. Orgad and Raizel ShanehMay 8, 2012
  2. Junio C HamanoMay 8, 2012
  3. Junio C HamanoMay 8, 2012
  4. Heiko VoigtMay 9, 2012
  5. Junio C HamanoMay 9, 2012
  6. Junio C HamanoMay 9, 2012
  7. Heiko VoigtMay 13, 2012
  8. Heiko VoigtMay 13, 2012
  9. teach add_submodule_odb() to look for alternatesHeiko Voigt, May 14, 2012
  10. Junio C HamanoMay 14, 2012
  11. Heiko VoigtMay 14, 2012
  12. Junio C HamanoMay 14, 2012

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.