Skip to content

Latest commit

 

History

History
103 lines (81 loc) · 2.84 KB

File metadata and controls

103 lines (81 loc) · 2.84 KB
layout default
menu_item api
title AnnotatedCommit
description Version 0.19.0
return_to
API Documentation Index
/api/
sections
fromFetchhead fromRef fromRevspec lookup #free #id
#fromFetchhead
#fromRef
#fromRevspec
#lookup
#free
#id

AnnotatedCommit.fromFetchhead Async

AnnotatedCommit.fromFetchhead(repo, branch_name, remote_url, id).then(function(annotatedCommit) {
  // Use annotatedCommit
});
Parameters Type
repo Repository repository that contains the given commit
branch_name String name of the (remote) branch
remote_url String url of the remote
id Oid the commit object id of the remote branch
Returns
AnnotatedCommit

AnnotatedCommit.fromRef Async

AnnotatedCommit.fromRef(repo, ref).then(function(annotatedCommit) {
  // Use annotatedCommit
});
Parameters Type
repo Repository repository that contains the given reference
ref Reference reference to use to lookup the git_annotated_commit
Returns
AnnotatedCommit

AnnotatedCommit.fromRevspec Async

AnnotatedCommit.fromRevspec(repo, revspec).then(function(annotatedCommit) {
  // Use annotatedCommit
});
Parameters Type
repo Repository repository that contains the given commit
revspec String the extended sha syntax string to use to lookup the commit
Returns
AnnotatedCommit

AnnotatedCommit.lookup Async

AnnotatedCommit.lookup(repo, id).then(function(annotatedCommit) {
  // Use annotatedCommit
});
Parameters Type
repo Repository repository that contains the given commit
id Oid the commit object id to lookup
Returns
AnnotatedCommit

AnnotatedCommit#free Sync

annotatedCommit.free();

AnnotatedCommit#id Sync

var oid = annotatedCommit.id();
Returns
Oid commit id