From: Miles Bader <miles@gnu.org>
To: git@vger.kernel.org
Subject: git-diff new files (without using index)
Date: Sun, 05 Aug 2007 12:42:02 +0900 [thread overview]
Message-ID: <87wswalkad.fsf@catnip.gol.com> (raw)
One thing I often want to do is generate a complete diff of all changes,
including new/removed files.
If I add things to the index, I can use "git-diff --cached" to do it;
however I'd actually like to be able to do this _without_ updating the
index; in other words, any un-added new file as a change. As it is, the
"non-indexed" state seems kind of a second-class citizen, as you can
never have new files there (or rather, git will never really see them).
Is there anyway to do this currently? If not, maybe something like a
"git-diff -N" (mirroring diff's -N/--new-file option) option could be
added to do this?
Thanks,
-Miles
--
=====
(^o^;
(()))
*This is the cute octopus virus, please copy it into your sig so it can spread.
next reply other threads:[~2007-08-05 3:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-05 3:42 Miles Bader [this message]
2007-08-05 3:52 ` git-diff new files (without using index) Shawn O. Pearce
2007-08-05 4:00 ` Miles Bader
2007-08-05 4:08 ` Shawn O. Pearce
2007-08-05 4:20 ` Junio C Hamano
2007-08-05 4:37 ` Miles Bader
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=87wswalkad.fsf@catnip.gol.com \
--to=miles@gnu.org \
--cc=git@vger.kernel.org \
/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 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).