Add Git.isPathNew(path)

Renamed other method to Git.isPathModified
This commit is contained in:
Corey Johnson & Kevin Sawicki
2012-11-02 14:54:12 -07:00
committed by Corey Johnson
parent c9f1064d6b
commit be533d4342
6 changed files with 49 additions and 32 deletions

View File

@@ -62,15 +62,15 @@ public:
CefRefPtr<CefV8Value> GetStatus(const char *path) {
if (!exists) {
return CefV8Value::CreateInt(-1);
return CefV8Value::CreateInt(0);
}
unsigned int status;
unsigned int status = 0;
if (git_status_file(&status, repo, path) == GIT_OK) {
return CefV8Value::CreateInt(status);
}
else {
return CefV8Value::CreateInt(-1);
return CefV8Value::CreateInt(0);
}
}