Learn R Programming

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

git2r (version 0.23.0)

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

91,752

Version

0.23.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Widgren

Last Published

July 17th, 2018

Functions in git2r (0.23.0)

cred_env

Create a new environmental credential object
branch_set_upstream

Set remote tracking branch
commits

Commits
diff.git_repository

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

Determine the sha from a blob string
cred_ssh_key

Create a new passphrase-protected ssh key credential object
discover_repository

Find path to repository for any file
cred_user_pass

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

Create a new personal access token credential object
length.git_diff

Number of files in git_diff object
index_remove_bypath

Remove an index entry corresponding to a file on disk
hashfile

Determine the sha from a blob in a file
is_local

Check if branch is local
init

Init a repository
length.git_tree

Number of entries in tree
content

Content of blob
default_signature

Get the signature
is_merge

Is merge
contributions

Contributions
odb_objects

List all objects available in the database
odb_blobs

Blobs in the object database
git2r

git2r: R bindings to the libgit2 library
config

Config
plot.git_repository

Plot commits over time
stash_list

List stashes in repository
stash_drop

Drop stash
git_config_files

Locate the path to configuration files
parents

Parents
is_empty

Check if repository is empty
head.git_repository

Get HEAD for a repository
descendant_of

Descendant
tag

Create tag targeting HEAD commit in repository
lookup

Lookup
ls_tree

List the contents of a tree object
tag_delete

Delete an existing tag reference
is_head

Check if branch is head
fetch_heads

Get updated heads during the last fetch.
is_shallow

Determine if the repository is a shallow clone
fetch

Fetch new data and update tips
in_repository

Determine if a directory is in a git repository
is_commit

Check if object is a git_commit object
note_remove

Remove the note for an object
is_tree

Check if object is S3 class git_tree
is_blob

Check if object is S3 class git_blob
notes

List notes
is_bare

Check if repository is bare
is_branch

Check if object is git_branch
is_binary

Is blob binary
last_commit

Last commit
is_detached

Check if HEAD of repository is detached
libgit2_features

Compile time options for libgit2.
libgit2_version

Version of the libgit2 library
reflog

List and view reflog information
repository

Open a repository
merge.git_branch

Merge a branch into HEAD
length.git_blob

Size in bytes of the contents of a blob
remote_add

Add a remote to a repo
remote_rename

Rename a remote
merge_base

Find a merge base between two commits
push

Push
punch_card

Punch card
stash_pop

Pop stash
remote_set_url

Set the remote's url in the configuration
stash

Stash
repository_head

Get HEAD for a repository
status

Status
when

When
stash_apply

Apply stash
tags

Tags
note_default_ref

Default notes reference
tree

Tree
note_create

Add note for a object
print.git_reflog_entry

Print a reflog entry
revparse_single

Revparse
reset

Reset current HEAD to the specified state
reexports

Objects exported from other packages
pull

Pull
remote_ls

List references in a remote repository
references

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

Get the remote url for remotes in a repo
workdir

Workdir of repository
remote_remove

Remove a remote
summary.git_stash

Summary of a stash
summary.git_tree

Summary of tree
remotes

Get the configured remotes for a repo
rm_file

Remove files from the working tree and from the index
sha

Get the SHA-1 of a git object
ssh_path

Compose usual path to ssh keys
ssl_cert_locations

Set the SSL certificate-authority locations
[.git_tree

Extract object from tree
summary.git_repository

Summary of repository
as.list.git_tree

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

Get blame for file
branch_target

Get target (sha) pointed to by a branch
branches

Branches
add

Add file(s) to index
ahead_behind

Ahead Behind
bundle_r_package

Bundle bare repo of package
checkout

Checkout
blob_create

Create blob from file on disk
branch_create

Create a branch
as.data.frame.git_repository

Coerce Git repository to a data.frame
as.data.frame.git_tree

Coerce entries in a git_tree to a data.frame
branch_rename

Rename a branch
branch_delete

Delete a branch
branch_get_upstream

Get remote tracking branch
branch_remote_name

Remote name of a branch
branch_remote_url

Remote url of a branch
clone

Clone a remote repository
commit

Commit