Skip to content

Commit

Permalink
Merge pull request twosigma#871 from anglee/master
Browse files Browse the repository at this point in the history
Use 'PrintStatusUtil' in cmd/add
  • Loading branch information
tsiq-shu authored Oct 20, 2022
2 parents 1f923c4 + 23f7069 commit 5676c75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/lib/cmd/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ exports.executeableSubcommand = co.wrap(function *(args) {
const Add = require("../util/add");
const GitUtil = require("../util/git_util");
const StatusUtil = require("../util/status_util");
const PrintStatusUtil = require("../util/print_status_util");

const repo = yield GitUtil.getCurrentRepo();
const workdir = repo.workdir();
Expand All @@ -111,7 +112,7 @@ exports.executeableSubcommand = co.wrap(function *(args) {
untrackedFilesOption: args.untrackedFilesOption
});

const fileStatuses = exports.accumulateStatus(repoStatus);
const fileStatuses = PrintStatusUtil.accumulateStatus(repoStatus);
const workdirChanges = fileStatuses.workdir;
userPaths = workdirChanges.map(workdirChange => {
return workdirChange.path;
Expand Down

0 comments on commit 5676c75

Please sign in to comment.