Learn R Programming

githug (version 0.0.0.9000)

git_HEAD: Get HEAD for a repository

Description

Convenience wrapper around head-methods from git2r.

Usage

git_HEAD(repo = ".")

Arguments

repo
Path to a Git repo. If unspecified, current working directory is checked to see if it is or is inside a Git repo.

Value

A list with components:
or NULL if HEAD does not exist.

Examples

Run this code
repo <- git_init(tempfile("githug-"))
git_HEAD(repo = repo)

Run the code above in your browser using DataLab