git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What does "modified" in git status mean?
@ 2012-01-22 16:57 Mikolas
  2012-01-22 17:56 ` Seth Robertson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mikolas @ 2012-01-22 16:57 UTC (permalink / raw)
  To: git

I am using git version 1.7.5.1 under cygwin and I'm getting behavior that I'm 
not understanding.

When I do 'git status' in the root directory of the repository, it shows no 
difference. Once I cd to a subdirectory, it starts showing modifications. 
However, 'git diff' shows nothing. 

So it looks something like this:
$ git status
# On branch master
nothing to commit (working directory clean)

$ cd foo
$ git status
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   ../foo/bar

$ git diff
$

I put the following in my gitconfig but that doesn't seem to be doing much.
[core]
       trustctime = false
       autocrlf = input

So my questions are 
1) Is there some way how to tell status to tell me *why* the files are marked 
as modified?
2) Is it normal that git status behaves differently in different directories?

--mikolas



 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-24 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-22 16:57 What does "modified" in git status mean? Mikolas
2012-01-22 17:56 ` Seth Robertson
2012-01-23 20:07 ` Phillip Susi
2012-01-24 18:57 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).