On page http://drupal.org/node/707484, under "Include new files in your patch," it says "Next time you run git diff, these new files will be included as well."

This is false, if you run "git diff" as described earlier on that page.

The files will be included in the diff if you specify exactly the branch, so for example

git diff origin/6.x-3.x

will work if your working on a 6.x-3.x branch. But a plain old "git diff" will not show the added files.

Comments

eliza411’s picture

Status: Active » Fixed

I updated these docs to make them technically accurate. I'm not sure how helpful the quick fix really is given that the patching instructions need a complete review, but at least people reading it won't expect git diff to work. Thanks for pointing this out.

Related: #1012476: Determine what to do with these patch-related pages when Git is deployed and [#3782684]

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.