This commit is contained in:
Corey Johnson
2012-11-02 10:42:05 -07:00
parent 53a0d2a805
commit 13be2ea607
2 changed files with 6 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
var $git = {};
(function() {
native function getRepository(path);
native function getRepository(pathInRepo);
native function getHead();
native function getPath();
native function isIgnored(path);

View File

@@ -10,8 +10,8 @@ private:
git_repository *repo;
public:
GitRepository(const char *repoPath) {
exists = git_repository_open_ext(&repo, repoPath, 0, NULL) == GIT_OK;
GitRepository(const char *pathInRepo) {
exists = git_repository_open_ext(&repo, pathInRepo, 0, NULL) == GIT_OK;
}
~GitRepository() {
@@ -41,8 +41,9 @@ public:
}
}
return CefV8Value::CreateString(git_reference_name(head));
} else
return CefV8Value::CreateNull();
}
return CefV8Value::CreateNull();
}
CefRefPtr<CefV8Value> IsIgnored(const char *path) {