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
+19
View File
@@ -0,0 +1,19 @@
"use strict";
var NodeGit = require("../");
var Note = NodeGit.Note;
var _foreach = Note.foreach;
// Override Note.foreach to eliminate the need to pass null payload
Note.foreach = function (repo, notesRef, callback) {
function wrapperCallback(blobId, objectId) {
// We need to copy the OID since libgit2 types are getting cleaned up
// incorrectly right now in callbacks
return callback(blobId.copy(), objectId.copy());
}
return _foreach(repo, notesRef, wrapperCallback, null);
};