From: Sverre Rabbelier Date: Mon, 15 Sep 2008 21:11:30 GMT Subject: Re: Diff-tree does not work for initial commit Message-ID: In-Reply-To: <48CECA42.1050209@drmicha.warpmail.net> On Mon, Sep 15, 2008 at 22:49, Michael J Gruber wrote: > diff-tree is plumbing. Would this change break anything? Some of my code uses "git rev-parse" on "HEAD^" to see if a commit has a parent; I wouldn't be surprised if someone else has a script that uses "git diff-tree" or such for that purpose, or at least assumes that for a root commit it will complain. Anyway, as Junio said, for "diff-tree" you can use the "--root" option. A better RFE would perhaps be that "--root" be supported in more places. -- Cheers, Sverre Rabbelier