Revision 7d1864ce67d83485cf5cbc8c90fc170ee884ef16 authored by Junio C Hamano on 07 January 2007, 10:00:28 UTC, committed by Junio C Hamano on 08 January 2007, 05:36:35 UTC
This removes the old is_bare_git_dir(const char *) to ask if a directory, if it is a GIT_DIR, is a bare repository, and replaces it with is_bare_repository(void *). The function looks at core.bare configuration variable if exists but uses the old heuristics: if it is ".git" or ends with "/.git", then it does not look like a bare repository, otherwise it does. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 510c5a8
strbuf.h
#ifndef STRBUF_H
#define STRBUF_H
struct strbuf {
int alloc;
int len;
int eof;
char *buf;
};
extern void strbuf_init(struct strbuf *);
extern void read_line(struct strbuf *, FILE *, int);
#endif /* STRBUF_H */
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...