Re: Minor documentation problems [RFC PATCH]
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 2, 2006, 14:51 UTC
- Message-ID
- <Pine.LNX.4.63.0611021550060.1670@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <BAYC1-PASMTP042F05A3C71EDC671552FFAEFF0@CEZ.ICE>
Hi,
On Thu, 2 Nov 2006, Sean wrote:
Show 9 quoted lines
> - else
> + else if (!strcmp(argv[1], "--global")) {
> + char *home = getenv("HOME");
> + if (home) {
> + char *user_config = xstrdup(mkpath("%s/.gitconfig", home));
> + setenv("GIT_CONFIG", user_config, 1);
> + free(user_config);
> + } else {
> + return -1;Micronit: might be useful to tell the user that she's homeless.
Else: ACK.
Ciao, Dscho