Re: [PATCH] Enable reflogs by default in any repository with a working directory.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 15, 2006, 00:13 UTC
- Message-ID
- <Pine.LNX.4.63.0612150112010.3635@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20061214224117.GA26374@spearce.org>
Hi,
On Thu, 14 Dec 2006, Shawn O. Pearce wrote:
Show 7 quoted lines
> +int is_bare_git_dir (const char *dir)
> +{
> + if (!strcmp(dir, DEFAULT_GIT_DIR_ENVIRONMENT))
> + return 0;
> + const char *s = strrchr(dir, '/');
> + return !s || strcmp(s + 1, DEFAULT_GIT_DIR_ENVIRONMENT);
> }This function does not really determine if the repo is bare. I have no better name for it, though.
Ciao, Dscho