All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: jateeq <jawad_atiq@hotmail.com>
Cc: git@vger.kernel.org
Subject: Re: Git diff does not detect newly added files to working tree
Date: Wed, 03 Mar 2010 21:12:22 +0100	[thread overview]
Message-ID: <vpqlje9kvvd.fsf@bauges.imag.fr> (raw)
In-Reply-To: <27772711.post@talk.nabble.com> (jateeq's message of "Wed\, 3 Mar 2010 12\:03\:48 -0800 \(PST\)")

jateeq <jawad_atiq@hotmail.com> writes:

> 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

Which part of the manual makes you think you should see untracked
files? (that's a real question ;-) ).

> - but it just doesn't show up. Anyone knows what I'm doing wrong?

git diff doesn't mention untracked files, but shows the diff between
the working tree and the staged content for files known to git.

To see the files in "git diff", you have to let Git know about these
files, with "git add --intent-to-add the-file-you-want-to-see" (alias
"git add -N"), or you should use "git status".

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

      reply	other threads:[~2010-03-03 20:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-03 20:03 Git diff does not detect newly added files to working tree jateeq
2010-03-03 20:12 ` Matthieu Moy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vpqlje9kvvd.fsf@bauges.imag.fr \
    --to=matthieu.moy@grenoble-inp.fr \
    --cc=git@vger.kernel.org \
    --cc=jawad_atiq@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.