Re: Weird behaviour of git status
- From
Wincent Colaiuta <win@wincent.com>
- Date
- Jan 16, 2009, 09:44 UTC
- Message-ID
- <2A29AD77-2B8D-4491-92C1-62F5FFFBB00F@wincent.com>
- In-Reply-To
- <4970488B.3010608@morey-chaisemartin.com>
El 16/1/2009, a las 9:42, Nicolas Morey-Chaisemartin escribió:
Show 17 quoted lines
> Hello everyone, > > I just noticed a weird behaviour in git status. > I have created new files in different directories in my project. > I have added all of them in the index with git add. > When I run "git status" It shows me that all my 3 files are in the > index. > However if I run git-status specifying a directory, it returns that > the > file in this directory are in the index but the other one isn't. > > In my opinion, it should > - either display all the files as in the index (specifying a directory > wouldn't have any effect then) > - treat only file in the specified dir. So "external" files wouldn't > be > shown at all.
"git status" shows you what would be committed if you ran "git commit" with the same parameters. So in your example, the output for "git status ." is exactly as you would expect.
This is stated in the man page.
Cheers, Wincent