Re: [PATCH] microproject for GSOC

2014-03-14 Thread Matthieu Moy
Hi,

Welcome to the Git community, and welcome to the GSOC program. Below are
some comments to give you a taste of what a review looks like on this
list. Do take the comments seriously (they should be addressed), but
don't take them badly: critic is meant to be constructive.

ubuntu733 ubuntu2...@126.com writes:
^

Please, use a real name when you contribute to Git.

 Apply for GSOC.The microprojects is rewriter diff-index.c

This part of your message will become the commit message (i.e. cast in
stone forever in git.git's history). The point is not that you want to
apply for GSOC, but what the patch does and more importantly why it does
it.

 +#define REMOVE 1

If the code is to be removed, then remove it. That's why we use a
version control system ;-).

 - while ((e = readdir(dir)))
 - if (strcmp(., e-d_name)  strcmp(.., e-d_name))
 - string_list_insert(list, e-d_name);
 -
 + while ((e = readdir(dir))) {
 + while(is_dot_or_dotdot(e-d_name))

Missing space between while and (.

 +  break;

Broken indentation (indent with space).

This while (...) break; seems really weird to me: if the condition is
false, then you exit the loop because it's a while loop, and if the
condition is true, you exit the loop because of the break. Isn't that a
no-op?

 + string_list_insert(list, e-d_name);
 +  }

Broken indentation (misplaced }).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] microproject for GSOC

2014-03-14 Thread Matthieu Moy
沈承恩 ubuntu2...@126.com writes:

 Thank you for your comments.I will amend those issues .As a Chinese
 student,what name should I use?My Chinese name is ok?

I guess it is. The git.git history already has contribution from 张忠山
for example (I don't know if it is chineese, but it looks so from my
French eyes).

 I am very interest in Open source.What can I do to increase my chance?

Interesting blog post to read:
http://softwareswirl.blogspot.fr/2014/03/my-secret-tip-for-gsoc-success.html

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html