Re: [PATCH 1/2] [GSOC] ref-filter: add %(raw) atom
- From
ZheNing Hu <adlternative@gmail.com>
- Date
- May 30, 2021, 05:37 UTC
- Message-ID
- <CAOLTT8Txkb59X33YAmx-TmR=c42Y0=fbmuugaTkK1_GDyEdMMQ@mail.gmail.com>
- In-Reply-To
- <60b11a8e323ce_4b032208ad@natae.notmuch>
Felipe Contreras <felipe.contreras@gmail.com> 于2021年5月29日周六 上午12:30写道:
Show 19 quoted lines
> > ZheNing Hu wrote: > > Sorry for the weird, unclean `memcasecmp()`, I referred to memcmp() > > in glibc before, and then I was afraid that my writing was not standard > > enough like "UCHAR_MAX <= INT_MAX", I can't consider such an > > extreme situation. So I copied it directly from gnulib: > > https://github.com/gagern/gnulib/blob/master/lib/memcasecmp.c > > Yeah, I imagined you copied it from somewhere, but when you do that you > need to transform the code to the style of the project. I've seen GNU > code, and in my opinion it's too verbose and redundant. Not a good > style. > > But more importantly: at the header of that file you can see the license > is GPLv3, that's incompatible with the license of this project, which is > GPLv2 only (see the note in COPYING). > > You can't just copy code like that. You need to be careful. >
Now I notice the importance of license in open source project.
Show 8 quoted lines
> And if you do copy code--even if allowed by the license--it's something > that should be mentioned in the commit message, preferably with a link > to the original, that way if there's trouble in the future with that > code, we can follow the link and figure out why it was done that way. > > Also, it's just nice to give attribution to the people that wrote the > original code. >
Ok.
Show 14 quoted lines
> > > Check the following resource for a detailed explanation of why my > > > modified version is considered good taste: > > > > > > https://github.com/felipec/linked-list-good-taste > > > > OK. I will gradually standardize my code style. > > It is not a standard, it is my personal opinion, which is shared by > Linus Torvalds, and I presume other members of the Git project. > > The style is not something that can be standardized, you get a feeling > of it as you read more code of the project, write, and then receive > feedback on what you write. >
Yes it is. Reading and writing Git code has brought me a certain degree of code style improvement. (this is indeed a kind of edification :) )
> It's like learning the slang of a new city; it takes a while. >
Thanks for your guidance.
> Cheers. > > -- > Felipe Contreras
Thanks! -- ZheNing Hu