note_default_ref: Default notes reference

View source: R/note.R

note_default_refR Documentation

Default notes reference

Description

Get the default notes reference for a repository

Usage

note_default_ref(repo = ".")

Arguments

repo

a path to a repository or a git_repository object. Default is '.'

Value

Character vector of length one with name of default notes reference

Examples

## Not run: 
## 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)

## End(Not run)

git2r documentation built on Oct. 21, 2024, 1:06 a.m.