# Fwd: Copyright on wildmatch.c

12 messages from 2015-02-24 to 2015-02-24. Participants: Guilherme, Duy Nguyen, Anthony Ramine, René Scharfe, Junio C Hamano, Jim Meyering.
Thread: https://gitlist.dev/t/38639

## Guilherme, 2015-02-24 08:08

Subject: Fwd: Copyright on wildmatch.c
Message-ID: <CAMDzUtymj21ckMrA87q1TATeWuH6kS_TBrsJ_jVjfeH50CaniA@mail.gmail.com>
URL: https://gitlist.dev/e/CAMDzUtymj21ckMrA87q1TATeWuH6kS_TBrsJ_jVjfeH50CaniA%40mail.gmail.com
In-Reply-To: <CAMDzUtyitrK__iE9ykfTuP+Ooq0FwMPp_NVgBfBGbSV52+OPoQ@mail.gmail.com>

```
Hello,

I have already posted this to the users mailing list but i guess it's
more appropriate to have it here.

---------- Forwarded message ----------
From: Guilherme <guibufolo@gmail.com>
Date: Tue, Feb 24, 2015 at 9:02 AM
Subject: Copyright on wildmatch.c
To: "git-users@googlegroups.com" <git-users@googlegroups.com>


Hello,

I'm trying to implement support for gitignore files in
the_silver_searcher (https://github.com/ggreer/the_silver_searcher).
It is a source code optimized version of grep. And it is way faster
than ack.

The problems at hand is that I'd like to use wildmatch.c and some
dependencies (hex.c, some portions of compat-util.h) but it seems that
git is GPL whereas tss is Apache2 licensed.

Is there any possibility to re-license the files above to Apache2 for
the TSS project?

If not, is there any c library that provides support gitignore patterns?

Thank you very much,
Bufolo

```

## Duy Nguyen, 2015-02-24 08:58

Subject: Re: Copyright on wildmatch.c
Message-ID: <CACsJy8Do77QSKSERPE26bKJ0gANB0XmPVBLwb1QKAW4qe0ouAQ@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8Do77QSKSERPE26bKJ0gANB0XmPVBLwb1QKAW4qe0ouAQ%40mail.gmail.com
In-Reply-To: <CAMDzUtymj21ckMrA87q1TATeWuH6kS_TBrsJ_jVjfeH50CaniA@mail.gmail.com>

```
On Tue, Feb 24, 2015 at 3:08 PM, Guilherme <guibufolo@gmail.com> wrote:
> Hello,
>
> I have already posted this to the users mailing list but i guess it's
> more appropriate to have it here.

Related thread about relicensing wildmatch.c for tss

http://thread.gmane.org/gmane.comp.version-control.git/259764/focus=259798

>
> ---------- Forwarded message ----------
> From: Guilherme <guibufolo@gmail.com>
> Date: Tue, Feb 24, 2015 at 9:02 AM
> Subject: Copyright on wildmatch.c
> To: "git-users@googlegroups.com" <git-users@googlegroups.com>
>
>
> Hello,
>
> I'm trying to implement support for gitignore files in
> the_silver_searcher (https://github.com/ggreer/the_silver_searcher).
> It is a source code optimized version of grep. And it is way faster
> than ack.
>
> The problems at hand is that I'd like to use wildmatch.c and some
> dependencies (hex.c, some portions of compat-util.h) but it seems that
> git is GPL whereas tss is Apache2 licensed.
>
> Is there any possibility to re-license the files above to Apache2 for
> the TSS project?
>
> If not, is there any c library that provides support gitignore patterns?
>
> Thank you very much,
> Bufolo
> --
> 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



-- 
Duy

```

## Guilherme, 2015-02-24 09:29

Subject: Re: Copyright on wildmatch.c
Message-ID: <CAMDzUtz_BhW_tuQLy+AiNY7hz_HXCmHOtUNDgMBc=Taeon_Dwg@mail.gmail.com>
URL: https://gitlist.dev/e/CAMDzUtz_BhW_tuQLy%2BAiNY7hz_HXCmHOtUNDgMBc%3DTaeon_Dwg%40mail.gmail.com
In-Reply-To: <CACsJy8Do77QSKSERPE26bKJ0gANB0XmPVBLwb1QKAW4qe0ouAQ@mail.gmail.com>

