Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions node/lib/util/diff_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ function readDiff(diff) {
continue;
}

// Skip the all submodule changes; they're handled separately.
if (NodeGit.TreeEntry.FILEMODE.COMMIT !== file.mode()) {
result[path] = fileStatus;
}
result[path] = fileStatus;
}
return result;
}
Expand Down
5 changes: 1 addition & 4 deletions node/lib/util/print_status_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ exports.listSubmoduleDescriptors = function (status) {
// If it's been removed, there's nothing more to add.

if (null === index) {
staged.push(new StatusDescriptor(FILESTATUS.REMOVED,
subName,
"submodule"));
// Should have a "removed" status from parent repo
return; // RETURN
}

Expand All @@ -232,7 +230,6 @@ exports.listSubmoduleDescriptors = function (status) {
let stagedStatus = FILESTATUS.MODIFIED; // other choice is `ADDED`

if (sub.isNew()) {
stagedDetail += ", newly created";
stagedStatus = FILESTATUS.ADDED;
}

Expand Down
2 changes: 1 addition & 1 deletion node/lib/util/status_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ exports.getRepoStatus = co.wrap(function *(repo, options) {
assert.isArray(options.paths);
}
if (undefined === options.showMetaChanges) {
options.showMetaChanges = false;
options.showMetaChanges = true;
}
else {
assert.isBoolean(options.showMetaChanges);
Expand Down