You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by IT CTO <go...@gmail.com> on 2015/09/28 21:52:35 UTC

Git diff does not pick new files

Based on flume docs I tried using git diff to create the patch I want to
submit. But I noticed the file only contains the updated files and no new
files were added.
Why?
Also, if I use the --staged flag only new file are included.
What am I missing?
Eran
-- 
Eran | "You don't need eyes to see, you need vision" (Faithless)

Re: Git diff does not pick new files

Posted by Ashish <pa...@gmail.com>.
new files are a bit tricky, after git add use this

>git diff HEAD

Hari helped me with this on this JIRA
https://issues.apache.org/jira/browse/FLUME-1501

On Mon, Sep 28, 2015 at 1:03 PM, Hari Shreedharan
<hs...@cloudera.com> wrote:
> You need to first do a git add for the new files
>
>
>
>
>
> Thanks, Hari
>
> On Mon, Sep 28, 2015 at 2:52 PM, IT CTO <go...@gmail.com> wrote:
>
>> Based on flume docs I tried using git diff to create the patch I want to
>> submit. But I noticed the file only contains the updated files and no new
>> files were added.
>> Why?
>> Also, if I use the --staged flag only new file are included.
>> What am I missing?
>> Eran
>> --
>> Eran | "You don't need eyes to see, you need vision" (Faithless)



-- 
thanks
ashish

Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal

Re: Git diff does not pick new files

Posted by Hari Shreedharan <hs...@cloudera.com>.
You need to first do a git add for the new files





Thanks, Hari

On Mon, Sep 28, 2015 at 2:52 PM, IT CTO <go...@gmail.com> wrote:

> Based on flume docs I tried using git diff to create the patch I want to
> submit. But I noticed the file only contains the updated files and no new
> files were added.
> Why?
> Also, if I use the --staged flag only new file are included.
> What am I missing?
> Eran
> -- 
> Eran | "You don't need eyes to see, you need vision" (Faithless)