commit {gitr}R Documentation

Git Commit Utilities

Description

Git Commit Utilities

Usage

get_commit_msgs(sha = NULL, n = 1)

scrape_commits(n)

git_unstage(file = NULL)

git_reset_soft(n = 1)

git_uncommit()

git_reset_hard()

git_diffcommits(top = 1, n = 2)

Arguments

sha

Character. The commit SHA-1 hash to pull messages from. If NULL, the most recent commit on the current branch.

n

Numeric. How far back to go from current HEAD. Same as the command line ⁠git log -n⁠ parameter. For ⁠git stash⁠ commands, zero-index into the stash list.

file

Character. The path name to a file.

top

Numeric. The commit to consider the "top" of the commit stack. Defaults to HEAD or n = 1.

Value

NULL ... invisibly.

A list containing commit message entries. The sha and author of each commit is added as attributes.

Functions


[Package gitr version 0.0.1 Index]