git_prev_commits: Return the last n commit hashes of a git repository

Description Usage Arguments Value

Description

Return the last n commit hashes of a git repository

Usage

1
2
git_prev_commits(dir = ".", n = 20, start = "", all = FALSE,
  main_branch = TRUE)

Arguments

dir

directory containing the git repository.

n

number of commit hashes to return. If NULL return all commits.

start

the commit to search backward from.

all

if TRUE return all commits including ones not on current branch (like git log --all).

main_branch

Don't show commits on branches that were merged in. This probably won't work correctly with all=TRUE.

Value

a character vector of commit hashes, or an empty vector if there was a problem executing the git command.


wch/vtest documentation built on May 4, 2019, 2:02 a.m.