set_commit


Description:

public void set_commit (Commit commit)

Set the index entry to point to a given commit.

This sets the index entry id to the commit id, changes the mode to COMMIT and updates the timestamps to when the commit was made.

Parameters:

this

a IndexEntry.

commit

a Commit.