From: Junio C Hamano Date: Fri, 23 Feb 2007 05:03:02 GMT Subject: Re: [PATCH] Fix 'git commit -a' in a newly initialized repository Message-ID: <7vlkipbh4p.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Nicolas Pitre writes: > On Thu, 22 Feb 2007, Junio C Hamano wrote: > >> However, because ! test -f "$THIS_INDEX" is such a special case >> (totally new check-in), we can afford to be verbose if we wanted >> to, and offer tons of possibilities, say: >> >> die 'nothing to commit. You can use "git add file..." >> to include individual files, or use "git add ." if you want to >> include all files in the current directory, for your first >> commit.' >> >> But if we want to say "for your first commit" in the message, we >> should also be checking if HEAD commit really does not exist. > > Seems to me that the single line message avoids all those issues. Yup. Will apply Fredrik's original to 'maint'.