git2r (version 0.10.1)

note_default_ref: Default notes reference

Description

Get the default notes reference for a repository

Usage

note_default_ref(repo)

## S3 method for class 'git_repository': note_default_ref(repo)

Arguments

repo
The repository

Value

  • Character vector of length one with name of default notes reference

Examples

Run this code
## Create and initialize a repository in a temporary directory
path <- tempfile(pattern="git2r-")
dir.create(path)
repo <- init(path)
config(repo, user.name="Alice", user.email="alice@example.org")

## View default notes reference
note_default_ref(repo)

Run the code above in your browser using DataLab