Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / test / test-79-npm / nodegit / nodegit.js
305 bytesRaw
1 | ; |
2 | |
3 | var NodeGit = require('nodegit'); |
4 | var Diff = NodeGit.Diff; |
5 | |
6 | NodeGit.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