Learn R Programming

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

git2r (version 0.26.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

66,053

Version

0.26.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Widgren

Last Published

June 29th, 2019

Functions in git2r (0.26.1)

as.data.frame.git_tree

Coerce entries in a git_tree to a data.frame
blob_create

Create blob from file on disk
branch_get_upstream

Get remote tracking branch
add

Add file(s) to index
as.list.git_tree

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

Delete a branch
as.data.frame.git_repository

Coerce Git repository to a data.frame
ahead_behind

Ahead Behind
branch_create

Create a branch
branch_rename

Rename a branch
branch_set_upstream

Set remote tracking branch
branch_remote_name

Remote name of a branch
blame

Get blame for file
branch_remote_url

Remote url of a branch
default_signature

Get the signature
cred_env

Create a new environmental credential object
clone

Clone a remote repository
commit

Commit
is_local

Check if branch is local
cred_ssh_key

Create a new passphrase-protected ssh key credential object
descendant_of

Descendant
content

Content of blob
is_merge

Is merge
note_remove

Remove the note for an object
bundle_r_package

Bundle bare repo of package
cred_token

Create a new personal access token credential object
hashfile

Determine the sha from a blob in a file
branches

Branches
branch_target

Get target (sha) pointed to by a branch
hash

Determine the sha from a blob string
remotes

Get the configured remotes for a repo
odb_objects

List all objects available in the database
notes

List notes
remote_url

Get the remote url for remotes in a repo
odb_blobs

Blobs in the object database
checkout

Checkout
commits

Commits
contributions

Contributions
head.git_repository

Get HEAD for a repository
config

Config
git2r

git2r: R bindings to the libgit2 library
init

Init a repository
last_commit

Last commit
is_tree

Check if object is S3 class git_tree
index_remove_bypath

Remove an index entry corresponding to a file on disk
libgit2_version

Version of the libgit2 library
reflog

List and view reflog information
lookup

Lookup
push

Push
punch_card

Punch card
git_config_files

Locate the path to configuration files
diff.git_repository

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

Fetch new data and update tips
fetch_heads

Get updated heads during the last fetch.
cred_user_pass

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

Add a remote to a repo
is_blob

Check if object is S3 class git_blob
tag_delete

Delete an existing tag reference
tag

Create tag targeting HEAD commit in repository
parents

Parents
is_bare

Check if repository is bare
is_binary

Is blob binary
is_branch

Check if object is git_branch
is_shallow

Determine if the repository is a shallow clone
is_tag

Check if object is a git_tag object
is_empty

Check if repository is empty
in_repository

Determine if a directory is in a git repository
is_head

Check if branch is head
ssh_path

Compose usual path to ssh keys
discover_repository

Find path to repository for any file
stash_pop

Pop stash
ssl_cert_locations

Set the SSL certificate-authority locations
length.git_tree

Number of entries in tree
merge.git_branch

Merge a branch into HEAD
is_commit

Check if object is a git_commit object
is_detached

Check if HEAD of repository is detached
libgit2_features

Compile time options for libgit2.
remote_ls

List references in a remote repository
status

Status
merge_base

Find a merge base between two commits
plot.git_repository

Plot commits over time
length.git_blob

Size in bytes of the contents of a blob
lookup_commit

Lookup the commit related to a git object
repository_head

Get HEAD for a repository
repository

Open a repository
length.git_diff

Number of files in git_diff object
ls_tree

List the contents of a tree object
reexports

Objects exported from other packages
references

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

Remove files from the working tree and from the index
sha

Get the SHA-1 of a git object
stash

Stash
stash_apply

Apply stash
remote_remove

Remove a remote
when

When
workdir

Workdir of repository
note_default_ref

Default notes reference
note_create

Add note for a object
remote_rename

Rename a remote
remote_set_url

Set the remote's url in the configuration
stash_list

List stashes in repository
summary.git_stash

Summary of a stash
stash_drop

Drop stash
print.git_reflog_entry

Print a reflog entry
summary.git_tree

Summary of tree
[.git_tree

Extract object from tree
summary.git_repository

Summary of repository
pull

Pull
revparse_single

Revparse
tags

Tags
reset

Reset current HEAD to the specified state
tree

Tree