layout
default
menu_item
api
title
AnnotatedCommit
description
Version 0.4.0
return_to
API Documentation Index
/api/
sections
fromFetchhead
fromRef
lookup
#free
#id
#fromFetchhead
#fromRef
#lookup
#free
#id
AnnotatedCommit. fromFetchhead Async Experimental
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
AnnotatedCommit. fromRef Async Experimental
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
AnnotatedCommit. lookup Async Experimental
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
AnnotatedCommit# free Sync Experimental
AnnotatedCommit# id Sync Experimental
var oid = annotatedCommit . id ( ) ;