mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
25 lines
704 B
JavaScript
25 lines
704 B
JavaScript
var $git = {};
|
|
(function() {
|
|
|
|
native function getRepository(pathInRepo);
|
|
native function getHead();
|
|
native function getPath();
|
|
native function getStatus(path);
|
|
native function isIgnored(path);
|
|
native function checkoutHead(path);
|
|
|
|
function GitRepository(path) {
|
|
var repo = getRepository(path);
|
|
repo.constructor = GitRepository;
|
|
repo.__proto__ = GitRepository.prototype;
|
|
return repo;
|
|
}
|
|
|
|
GitRepository.prototype.getHead = getHead;
|
|
GitRepository.prototype.getPath = getPath;
|
|
GitRepository.prototype.getStatus = getStatus;
|
|
GitRepository.prototype.isIgnored = isIgnored;
|
|
GitRepository.prototype.checkoutHead = checkoutHead;
|
|
this.GitRepository = GitRepository;
|
|
})();
|