ghc_repos_run_git_command: Run a git command

View source: R/commands.R

ghc_repos_run_git_commandR Documentation

Run a git command

Description

Generic function to run a git command in a number of repositories with the same prefix (typically those form the same assignment).

Usage

ghc_repos_run_git_command(prefix, command, folder = ".")

Arguments

prefix

repository prefix (typically this would be a github classroom assignment prefix)

command

a git command ("git" prefix will be automatically added if not present)

folder

the target directory where to look for matching git repositories (searches recursively in all subdirectories)

Value

returns the prefix invisibly to facilitate piping

See Also

Other command functions: ghc_repos_copy_to(), ghc_repos_git_add(), ghc_repos_git_clone(), ghc_repos_git_commit(), ghc_repos_git_create_branch(), ghc_repos_git_delete_branch(), ghc_repos_git_discard_changes(), ghc_repos_git_pull(), ghc_repos_git_push(), ghc_repos_git_remove(), ghc_repos_git_status(), ghc_repos_git_switch_branch()


KopfLab/ghctools documentation built on Feb. 20, 2023, 9:25 a.m.