Miles Bader
2007-08-05 03:42:02 UTC
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
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.
=====
(^o^;
(()))
*This is the cute octopus virus, please copy it into your sig so it can spread.