Re: Doing a git add '' will add more files then expected

2014-11-23 Thread Javier Domingo Cansino
IMO, if you put an empty string you would be implying the same as with a dot (git add . ). The important thing is that git add without a pathspec returns an error, as it has always done, mainly because it people tend to work without gitignoring all the files they should, and allowing such

Doing a git add '' will add more files then expected

2014-11-17 Thread Guilherme
Hello, I first asked on stackoverflow (http://stackoverflow.com/questions/26933761/python-sh-module-and-git-try-to-add-more-files-then-in-command/26934517#26934517) about this behaviour. Then on the conversation that happened on the git-users mailing list other agreed that this behaviour is

Re: Doing a git add '' will add more files then expected

2014-11-17 Thread Andreas Schwab
Guilherme guibuf...@gmail.com writes: Steps to reproduce: In bash (not sure this is bash specific) do: git add '' (that's to apostrophes, an empty argument) Results same as doing git add . Expected no files added or error about not finding file '' The argument to git add is a pathspec,

Re: Doing a git add '' will add more files then expected

2014-11-17 Thread Matthieu Moy
Andreas Schwab sch...@linux-m68k.org 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? -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send the line

Re: Doing a git add '' will add more files then expected

2014-11-17 Thread Junio C Hamano
Matthieu Moy matthieu@grenoble-inp.fr writes: Andreas Schwab sch...@linux-m68k.org 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