This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Description
From the context of an Atom package:
var editor = atom.workspace.getActiveEditor();
var dir = new Directory(editor.getPath());
atom.project.repositoryForDirectory(dir).then(
(repo) => {
var path = editor.getPath();
var repo = repo.getRepo();
var blob = repo.getHeadBlob(path);
console.log(blob);
}
);
The above produces null, but other methods, such as getHead() work fine.