```
That discussion seems to have just died off.

Whom should i write to about making the license change effective? You
(Duy Nguyen) seemed to be fine with the license change. Can you, or
anyone else, further guide me on the process on making sure i can use
the file(s) in TSS?

Thank you.

On Tue, Feb 24, 2015 at 9:58 AM, Duy Nguyen <pclouds@gmail.com> wrote:
> On Tue, Feb 24, 2015 at 3:08 PM, Guilherme <guibufolo@gmail.com> wrote:
>> Hello,
>>
>> I have already posted this to the users mailing list but i guess it's
>> more appropriate to have it here.
>
> Related thread about relicensing wildmatch.c for tss
>
> http://thread.gmane.org/gmane.comp.version-control.git/259764/focus=259798
>
>>
>> ---------- Forwarded message ----------
>> From: Guilherme <guibufolo@gmail.com>
>> Date: Tue, Feb 24, 2015 at 9:02 AM
>> Subject: Copyright on wildmatch.c
>> To: "git-users@googlegroups.com" <git-users@googlegroups.com>
>>
>>
>> Hello,
>>
>> I'm trying to implement support for gitignore files in
>> the_silver_searcher (https://github.com/ggreer/the_silver_searcher).
>> It is a source code optimized version of grep. And it is way faster
>> than ack.
>>
>> The problems at hand is that I'd like to use wildmatch.c and some
>> dependencies (hex.c, some portions of compat-util.h) but it seems that
>> git is GPL whereas tss is Apache2 licensed.
>>
>> Is there any possibility to re-license the files above to Apache2 for
>> the TSS project?
>>
>> If not, is there any c library that provides support gitignore patterns?
>>
>> Thank you very much,
>> Bufolo
>> --
>> 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
>
>
>
> --
> Duy

```

## Duy Nguyen, 2015-02-24 09:46

Subject: Re: Copyright on wildmatch.c
Message-ID: <CACsJy8APLtweaf-q8+nCzJC-8J_vNZp-Y=AtNkX4NPuYr1jb=Q@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8APLtweaf-q8%2BnCzJC-8J_vNZp-Y%3DAtNkX4NPuYr1jb%3DQ%40mail.gmail.com
In-Reply-To: <CAMDzUtz_BhW_tuQLy+AiNY7hz_HXCmHOtUNDgMBc=Taeon_Dwg@mail.gmail.com>

```
On Tue, Feb 24, 2015 at 4:29 PM, Guilherme <guibufolo@gmail.com> wrote:
> That discussion seems to have just died off.
>
> Whom should i write to about making the license change effective? You
> (Duy Nguyen) seemed to be fine with the license change. Can you, or
> anyone else, further guide me on the process on making sure i can use
> the file(s) in TSS?

I'm not a lawyer, but I think after you double check

 - what Jonathan Neider wrote about GPLv3 and Apache2 is true
 - perhaps check with Anthony Ramine, who is the only person besides
me that has made changes in wildmatch.c, in b79c0c3 (wildmatch:
properly fold case everywhere - 2013-05-30)

then wildmatch.c is good for reuse. You probably need to check with
other people who made changes in hex.c and git-compat-util.h.
git-shortlog and git-blame could be used to get the email list of
these people. But maybe it's just easier to rewrite those, hex.c is
not big and I suspect you don't need much of git-compat-util.h.
-- 
Duy

```

## Guilherme, 2015-02-24 12:17

Subject: Re: Copyright on wildmatch.c
Message-ID: <CAMDzUtxf0gF=JDgEk9EU3W2VWuP-Qy8-Kz-fTx_Y16UeFRGiYA@mail.gmail.com>
URL: https://gitlist.dev/e/CAMDzUtxf0gF%3DJDgEk9EU3W2VWuP-Qy8-Kz-fTx_Y16UeFRGiYA%40mail.gmail.com
In-Reply-To: <CACsJy8APLtweaf-q8+nCzJC-8J_vNZp-Y=AtNkX4NPuYr1jb=Q@mail.gmail.com>

