I am new to git. I have not tried to mass add the files using git add ...<div><br></div><div>For time being, until someone comes with better answer, you can probably use:</div><div>git add <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">fb.process.inc -a</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-size: 13px; ">git add fb_tab.js -a</span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Regards,</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Nitish</span></font></div><div><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 10:46 PM, Dave Cohen <span dir="ltr"><<a href="mailto:drupal@dave-cohen.com">drupal@dave-cohen.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm trying, and failing, to create a patch that adds new files to a module.<br>
<br>
According to <a href="http://drupal.org/node/707484" target="_blank">http://drupal.org/node/707484</a>, I should simply run `git add ...` then "Next time you run git diff, these new files will be included as well." In my experience, this statement is false.<br>
<br>
When I run `git status`, I see something like this:<br>
<br>
[dave@starbuck fb-3]$ git status<br>
# On branch 6.x-3.x<br>
# Changes to be committed:<br>
# (use "git reset HEAD <file>..." to unstage)<br>
#<br>
# new file: fb.process.inc<br>
# new file: fb_tab.js<br>
#<br>
# Changes not staged for commit:<br>
# (use "git add <file>..." to update what will be committed)<br>
# (use "git checkout -- <file>..." to discard changes in working directory)<br>
#<br>
# modified: README.txt<br>
# modified: contrib/fb_example.module<br>
# modified: fb.module<br>
# modified: fb_canvas.admin.inc<br>
# modified: fb_canvas.module<br>
# modified: fb_devel.module<br>
# modified: fb_settings.inc<br>
# modified: fb_tab.admin.inc<br>
# modified: <a href="http://fb_tab.info" target="_blank">fb_tab.info</a><br>
# modified: fb_tab.module<br>
# modified: fb_url_rewrite.inc<br>
<br>
<br>
When I run `git diff`, I see changes to all the modified files, but I do not see the new files.<br>
<br>
What am I missing? Thanks,<br>
<font color="#888888"><br>
-Dave<br>
</font></blockquote></div><br></div>