repositories: Helper Functions for Managing Local Git Repositories

repositoriesR Documentation

Helper Functions for Managing Local Git Repositories

Description

Helper functions for managing local git repositories.

Usage

find_git(path = ".", tilde = TRUE, max.char, ...)
fetch_git_info(path, ...)

Arguments

path

character

tilde

logical: do tilde expansion through path.expand?

max.char

NA or integer: if the latter, filepaths longer than max.char are excluded. (Necessary for operating systems that impose maximum path lengths.)

...

other arguments

Details

Find git repositories, i.e. directories with name .git.

Value

a character vector for find_git, a data.frame for fetch_git_info

Author(s)

Enrico Schumann

See Also

the git2r package

Examples


path <- "~/Packages"
repos <- find_git(path)
fetch_git_info(repos)[, c("path", "clean", "remote_urls")]


enricoschumann/esutils documentation built on Feb. 2, 2024, 10:03 a.m.