[development] using git, create patch with new files

Dave Cohen drupal at dave-cohen.com
Mon Apr 11 19:34:53 UTC 2011


Kyle,

"git diff --cached" gets me only the added files, not the modified files.  Still looking for a way to build one cohesive .patch file.

-Dave

On Monday 11 April 2011 10:28:45 Kyle Mathews wrote:
> Hmm... well those instructions are wrong I guess.
> 
> "git diff" is the diff of changes since the last commit that have *not* been
> staged. So once you've added a file via "git add", it won't show up anymore
> when you run "git diff".
> 
> If you want to see the diff between the last commit and staged files, run
> "git diff --cached"
> 
> --
> Kyle Mathews
> 
> Blog: kyle.mathews2000.com/blog
> Twitter: http://twitter.com/kylemathews
> 


More information about the development mailing list