git ssb

0+

cel-desktop / ssb-pkg



Tree: efcf9fd06b02fa9bcd28681b4c777224e19702bb

Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / test / test-79-npm / nodegit / nodegit.js

305 bytesRaw
1'use strict';
2
3var NodeGit = require('nodegit');
4var Diff = NodeGit.Diff;
5
6NodeGit.Repository.init('./', 0).then(function (repo) {
7 return Diff.indexToWorkdir(repo, null, {
8 flags: Diff.OPTION.INCLUDE_UNTRACKED | Diff.OPTION.RECURSE_UNTRACKED_DIRS
9 });
10}).then(function () {
11 console.log('ok');
12});
13

Built with git-ssb-web