Re: Weird behaviour of git status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El 16/1/2009, a las 9:42, Nicolas Morey-Chaisemartin escribió:

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


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux