Skip to content

Commit 4be44a2

Browse files
committed
Structure in like manner to git-chrome-fs
1 parent a5eb744 commit 4be44a2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

git-node-fs.js renamed to lib/node-fs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,3 @@ function readDir(path, callback) {
8484
}
8585
});
8686
}
87-

mixins/fs-db.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var fsDb = require('js-git/mixins/fs-db');
2+
var nodeFs = require('../lib/node-fs');
3+
4+
module.exports = function (repo, rootPath) {
5+
repo.rootPath = rootPath;
6+
fsDb(repo, nodeFs);
7+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"js-git"
77
],
88
"version": "0.0.0",
9-
"main": "git-node-fs.js",
9+
"main": "lib/node-fs.js",
1010
"scripts": {
1111
"test": "node test.js"
1212
},

0 commit comments

Comments
 (0)