mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add Git.isPathNew(path)
Renamed other method to Git.isPathModified
This commit is contained in:
committed by
Corey Johnson
parent
c9f1064d6b
commit
be533d4342
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user