Initial commit - full huishou project

This commit is contained in:
jiapengyu
2026-07-27 14:07:26 +08:00
commit 60790ad1b3
39127 changed files with 5989265 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
"use strict";
var NodeGit = require("../");
var normalizeOptions = NodeGit.Utils.normalizeOptions;
var Status = NodeGit.Status;
var _foreach = Status.foreach;
var _foreachExt = Status.foreachExt;
// Override Status.foreach to eliminate the need to pass null payload
Status.foreach = function (repo, callback) {
return _foreach(repo, callback, null);
};
// Override Status.foreachExt to normalize opts
Status.foreachExt = function (repo, opts, callback) {
opts = normalizeOptions(opts, NodeGit.StatusOptions);
return _foreachExt(repo, opts, callback, null);
};