Skip to contents

Returns the Git tree id (SHA) for the specified directory. Works even when called from a subdirectory of the repository.

Usage

git_get_tree_id(dir = ".")

Arguments

dir

Path to the directory whose tree id should be retrieved.

Value

Character scalar with the tree id.

Examples

if (FALSE) { # \dontrun{
git_get_tree_id("packages/g6tr.docs")
} # }