[PATCH] SoC 2014 MicroProject No.8:change multiple if-else statement to table-driven approach

2014-03-11 Thread Yao Zhao
Signed-off-by: Yao Zhao --- branch.c | 55 +-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/branch.c b/branch.c index 723a36b..6432e27 100644 --- a/branch.c +++ b/branch.c @@ -53,7 +53,20 @@ void install_branch_config(int flag

[PATCH] GSoC Change multiple if-else statements to be table-driven

2014-03-13 Thread Yao Zhao
Signed-off-by: Yao Zhao --- GSoC_MicroProject_#8 Hello Eric, Thanks for reviewing my code. I implemented table-driven method this time and correct the style problems indicated in review. Thank you, Yao branch.c | 72 1 file

[PATCH/GSoC_v3] branch.c: turn nested if-else logic to table-driven

2014-03-15 Thread Yao Zhao
Signed-off-by: Yao Zhao --- branch.c | 53 + 1 file changed, 29 insertions(+), 24 deletions(-) Hello Eric, Thank you and Junio for reviewing my code. It is really helpful to improve my code quality. This is version 3 of patch. Previous

[GSOC 2014]idea:Git Configuration API Improvement

2014-03-20 Thread Yao Zhao
Hello, Michael, Matthieu and peff, My name is Yao and I am interested in Git Configuration API Improvements listed in idea page in Git. I came up some ideas and really want to discuss them with you. First is about when to start reading configuration file to cache. My idea is the time user star

Re: Re: [GSOC 2014]idea:Git Configuration API Improvement

2014-03-20 Thread Yao Zhao
I think I misunderstand the project as Moy said. I thought the purpose of project is to store configuration into memory between multiple git calls. Sorry. Moy, thanks for explaining. You said API should be hided. Is that means I should indicate an arbitary feature in old version or new feature w