Subject: Re: bug#21166: 24.4; vc-mode and git error on newly added file to new repository

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 25 Aug 2020 11:04:07 +0200

Ed Avis <[email-masked]> writes:

> How about this: check for the error message, and if found then just
> print 'empty tree, so no diff to print'.
> That would be good enough.  No need for an extra process call either
> before or after.

This was five years ago.  I tried this in Emacs 28, and the problem is
still present.

As Dmitry says, this is a quite unusual situation, so perhaps the
current error message

fatal: bad revision 'HEAD'

is fine?  It's slightly confusing...  but not very.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no