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

Git diff does not detect newly added files to working tree

From
Jjateeq <jawad_atiq@hotmail.com>
Date
Mar 3, 2010, 20:03 UTC
Message-ID
<27772711.post@talk.nabble.com>
Hello,

If I add a new file to a working tree, and run the following command without having staged or committed the file, according to the manual I should be able to get the name of the file - but it just doesn't show up. Anyone knows what I'm doing wrong? Note that the added file is not empty.

Command: git diff --name-only --diff-filter=[ACDM*] 
The manual is  http://www.kernel.org/pub/software/scm/git/docs/git-diff.html
here .

Fanks, Jawad

-- 
View this message in context: http://old.nabble.com/Git-diff-does-not-detect-newly-added-files-to-working-tree-tp27772711p27772711.html
Sent from the git mailing list archive at Nabble.com.
Next: Matthieu Moy
Message 1 of 2 in “Git diff does not detect newly added files to working tree”
  1. jateeqMar 3, 2010
  2. Matthieu MoyMar 3, 2010

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.