Files
atom/packages/git-diff/lib/helpers.js
Ruby Allison Rose 967d63bb5e fix(git-diff): Now targets the closest parent repo to the open file.
Initial fix to `helpers` done by Utkarsh, Spec written by me.
Co-authored-by: Utkarsh Gupta <utkarshgupta137@gmail.com>
2022-01-02 16:38:49 -08:00

10 lines
202 B
JavaScript

'use babel';
import { Directory } from 'atom';
export default async function(goalPath) {
if (goalPath) {
return atom.project.repositoryForDirectory(new Directory(goalPath));
}
return null;
}