```
I'm not sure on how i would rewrite hex.c it is just an array.

>From git-compat-util.h i only needed a subset of the file (Lines 699
to 785), as you assumed, but rewriting it also seems pointless as it
is only a few defines and 4 very short functions.

I have asked everybody who changed anything in those lines for their
approval. I hope they all agree.

On Tue, Feb 24, 2015 at 10:46 AM, Duy Nguyen <pclouds@gmail.com> wrote:
> On Tue, Feb 24, 2015 at 4:29 PM, Guilherme <guibufolo@gmail.com> wrote:
>> That discussion seems to have just died off.
>>
>> Whom should i write to about making the license change effective? You
>> (Duy Nguyen) seemed to be fine with the license change. Can you, or
>> anyone else, further guide me on the process on making sure i can use
>> the file(s) in TSS?
>
> I'm not a lawyer, but I think after you double check
>
>  - what Jonathan Neider wrote about GPLv3 and Apache2 is true
>  - perhaps check with Anthony Ramine, who is the only person besides
> me that has made changes in wildmatch.c, in b79c0c3 (wildmatch:
> properly fold case everywhere - 2013-05-30)
>
> then wildmatch.c is good for reuse. You probably need to check with
> other people who made changes in hex.c and git-compat-util.h.
> git-shortlog and git-blame could be used to get the email list of
> these people. But maybe it's just easier to rewrite those, hex.c is
> not big and I suspect you don't need much of git-compat-util.h.
> --
> Duy

```

## Guilherme, 2015-02-24 12:22

Subject: Re: Copyright on wildmatch.c
Message-ID: <CAMDzUtw8ySWwHvx4G+0R=L5JpxKqeFFNQ8Rb6bo5FRGwArzJcA@mail.gmail.com>
URL: https://gitlist.dev/e/CAMDzUtw8ySWwHvx4G%2B0R%3DL5JpxKqeFFNQ8Rb6bo5FRGwArzJcA%40mail.gmail.com
In-Reply-To: <CAMDzUtxf0gF=JDgEk9EU3W2VWuP-Qy8-Kz-fTx_Y16UeFRGiYA@mail.gmail.com>

```
Hello,

I'm writing to you in regards to the files ctypes.c
which you have modified part of in the git project.

I'm currently working on integrating gitignore pattern matching into
the_sivler_searcher(http://github.com/ggreer/the_silver_searcher). PR
https://github.com/ggreer/the_silver_searcher/pull/614

For that i needed wildmatch.c and it's dependencies. That is parts of
ctypes.c lines 8 to 31.

Unfortunately TSS is Apache licensed wheras git is GPL, those licenses
are incompatible and thus i ask if you agree that your portion if the
code is also licensed under Apache2 for the use in TSS.

You can follow the discussion under
http://article.gmane.org/gmane.comp.version-control.git/264312

Thank you very much,
Bufolo

```

## Guilherme, 2015-02-24 12:34

Subject: Re: Copyright on wildmatch.c
Message-ID: <CAMDzUtzPxrtwdJN7cRmaMC_Sezmr9zSge=K_pc1OztEA8FVc=g@mail.gmail.com>
URL: https://gitlist.dev/e/CAMDzUtzPxrtwdJN7cRmaMC_Sezmr9zSge%3DK_pc1OztEA8FVc%3Dg%40mail.gmail.com
In-Reply-To: <CAMDzUtw8ySWwHvx4G+0R=L5JpxKqeFFNQ8Rb6bo5FRGwArzJcA@mail.gmail.com>

```
This is just an email to all the people i have written in private
about relicensing the files in need in TSS so they can reply to this
email and it be recorded in the mailing list.

The files are part of ctypes.c hex.c git-compat-util.h.

On Tue, Feb 24, 2015 at 1:22 PM, Guilherme <guibufolo@gmail.com> wrote:
> Hello,
>
> I'm writing to you in regards to the files ctypes.c
> which you have modified part of in the git project.
>
> I'm currently working on integrating gitignore pattern matching into
> the_sivler_searcher(http://github.com/ggreer/the_silver_searcher). PR
> https://github.com/ggreer/the_silver_searcher/pull/614
>
> For that i needed wildmatch.c and it's dependencies. That is parts of
> ctypes.c lines 8 to 31.
>
> Unfortunately TSS is Apache licensed wheras git is GPL, those licenses
> are incompatible and thus i ask if you agree that your portion if the
> code is also licensed under Apache2 for the use in TSS.
>
> You can follow the discussion under
> http://article.gmane.org/gmane.comp.version-control.git/264312
>
> Thank you very much,
> Bufolo

```

