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
+17
View File
@@ -0,0 +1,17 @@
"use strict";
var util = require("util");
var NodeGit = require("../");
// Deprecated -----------------------------------------------------------------
// In 0.28.0 git_error was majorly refactored to have better naming in libgit2
// We will continue to support the old enum entries but with a deprecation
// warning as they will go away soon.
Object.keys(NodeGit.Error.CODE).forEach(function (key) {
Object.defineProperty(NodeGit.Error.CODE, "GITERR_" + key, {
get: util.deprecate(function () {
return NodeGit.Error.CODE[key];
}, "Use NodeGit.Error.CODE." + key + " instead of " + ("NodeGit.Error.CODE.GETERR_" + key + "."))
});
});