Learn R Programming

⚠️There's a newer version (0.36.2) of this package.Take me there.

git2r (version 0.30.1)

Provides Access to Git Repositories

Description

Interface to the 'libgit2' library, which is a pure C implementation of the 'Git' core methods. Provides access to 'Git' repositories to extract data and running some basic 'Git' commands.

Copy Link

Version

Install

install.packages('git2r')

Monthly Downloads

43,413

Version

0.30.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Widgren

Last Published

March 16th, 2022

Functions in git2r (0.30.1)

branch_create

Create a branch
blob_create

Create blob from file on disk
clone

Clone a remote repository
commit

Commit
branch_delete

Delete a branch
branch_get_upstream

Get remote tracking branch
bundle_r_package

Bundle bare repo of package
checkout

Checkout
as.data.frame.git_tree

Coerce entries in a git_tree to a data.frame
branch_set_upstream

Set remote tracking branch
branch_rename

Rename a branch
commits

Commits
default_signature

Get the signature
branch_remote_url

Remote url of a branch
branch_remote_name

Remote name of a branch
cred_token

Create a new personal access token credential object
git_time

Time
cred_user_pass

Create a new plain-text username and password credential object
config

Config
head.git_repository

Get HEAD for a repository
is_tree

Check if object is S3 class git_tree
hashfile

Determine the sha from a blob in a file
is_tag

Check if object is a git_tag object
content

Content of blob
merge_base

Find a merge base between two commits
is_binary

Is blob binary
is_blob

Check if object is S3 class git_blob
hash

Determine the sha from a blob string
note_create

Add note for a object
lookup

Lookup
is_detached

Check if HEAD of repository is detached
is_empty

Check if repository is empty
contributions

Contributions
descendant_of

Descendant
fetch

Fetch new data and update tips
fetch_heads

Get updated heads during the last fetch.
lookup_commit

Lookup the commit related to a git object
remote_rename

Rename a remote
remote_remove

Remove a remote
init

Init a repository
push

Push
diff.git_repository

Changes between commits, trees, working tree, etc.
is_local

Check if branch is local
merge.git_branch

Merge a branch into HEAD
is_head

Check if branch is head
ls_tree

List the contents of a tree object
ssl_cert_locations

Set the SSL certificate-authority locations
sha

Get the SHA-1 of a git object
reexports

Objects exported from other packages
ssh_path

Compose usual path to ssh keys
stash_list

List stashes in repository
stash_pop

Pop stash
stash

Stash
is_branch

Check if object is git_branch
is_merge

Is merge
discover_repository

Find path to repository for any file
is_commit

Check if object is a git_commit object
references

Get all references that can be found in a repository.
odb_objects

List all objects available in the database
parents

Parents
reflog

List and view reflog information
stash_apply

Apply stash
stash_drop

Drop stash
is_bare

Check if repository is bare
blame

Get blame for file
branch_target

Get target (sha) pointed to by a branch
as.list.git_tree

Coerce entries in a git_tree to a list of entry objects
git2r

git2r: R bindings to the libgit2 library
cred_env

Create a new environmental credential object
cred_ssh_key

Create a new passphrase-protected ssh key credential object
branches

Branches
length.git_blob

Size in bytes of the contents of a blob
last_commit

Last commit
notes

List notes
summary.git_repository

Summary of repository
git_config_files

Locate the path to configuration files
summary.git_stash

Summary of a stash
workdir

Workdir of repository
note_default_ref

Default notes reference
plot.git_repository

Plot commits over time
is_shallow

Determine if the repository is a shallow clone
note_remove

Remove the note for an object
print.git_reflog_entry

Print a reflog entry
remote_url

Get the remote url for remotes in a repo
reset

Reset current HEAD to the specified state
repository_head

Get HEAD for a repository
remote_set_url

Set the remote's url in the configuration
tag_delete

Delete an existing tag reference
in_repository

Determine if a directory is in a git repository
length.git_diff

Number of files in git_diff object
libgit2_features

Compile time options for libgit2.
length.git_tree

Number of entries in tree
index_remove_bypath

Remove an index entry corresponding to a file on disk
odb_blobs

Blobs in the object database
remote_ls

List references in a remote repository
remote_add

Add a remote to a repo
tags

Tags
pull

Pull
punch_card

Punch card
libgit2_version

Version of the libgit2 library
repository

Open a repository
remotes

Get the configured remotes for a repo
revparse_single

Revparse
[.git_tree

Extract object from tree
status

Status
rm_file

Remove files from the working tree and from the index
when

When
tag

Create tag targeting HEAD commit in repository
summary.git_tree

Summary of tree
tree

Tree
ahead_behind

Ahead Behind
add

Add file(s) to index
as.data.frame.git_repository

Coerce Git repository to a data.frame