git_reflog_entry_byindex

Lookup an entry by its index

Requesting the reflog entry with an index of 0 (zero) will return the most recently created entry.

extern (C) nothrow @nogc
git_reflog_entry_byindex

Parameters

reflog const(libgit2_d.types.git_reflog)*

a previously loaded reflog

idx size_t

the position of the entry to lookup. Should be greater than or equal to 0 (zero) and less than git_reflog_entrycount().

Return Value

Type: const(libgit2_d.types.git_reflog_entry)*

the entry; null if not found

Meta