You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If not NULL, name of the reference that will be updated to point to this commit. If the reference is not direct, it will be resolved to a direct reference. Use "HEAD" to update the HEAD of the current branch and make it point to this commit. If the reference doesn't exist yet, it will be created. If it does exist, the first parent must be the tip of this branch.
Signature with committer and * commit time of commit
message_encoding
String
The encoding for the message in the commit, represented with a standard encoding name. E.g. "UTF-8". If NULL, no encoding header is written and UTF-8 is assumed.
An instance of a git_tree object that will be used as the tree for the commit. This tree object must also be owned by the given repo.
parent_count
Number
Number of parents for this commit
parents
Array
Array of parent_count pointers to git_commit objects that will be used as the parents for this commit. This array may be NULL if parent_count is 0 (root commit). All the given commits must be owned by the repo.
vareventEmitter=commit.history();eventEmitter.on('commit',function(commit){// Use commit});eventEmitter.on('end',function(commits){// Use commits});eventEmitter.on('error',function(error){// Use error});eventEmitter.start()
Walk the history from this commit backwards.
An EventEmitter is returned that will emit a "commit" event for each
commit in the history, and one "end" event when the walk is completed.
Don't forget to call start() on the returned event.