Skip to content

Commit 395602e

Browse files
committed
Move reflog entry methods to ReflogEntry
1 parent 51a760c commit 395602e

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

generate/input/libgit2-supplement.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,15 @@
268268
"git_patch_convenient_from_diff"
269269
]
270270
],
271+
[
272+
"reflog_entry",
273+
[
274+
"git_reflog_entry_committer",
275+
"git_reflog_entry_id_new",
276+
"git_reflog_entry_id_old",
277+
"git_reflog_entry_message"
278+
]
279+
],
271280
[
272281
"revwalk",
273282
[
@@ -705,6 +714,14 @@
705714
"git_merge_head_id"
706715
]
707716
},
717+
"reflog": {
718+
"functions": [
719+
"git_reflog_entry_committer",
720+
"git_reflog_entry_id_new",
721+
"git_reflog_entry_id_old",
722+
"git_reflog_entry_message"
723+
]
724+
},
708725
"status": {
709726
"functions": [
710727
"git_status_list_entrycount",

test/tests/commit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,11 @@ describe("Commit", function() {
367367
}).then(function(reflog) {
368368
var reflogEntry = reflog.entryByIndex(0);
369369
assert.equal(
370-
NodeGit.Reflog.entryMessage(reflogEntry),
370+
reflogEntry.message(),
371371
customReflogMessage
372372
);
373373
assert.equal(
374-
NodeGit.Reflog.entryIdNew(reflogEntry).toString(),
374+
reflogEntry.idNew().toString(),
375375
oid
376376
);
377377
// only setTarget should have added to the entrycount

0 commit comments

Comments
 (0)