From: Junio C Hamano Date: Mon, 14 May 2012 16:49:28 GMT Subject: Re: git-diff-tree does not use alternate objects for submodules Message-ID: <7v7gweiu7b.fsf@alter.siamese.dyndns.org> In-Reply-To: <20120513172301.GA58961@book.hvoigt.net> Heiko Voigt writes: > 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. Conceptually looks very sound and trivially correct as long as the objets_directory.buf is always absolute path (I didn't check, and I do not offhand know if read_info_alternates() was designed to work when called with a relative path in relative_base).