get_commits_tags: Get commits associated chronologically with tags

View source: R/get_commits.R

get_commits_tagsR Documentation

Get commits associated chronologically with tags

Description

Get commits associated chronologically with tags

Usage

get_commits_tags(repo = ".", ref = "main", path = NULL, silent = FALSE)

Arguments

repo

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

ref

The name of a reference to list commits from e.g. a tag or a branch. The default is NULL for the current branch.

path

The path to a file. If not NULL, only commits modifying this file will be returned. Note that modifying commits that occurred before the file was given its present name are not returned; that is, the output of git log with --no-follow is reproduced.

silent

Logical. Whether to hide messages.

Value

A tibble with one line for each commit and the following columns:

  • sha: sha of the commit

  • summary: First line of the commit message

  • message: Full content of the commit message

  • author: author of the commit

  • email: email of the author

  • when: commit time

  • order: order of commit messages. 1 is the oldest.

  • tag.name: name of tag associated with all commits since the last tag

  • tag.message: message of the tagged commit

Examples

repo <- fake_repo()
get_commits_tags(repo = repo)

gitdown documentation built on March 18, 2022, 6:01 p.m.