Re: [PATCH v3 03/10] config: Make git_config() more flexible

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Wednesday, February 18, 2009 - 2:13 pm

Felipe Contreras <felipe.contreras@gmail.com> writes:


Currently it does???

Here is what I get from using the command from master and next:

    $ cd /var/tmp
    $ ls -d /.git /var/.git /var/tmp/.git /var/tmp/config
    ls: /.git: No such file or directory
    ls: /var/.git: No such file or directory
    ls: /var/tmp/.git: No such file or directory
    ls: /var/tmp/config: No such file or directory
    $ git config -l >/dev/null ; echo $?
    0
    $ git config alias.co; echo $?
    checkout
    0

I have $HOME/.gitconfig (where the alias comes from) and no system wide
configuration file.

Also the patch is mistitled.  Whatever you are trying to say about the
current problem which I do not seem to get, and whatever different
behaviour from the current one you are trying to implement (which is not
quite clear from the above log message), it is not about making it more
flexible.

The patch text suggests you are trying to change the function's exit
status so the title would be "git-config: report errors correctly in its
exit status", but it is unspecified in your commit log message what
definition of "correctly" you are using in this patch.

--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 01/10] config: Codestyle cleanups., Felipe Contreras, (Tue Feb 17, 6:52 am)
[PATCH v3 02/10] config: Cleanup editor action., Felipe Contreras, (Tue Feb 17, 6:52 am)
[PATCH v3 03/10] config: Make git_config() more flexible., Felipe Contreras, (Tue Feb 17, 6:52 am)
[PATCH v3 05/10] config: Reorganize get_color*., Felipe Contreras, (Tue Feb 17, 6:52 am)
[PATCH v3 06/10] config: Use parseopt., Felipe Contreras, (Tue Feb 17, 6:52 am)
[PATCH v3 09/10] config: Disallow multiple variable types., Felipe Contreras, (Tue Feb 17, 6:52 am)
Re: [PATCH v3 01/10] config: Codestyle cleanups., Sverre Rabbelier, (Tue Feb 17, 9:33 am)
Re: [PATCH v3 01/10] config: Codestyle cleanups., Felipe Contreras, (Wed Feb 18, 2:18 am)
Re: [PATCH v3 03/10] config: Make git_config() more flexible, Junio C Hamano, (Wed Feb 18, 2:13 pm)
Re: [PATCH v3 03/10] config: Make git_config() more flexible, Felipe Contreras, (Wed Feb 18, 2:30 pm)