Learn R Programming

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

67,391

Version

0.35.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 20th, 2024

Functions in git2r (0.35.0)

branch_set_upstream

Set remote tracking branch
default_signature

Get the signature
content

Content of blob
contributions

Contributions
config

Config
commits

Commits
cred_user_pass

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

Get updated heads during the last fetch.
git_config_files

Locate the path to configuration files
diff.git_repository

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

git2r: R bindings to the libgit2 library
cred_token

Create a new personal access token credential object
discover_repository

Find path to repository for any file
fetch

Fetch new data and update tips
descendant_of

Descendant
hash

Determine the sha from a blob string
git_time

Time
in_repository

Determine if a directory is in a git repository
is_detached

Check if HEAD of repository is detached
cred_env

Create a new environmental credential object
head.git_repository

Get HEAD for a repository
hashfile

Determine the sha from a blob in a file
is_binary

Is blob binary
cred_ssh_key

Create a new passphrase-protected ssh key credential object
is_blob

Check if object is S3 class git_blob
init

Init a repository
is_branch

Check if object is git_branch
length.git_diff

Number of files in git_diff object
index_remove_bypath

Remove an index entry corresponding to a file on disk
is_bare

Check if repository is bare
last_commit

Last commit
length.git_blob

Size in bytes of the contents of a blob
length.git_tree

Number of entries in tree
note_default_ref

Default notes reference
is_tree

Check if object is S3 class git_tree
merge.git_branch

Merge a branch into HEAD
push

Push
is_tag

Check if object is a git_tag object
libgit2_features

Compile time options for libgit2.
is_commit

Check if object is a git_commit object
note_remove

Remove the note for an object
ls_tree

List the contents of a tree object
is_shallow

Determine if the repository is a shallow clone
pull

Pull
merge_base

Find a merge base between two commits
libgit2_version

Version of the libgit2 library
note_create

Add note for a object
punch_card

Punch card
is_merge

Is merge
plot.git_repository

Plot commits over time
is_head

Check if branch is head
references

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

Check if branch is local
is_empty

Check if repository is empty
reflog

List and view reflog information
odb_objects

List all objects available in the database
lookup

Lookup
parents

Parents
ssl_cert_locations

Set the SSL certificate-authority locations
remote_add

Add a remote to a repo
stash

Stash
remote_ls

List references in a remote repository
reset

Reset current HEAD to the specified state
repository_head

Get HEAD for a repository
summary.git_tree

Summary of tree
tag

Create tag targeting HEAD commit in repository
workdir

Workdir of repository
sha

Get the SHA-1 of a git object
remote_rename

Rename a remote
remote_remove

Remove a remote
print.git_reflog_entry

Print a reflog entry
reexports

Objects exported from other packages
summary.git_repository

Summary of repository
summary.git_stash

Summary of a stash
remotes

Get the configured remotes for a repo
repository

Open a repository
stash_drop

Drop stash
status

Status
stash_apply

Apply stash
[.git_tree

Extract object from tree
stash_list

List stashes in repository
stash_pop

Pop stash
ssh_path

Compose usual path to ssh keys
lookup_commit

Lookup the commit related to a git object
notes

List notes
odb_blobs

Blobs in the object database
remote_set_url

Set the remote's url in the configuration
tag_delete

Delete an existing tag reference
revparse_single

Revparse
rm_file

Remove files from the working tree and from the index
remote_url

Get the remote url for remotes in a repo
tags

Tags
when

When
tree

Tree
blob_create

Create blob from file on disk
add

Add file(s) to index
ahead_behind

Ahead Behind
as.list.git_tree

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

Create a branch
branch_get_upstream

Get remote tracking branch
as.data.frame.git_tree

Coerce entries in a git_tree to a data.frame
as.data.frame.git_repository

Coerce Git repository to a data.frame
blame

Get blame for file
branch_delete

Delete a branch
branch_target

Get target (sha) pointed to by a branch
branches

Branches
branch_rename

Rename a branch
bundle_r_package

Bundle bare repo of package
branch_remote_name

Remote name of a branch
branch_remote_url

Remote url of a branch
checkout

Checkout
clone

Clone a remote repository
commit

Commit