From: Junio C Hamano Date: Mon, 17 Nov 2014 19:08:26 GMT Subject: Re: Doing a git add '' will add more files then expected Message-ID: In-Reply-To: Matthieu Moy writes: > Andreas Schwab writes: > >> The argument to git add is a pathspec, and the empty pathspec matches >> all files. > > Err, why does the empty pathspec match all files? Isn't that a bug? That is debatable. cd Documentation git add "a" would be equivalent to typing git add Documentation/"a" so cd Documentation git add "" would be equivalent to typing git add Documentation/"" And doing the same from the top-level of the working tree can be argued to be a natural extension.