git/list[1] front-page[2] threads[3] people[4] search[5] about
 

What does "modified" in git status mean?

From
MMikolas <mikolas.janota@gmail.com>
Date
Jan 22, 2012, 16:57 UTC
Message-ID
<loom.20120122T174204-274@post.gmane.org>

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
 
Next: Seth Robertson
Message 1 of 4 in “What does "modified" in git status mean?”
  1. MikolasJan 22, 2012
  2. Seth RobertsonJan 22, 2012
  3. Phillip SusiJan 23, 2012
  4. Jeff KingJan 24, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.