## Guilherme, 2015-02-24 12:54

Subject: Re: Copyright on wildmatch.c
Message-ID: <CAMDzUtyWF6oRV7-h45P8x=tWOK2kwdg2ELhR+ugjZLWTbF_feQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAMDzUtyWF6oRV7-h45P8x%3DtWOK2kwdg2ELhR%2BugjZLWTbF_feQ%40mail.gmail.com
In-Reply-To: <CAMDzUtzPxrtwdJN7cRmaMC_Sezmr9zSge=K_pc1OztEA8FVc=g@mail.gmail.com>

```
This is CC to Anthony Ramine.

On Tue, Feb 24, 2015 at 1:34 PM, Guilherme <guibufolo@gmail.com> wrote:
> This is just an email to all the people i have written in private
> about relicensing the files in need in TSS so they can reply to this
> email and it be recorded in the mailing list.
>
> The files are part of ctypes.c hex.c git-compat-util.h.
>
> On Tue, Feb 24, 2015 at 1:22 PM, Guilherme <guibufolo@gmail.com> wrote:
>> Hello,
>>
>> I'm writing to you in regards to the files ctypes.c
>> which you have modified part of in the git project.
>>
>> I'm currently working on integrating gitignore pattern matching into
>> the_sivler_searcher(http://github.com/ggreer/the_silver_searcher). PR
>> https://github.com/ggreer/the_silver_searcher/pull/614
>>
>> For that i needed wildmatch.c and it's dependencies. That is parts of
>> ctypes.c lines 8 to 31.
>>
>> Unfortunately TSS is Apache licensed wheras git is GPL, those licenses
>> are incompatible and thus i ask if you agree that your portion if the
>> code is also licensed under Apache2 for the use in TSS.
>>
>> You can follow the discussion under
>> http://article.gmane.org/gmane.comp.version-control.git/264312
>>
>> Thank you very much,
>> Bufolo

```

## Anthony Ramine, 2015-02-24 13:35

Subject: Re: Copyright on wildmatch.c
Message-ID: <1E0E3F90-07A7-4CDE-AA13-66448DC0404B@gmail.com>
URL: https://gitlist.dev/e/1E0E3F90-07A7-4CDE-AA13-66448DC0404B%40gmail.com
In-Reply-To: <CAMDzUtyWF6oRV7-h45P8x=tWOK2kwdg2ELhR+ugjZLWTbF_feQ@mail.gmail.com>

```
I agree to relicense my contributions on wildmatch.c under the Apache license.

Le 24 févr. 2015 à 13:54, Guilherme <guibufolo@gmail.com> a écrit :

> This is CC to Anthony Ramine.
> 
> On Tue, Feb 24, 2015 at 1:34 PM, Guilherme <guibufolo@gmail.com> wrote:
>> This is just an email to all the people i have written in private
>> about relicensing the files in need in TSS so they can reply to this
>> email and it be recorded in the mailing list.
>> 
>> The files are part of ctypes.c hex.c git-compat-util.h.
>> 
>> On Tue, Feb 24, 2015 at 1:22 PM, Guilherme <guibufolo@gmail.com> wrote:
>>> Hello,
>>> 
>>> I'm writing to you in regards to the files ctypes.c
>>> which you have modified part of in the git project.
>>> 
>>> I'm currently working on integrating gitignore pattern matching into
>>> the_sivler_searcher(http://github.com/ggreer/the_silver_searcher). PR
>>> https://github.com/ggreer/the_silver_searcher/pull/614
>>> 
>>> For that i needed wildmatch.c and it's dependencies. That is parts of
>>> ctypes.c lines 8 to 31.
>>> 
>>> Unfortunately TSS is Apache licensed wheras git is GPL, those licenses
>>> are incompatible and thus i ask if you agree that your portion if the
>>> code is also licensed under Apache2 for the use in TSS.
>>> 
>>> You can follow the discussion under
>>> http://article.gmane.org/gmane.comp.version-control.git/264312
>>> 
>>> Thank you very much,
>>> Bufolo

```

