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

2014-03-21 Thread Matthieu Moy
Yao Zhao zhaox...@umn.edu writes: 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 we added should be linked to a manipulation of inner structure? And I need to find the connection to make this

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

2014-03-21 Thread Matthieu Moy
Mustafa Orkun Acar mustafaorkuna...@gmail.com writes: Hi,  I have completed my proposal about this project. But in one of the previous emails; it says that the aim of the project is not storing configuration data in the memory instead of making multiple git_config() calls. I also

[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

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

2014-03-20 Thread Michael Haggerty
On 03/20/2014 08:23 AM, Yao Zhao wrote: Third one is about when to write back to file, I am really confused about it. I think one way could be when user leave git repository using cd to go back. But I am not sure if git could detect user calls cd to leave repository. I don't understand. The

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

2014-03-20 Thread Matthieu Moy
Hi, Yao Zhao zhaox...@umn.edu writes: First is about when to start reading configuration file to cache. My idea is the time user starts call command that need configuration information (need to read configuration file). I'd actually load the configuration lazily, when Git first requires a

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

2014-03-20 Thread Junio C Hamano
Matthieu Moy matthieu@grenoble-inp.fr writes: Why? (In general, explaining why you chose something is more important than explaining what you chose) Good educational comment. Thanks. A tree (AST, Abstract syntax tree) can be interesting if you have some source-to-source