Skip to content

Commit 93f3ce0

Browse files
committed
Move status list creation to async
Creation can take some time on large repos
1 parent 80ec4b3 commit 93f3ce0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

generate/input/descriptor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@
15751575
"status_list": {
15761576
"functions": {
15771577
"git_status_list_new": {
1578-
"isAsync": false,
1578+
"isAsync": true,
15791579
"args": {
15801580
"opts": {
15811581
"isOptional": true

test/tests/status_list.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ describe("StatusList", function() {
3838
Status.OPT.RECURSE_UNTRACKED_DIRS
3939
};
4040

41-
var list = StatusList.create(repo, opts);
41+
return StatusList.create(repo, opts);
42+
})
43+
.then(function(list) {
4244
assert.equal(list.entrycount(), 1);
4345

4446
for (var i = 0; i < list.entrycount(); i++) {

0 commit comments

Comments
 (0)