## René Scharfe, 2015-02-24 15:58

Subject: Re: Copyright on wildmatch.c
Message-ID: <54EC9FAB.9090506@web.de>
URL: https://gitlist.dev/e/54EC9FAB.9090506%40web.de
In-Reply-To: <CAMDzUtzPxrtwdJN7cRmaMC_Sezmr9zSge=K_pc1OztEA8FVc=g@mail.gmail.com>

```
Am 24.02.2015 um 13:34 schrieb Guilherme:
> This is just an email to all the people i have written in private
> about relicensing the files in need in TSS so they can reply to this
> email and it be recorded in the mailing list.
>
> The files are part of ctypes.c hex.c git-compat-util.h.
>
> On Tue, Feb 24, 2015 at 1:22 PM, Guilherme <guibufolo@gmail.com> wrote:
>> Hello,
>>
>> I'm writing to you in regards to the files ctypes.c
>> which you have modified part of in the git project.
>>
>> I'm currently working on integrating gitignore pattern matching into
>> the_sivler_searcher(http://github.com/ggreer/the_silver_searcher). PR
>> https://github.com/ggreer/the_silver_searcher/pull/614
>>
>> For that i needed wildmatch.c and it's dependencies. That is parts of
>> ctypes.c lines 8 to 31.
>>
>> Unfortunately TSS is Apache licensed wheras git is GPL, those licenses
>> are incompatible and thus i ask if you agree that your portion if the
>> code is also licensed under Apache2 for the use in TSS.

That's fine with me.

René

```

## Junio C Hamano, 2015-02-24 18:59

Subject: Re: Copyright on wildmatch.c
Message-ID: <xmqqzj83qgo4.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqzj83qgo4.fsf%40gitster.dls.corp.google.com
In-Reply-To: <CAMDzUtxf0gF=JDgEk9EU3W2VWuP-Qy8-Kz-fTx_Y16UeFRGiYA@mail.gmail.com>

```
Guilherme <guibufolo@gmail.com> writes:

> I'm not sure on how i would rewrite hex.c it is just an array.
>
> From git-compat-util.h i only needed a subset of the file (Lines 699
> to 785), as you assumed, but rewriting it also seems pointless as it
> is only a few defines and 4 very short functions.

I do not think I have any contributions of significance under
copyright protection in the parts of that file.  The ctype-related
lines in git-compat-util.h attribute to me primarily because they
were moved by 4050c0df (Clean up compatibility definitions,
2005-12-05) from what Linus wrote in another file to the present
location.

```

## Jim Meyering, 2015-02-24 22:16

Subject: Re: Copyright on wildmatch.c
Message-ID: <CA+8g5KGAEVFXWSNjH8sPKNHvb3vwMn9NXTa+o04VsruyswB+FA@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2B8g5KGAEVFXWSNjH8sPKNHvb3vwMn9NXTa%2Bo04VsruyswB%2BFA%40mail.gmail.com
In-Reply-To: <CAMDzUtzPxrtwdJN7cRmaMC_Sezmr9zSge=K_pc1OztEA8FVc=g@mail.gmail.com>

```
On Tue, Feb 24, 2015 at 4:34 AM, Guilherme <guibufolo@gmail.com> wrote:
> This is just an email to all the people i have written in private
> about relicensing the files in need in TSS so they can reply to this
> email and it be recorded in the mailing list.
>
> The files are part of ctypes.c hex.c git-compat-util.h.
>
> On Tue, Feb 24, 2015 at 1:22 PM, Guilherme <guibufolo@gmail.com> wrote:
>> Hello,
>>
>> I'm writing to you in regards to the files ctypes.c
>> which you have modified part of in the git project.
>>
>> I'm currently working on integrating gitignore pattern matching into
>> the_sivler_searcher(http://github.com/ggreer/the_silver_searcher). PR
>> https://github.com/ggreer/the_silver_searcher/pull/614
>>
>> For that i needed wildmatch.c and it's dependencies. That is parts of
>> ctypes.c lines 8 to 31.
>>
>> Unfortunately TSS is Apache licensed wheras git is GPL, those licenses
>> are incompatible and thus i ask if you agree that your portion if the
>> code is also licensed under Apache2 for the use in TSS.

Fine by me.

```
