From: Jonathan Nieder Date: Fri, 28 Jan 2011 17:13:59 GMT Subject: Re: [PATCH v4] fast-import: treat filemodify with empty tree as delete Message-ID: <20110128171359.GA26930@burratino> In-Reply-To: <20110127204649.GB19378@m62s10.vlinux.de> Peter Baumann wrote: > On Thu, Jan 27, 2011 at 01:48:45PM -0600, Jonathan Nieder wrote: >>> On Thu, Jan 27, 2011 at 12:07:49AM -0600, Jonathan Nieder wrote: >>>> + empty_tree=$(git mktree > unless we hardcode the object name >> (which I prefer not to do). > > Wny not? It *is* already hardcoded in the GIT source code (see > grep -a1 EMPTY cache.h output). I think it is okay for the git implementation to rely on an implementation detail. ;-) Likewise, t0000 checks that the empty tree has id 4b825dc6. Meanwhile I would like to see people's scripts and other tests using the $(git mktree