Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 2/3] add is_git_repo (is_git_repository for char*)

From: Jeff King <hidden>
Date: 2016-06-15 23:07:23

On Fri, Dec 04, 2015 at 07:15:16PM +0100, Andreas Krey wrote:
quoted hunk
diff --git a/cache.h b/cache.h
index 6626e97..42ab0c3 100644
--- a/cache.h
+++ b/cache.h
@@ -440,6 +440,7 @@ extern const char *get_git_dir(void);
 extern const char *get_git_common_dir(void);
 extern int is_git_directory(const char *path);
 extern int is_git_repository(struct strbuf *sb);
+extern int is_git_repo(const char *path);
If we have two functions which do the same thing but differ only in
their interface (here strbuf versus a C-string), we should probably give
them related names that indicate the difference.

So "is_git_repository_str()" or something. (though per my previous
email, I think we should have a new name for the first one, too).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help