Re: checkout extra files
- From
- Angelo Borsotti <angelo.borsotti@gmail.com>
- Date
- Sep 4, 2012, 13:24 UTC
- Message-ID
- <CAB9Jk9D0DHBJEpVq=Z=12TV=+Av0oFVZ0yO1svLh1wyuP+9r1Q@mail.gmail.com>
- In-Reply-To
- <CACsJy8AUYigHVKjzE-0NT0hnOrQWdufN+COmkk=2Q8L1Rimytw@mail.gmail.com>
Hi Duy,
the semantics of "git checkout -- '*'" is quite clear because there is no expansion done by the shell. The wildcard is passed to git checkout, that interprets is properly.
That of "git checkout -- *" is the problem when the directory is empty. Note that this happens with the shell that is shipped with git (in the windows distro). A note in the documentation could help the user to understand this.
-Angelo