login
Header Space

 
 

git-diff new files (without using index)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Saturday, August 4, 2007 - 11:42 pm

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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-diff new files (without using index), Miles Bader, (Sat Aug 4, 11:42 pm)
Re: git-diff new files (without using index), Shawn O. Pearce, (Sat Aug 4, 11:52 pm)
Re: git-diff new files (without using index), Miles Bader, (Sun Aug 5, 12:00 am)
Re: git-diff new files (without using index), Shawn O. Pearce, (Sun Aug 5, 12:08 am)
Re: git-diff new files (without using index), Junio C Hamano, (Sun Aug 5, 12:20 am)
Re: git-diff new files (without using index), Miles Bader, (Sun Aug 5, 12:37 am)
speck-geostationary