Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 1.52 KB

File metadata and controls

57 lines (46 loc) · 1.52 KB
layout default
menu_item api
title Revparse
description Version 0.19.0
return_to
API Documentation Index
/api/
sections
ext single MODE
#ext
#single
#MODE

Revparse.ext Sync

var result = Revparse.ext(object_out, reference_out, repo, spec);
Parameters Type
object_out Object pointer to output object
reference_out Reference pointer to output reference or NULL
repo Repository the repository to search in
spec String the textual specification for an object
Returns
Number 0 on success, GIT_ENOTFOUND, GIT_EAMBIGUOUS, GIT_EINVALIDSPEC
or an error code

Revparse.single Async

Revparse.single(repo, spec).then(function(object) {
  // Use object
});
Parameters Type
repo Repository the repository to search in
spec String the textual specification for an object
Returns
Object

Revparse.MODE ENUM

| Flag | Value | | --- | --- | --- | | Revparse.MODE.SINGLE | 1 | | Revparse.MODE.RANGE | 2 | | Revparse.MODE.MERGE_BASE | 4 |