libgit2

git_tree_entry_set_id

Version:

Change the SHA1 id of a tree entry.

This will mark the tree that contains the entry as modified; the modified entry will be written back to disk on the next git_object_write()

Signature

void git_tree_entry_set_id(git_tree_entry *entry, const git_oid *oid);

Parameters

git_tree_entry *
In
entry

Entry object which will be modified

const git_oid *
In
oid

new SHA1 oid for the entry

Versions