Learn R Programming

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

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

66,053

Version

0.21.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Widgren

Last Published

January 4th, 2018

Functions in git2r (0.21.0)

coerce-git_tree-list-method

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

Commit
diff,git_repository-method

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

Find path to repository for any file
git_blame-class

S4 class to handle a git blame for a single file
git_blame_hunk-class

S4 class to represent a blame hunk
git_diff_line-class

Git diff line
git_fetch_head-class

S4 class to handle a fetch head
in_repository

Determine if a directory is in a git repository
index_remove_bypath

Remove an index entry corresponding to a file on disk
is_head

Check if branch is head
is_local

Check if branch is local
libgit2_sha

SHA of the libgit2 library
libgit2_version

Version of the libgit2 library
note_remove

Remove the note for an object
branch_remote_name

Remote name of a branch
branch_remote_url

Remote url of a branch
bundle_r_package

Bundle bare repo of package
checkout

Checkout
cred_env-class

S4 class to handle environmental variables credential object
cred_env

Create a new environmental credential object
notes

List notes
push

Push
references

Get all references that can be found in a repository.
show,git_commit-method

Brief summary of commit
show,git_diff-method

Show a diff
show,git_reference-method

Brief summary of reference
show,git_reflog_entry-method

Brief summary of a reflog entry
default_signature

Get the signature
descendant_of

Descendant
git_commit-class

S4 class to handle a git commit.
git_diff-class

Git diff
is_merge

Is merge
is_shallow

Determine if the repository was a shallow clone
lookup

Lookup
lookup_repository

Lookup repository for methods with missing repo argument
remote_ls

List references in a remote repository
remote_remove

Remove a remote
remote_url

Get the remote url for remotes in a repo
remotes

Get the configured remotes for a repo
show,git_stash-method

Brief summary of a stash
summary,git_blob-method

Summary of blob
summary,git_commit-method

Summary of commit
summary,git_tree-method

Summary of tree
tag

Create tag targeting HEAD commit in repository
ahead_behind

Ahead Behind
blame

Get blame for file
coerce-git_repository-method

Coerce Git repository to a data.frame
coerce-git_tree-data.frame-method

Coerce entries in a git_tree to a data.frame
commits

Commits
config

Config
cred_token-class

S4 class to handle a personal access token credential object
cred_token

Create a new personal access token credential object
git_blob-class

S4 class to handle a git blob
git_branch-class

S4 class to handle a git branch
git_stash-class

S4 class to handle a git stash
show,git_tag-method

Brief summary of a tag
stash

Stash
stash_drop

Drop stash
when

When
workdir

Workdir of repository
git_tag-class

S4 class to handle a git tag
git_time-class

S4 class to handle a git time in a signature
git_transfer_progress-class

Class "git_transfer_progress"
is_binary

Is blob binary
is_blob

Check if object is S4 class git_blob
note_create

Add note for a object
note_default_ref

Default notes reference
remote_rename

Rename a remote
remote_set_url

Set the remote's url in the configuration
show,git_time-method

Brief summary of git_time
show,git_tree-method

Brief summary of tree
summary,git_diff-method

Show the summary of a diff
summary,git_repository-method

Summary of repository
branch_delete

Delete a branch
branch_get_upstream

Get remote tracking branch
clone

Clone a remote repository
coerce-git_commit-method

Coerce a commit to a data.frame
content

Content of blob
contributions

Contributions
cred_user_pass-class

S4 class to handle plain-text username and password credential object
cred_user_pass

Create a new plain-text username and password credential object
git_repository-class

S4 class to handle a git repository
git_signature-class

S4 class to handle a git signature
git_tree-class

S4 class to handle a git tree
hash

Determine the sha from a blob string
is_detached

Check if HEAD of repository is detached
is_empty

Check if repository is empty
length,git_blob-method

Size in bytes of the contents of a blob
length,git_diff-method

Number of files in git_diff object
odb_blobs

Blobs in the object database
odb_objects

List all objects available in the database
revparse_single

Revparse
rm_file

Remove files from the working tree and from the index
show,git_merge_result-method

Brief summary of merge result
show,git_note-method

Brief summary of note
ssh_key_needs_passphrase

Check if private key is passphrase protected
ssl_cert_locations

Set the SSL certificate-authority locations
[,git_tree,integer,missing-method

Extract object from tree
tree

Tree
blob_create

Create blob from file on disk
branch_create

Create a branch
branch_target

Get target (sha) pointed to by a branch
branches

Branches
cred_ssh_key-class

S4 class to handle a passphrase-protected ssh key credential object
cred_ssh_key

Create a new passphrase-protected ssh key credential object
get_refspec

Create push refspec from arguments
git2r

git2r: R bindings to the libgit2 library
git_reference-class

S4 class to handle a git reference
git_reflog_entry-class

S4 class to handle a git reflog entry.
init

Init a repository
is_bare

Check if repository is bare
is_branch

Check if object is S4 class git_branch
is_commit

Check if object is S4 class git_commit
length,git_tree-method

Number of entries in tree
libgit2_features

Compile time options for libgit2.
parents

Parents
plot,git_repository-method

Plot commits over time
reflog

List and view reflog information
remote_add

Add a remote to a repo
show,git_blob-method

Brief summary of blob
show,git_branch-method

Brief summary of branch
show,git_repository-method

Brief summary of repository
show,git_signature-method

Brief summary of signature
tag_delete

Delete an existing tag reference
tags

Tags
add

Add file(s) to index
add_session_info

Add sessionInfo to message
branch_rename

Rename a branch
branch_set_upstream

Set remote tracking branch
fetch

Fetch new data and update tips
fetch_heads

Get updated heads during the last fetch.
git_diff_file-class

Git diff file
git_note-class

S4 class to handle a git note
git_diff_hunk-class

Git diff hunk
hashfile

Determine the sha from a blob in a file
git_merge_result-class

S4 class to handle the merge result
head,git_repository-method

Get HEAD for a repository
merge,git_repository,character-method

Merge a branch into HEAD
merge_base

Find a merge base between two commits
merge_named_branch

Merge named branch into HEAD
merge_branch

Merge branch into HEAD
pull

Pull
punch_card

Punch card
repository

Open a repository
reset

Reset current HEAD to the specified state
stash_list

List stashes in repository
status

Status
summary,git_stash-method

Summary of a stash
summary,git_tag-method

Summary of a tag