Learn R Programming

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

git2r (version 0.7)

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

68,353

Version

0.7

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Widgren

Last Published

February 23rd, 2015

Functions in git2r (0.7)

commit

Commit
cred_ssh_key-class

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

Rename a remote
git_commit-class

S4 class to handle a git commit.
merge,git_repository,character-method

Merge a branch into HEAD
tag

Create tag targeting HEAD commit in repository
branch_remote_url

Remote url of a branch
commits

Commits
pull

Pull
git_blame_hunk-class

S4 class to represent a blame hunk
branches

Branches
merge_branch

Merge branch into HEAD
is_bare

Check if repository is bare
reset

Reset current HEAD to the specified state
branch_get_upstream

Get remote tracking branch
branch_set_upstream

Set remote tracking branch
git_stash-class

S4 class to handle a git stash
git_blob-class

S4 class to handle a git blob
coerce-git_tree-list-method

Coerce entries in a git_tree to a list of entry objects
summary,git_stash-method

Summary of a stash
git_diff_hunk-class

Git diff hunk
git_tree-class

S4 class to handle a git tree
blob_create

Create blob from file on disk
coerce-git_repository-method

Coerce Git repository to a data.frame
branch_create

Create a branch
cred_user_pass-class

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

Blobs in the object database
checkout_reflog_msg

Internal function to generate checkout reflog message
content

Content of blob
show,git_tag-method

Brief summary of a tag
is_merge

Is merge
note_create

Add note for a object
git_tag-class

S4 class to handle a git tag
remotes

Get the configured remotes for a repo
merge_named_branch

Merge named branch into HEAD
hash

Determine the sha from a blob string
status

Status
is_binary

Is blob binary
git2r

git2r: R bindings to the libgit2 library
init

Init a repository
note_default_ref

Default notes reference
workdir

Workdir of repository
branch_rename

Rename a branch
git_time-class

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

S4 class to handle a git note
notes

List notes
libgit2_features

Compile time options for libgit2.
lookup

Lookup
stash_list

List stashes in repository
git_fetch_head-class

S4 class to handle a fetch head
is_head

Check if branch is head
remote_remove

Remove a remote
branch_delete

Delete a branch
show,git_time-method

Brief summary of git_time
stash

Stash
is_blob

Check if object is S4 class git_blob
show,git_reference-method

Brief summary of reference
show,git_tree-method

Brief summary of tree
show,git_commit-method

Brief summary of commit
show,git_diff-method

Show a diff
references

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

Parents
checkout

Checkout
summary,git_diff-method

Show the summary of a diff
display_status

Display status
is_local

Check if branch is local
summary,git_blob-method

Summary of blob
remote_add

Add a remote to a repo
summary,git_tag-method

Summary of a tag
fetch_heads

Get updated heads during the last fetch.
show,git_stash-method

Brief summary of a stash
reflog

List and view reflog information
is_detached

Check if HEAD of repository is detached
show,git_repository-method

Brief summary of repository
show,git_branch-method

Brief summary of branch
git_branch-class

S4 class to handle a git branch
summary,git_commit-method

Summary of commit
git_signature-class

S4 class to handle a git signature
when

When
merge_base

Find a merge base between two commits
repository

Open a repository
cred_user_pass

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

Remove the note for an object
odb_objects

List all objects available in the database
git_diff_file-class

Git diff file
summary,git_tree-method

Summary of tree
show,git_note-method

Brief summary of note
summary,git_repository-method

Summary of repository
coerce-git_tree-data.frame-method

Coerce entries in a git_tree to a data.frame
length,git_blob-method

Size in bytes of the contents of a blob
stash_drop

Drop stash
contributions

Contributions
blame

Get blame for file
libgit2_version

Version of the libgit2 library being currently used
length,git_tree-method

Number of entries in tree
git_merge_result-class

S4 class to handle the merge result
git_reference-class

S4 class to handle a git reference
is_shallow

Determine if the repository was a shallow clone
fetch

Fetch new data and update tips
is_empty

Check if repository is empty
git_reflog_entry-class

S4 class to handle a git reflog entry.
length,git_diff-method

Number of files in git_diff object
hashfile

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

Git diff line
is_commit

Check if object is S4 class git_commit
show,git_signature-method

Brief summary of signature
default_signature

Get the signature
ahead_behind

Ahead Behind
branch_remote_name

Remote name of a branch
discover_repository

Find path to repository for any file
git_transfer_progress-class

Class "git_transfer_progress"
remote_url

Get the remote url for remotes in a repo
tree

Tree
clone

Clone a remote repository
branch_target

Get target (sha) pointed to by a branch
tags

Tags
add

Add file(s) to index
config

Config
descendant_of

Descendant
diff,git_repository-method

Changes between commits, trees, working tree, etc.
git_diff-class

Git diff
git_blame-class

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

S4 class to handle a git repository
push

Push
show,git_blob-method

Brief summary of blob
[,git_tree,integer,missing-method

Extract object from tree
head,git_repository-method

Get HEAD for a repository
show,git_merge_result-method

Brief summary of merge result
cred_ssh_key

Create a new passphrase-protected ssh key credential object
show,git_reflog_entry-method

Brief summary of a reflog entry