Rdocumentation
powered by
Learn R Programming
git2r (version 0.33.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
Link to current version
Version
Version
0.33.0
0.32.0
0.31.0
0.30.1
0.29.0
0.28.0
0.27.1
0.26.1
0.26.0
0.25.2
0.25.1
0.24.0
0.23.0
0.22.1
0.21.0
0.20.0
0.19.0
0.18.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.1
0.12.1
0.11.0
0.10.1
0.7
0.6
Install
install.packages('git2r')
Monthly Downloads
26,419
Version
0.33.0
License
GPL-2
Issues
88
Pull Requests
5
Stars
216
Forks
58
Repository
https://github.com/ropensci/git2r
Homepage
https://docs.ropensci.org/git2r/ (website)
Maintainer
Stefan Widgren
Last Published
November 26th, 2023
Functions in git2r (0.33.0)
Search all functions
as.data.frame.git_tree
Coerce entries in a git_tree to a
data.frame
branch_rename
Rename a branch
bundle_r_package
Bundle bare repo of package
checkout
Checkout
commit
Commit
branch_set_upstream
Set remote tracking branch
branches
Branches
branch_remote_url
Remote url of a branch
branch_remote_name
Remote name of a branch
branch_target
Get target (sha) pointed to by a branch
clone
Clone a remote repository
cred_user_pass
Create a new plain-text username and password credential object
descendant_of
Descendant
cred_token
Create a new personal access token credential object
config
Config
contributions
Contributions
commits
Commits
content
Content of blob
cred_ssh_key
Create a new passphrase-protected ssh key credential object
default_signature
Get the signature
cred_env
Create a new environmental credential object
diff.git_repository
Changes between commits, trees, working tree, etc.
hashfile
Determine the sha from a blob in a file
head.git_repository
Get HEAD for a repository
discover_repository
Find path to repository for any file
fetch
Fetch new data and update tips
fetch_heads
Get updated heads during the last fetch.
git_time
Time
init
Init a repository
hash
Determine the sha from a blob string
is_bare
Check if repository is bare
is_branch
Check if object is
git_branch
last_commit
Last commit
index_remove_bypath
Remove an index entry corresponding to a file on disk
git_config_files
Locate the path to configuration files
is_commit
Check if object is a git_commit object
length.git_diff
Number of files in git_diff object
is_blob
Check if object is S3 class git_blob
length.git_blob
Size in bytes of the contents of a blob
is_head
Check if branch is head
is_tag
Check if object is a git_tag object
git2r
git2r: R bindings to the libgit2 library
in_repository
Determine if a directory is in a git repository
is_binary
Is blob binary
is_local
Check if branch is local
length.git_tree
Number of entries in tree
libgit2_features
Compile time options for libgit2.
is_empty
Check if repository is empty
is_detached
Check if HEAD of repository is detached
merge_base
Find a merge base between two commits
lookup
Lookup
is_merge
Is merge
is_tree
Check if object is S3 class git_tree
is_shallow
Determine if the repository is a shallow clone
note_default_ref
Default notes reference
lookup_commit
Lookup the commit related to a git object
note_create
Add note for a object
note_remove
Remove the note for an object
print.git_reflog_entry
Print a reflog entry
notes
List notes
odb_blobs
Blobs in the object database
reexports
Objects exported from other packages
ls_tree
List the contents of a tree object
plot.git_repository
Plot commits over time
libgit2_version
Version of the libgit2 library
push
Push
punch_card
Punch card
pull
Pull
reflog
List and view reflog information
odb_objects
List all objects available in the database
merge.git_branch
Merge a branch into HEAD
remote_rename
Rename a remote
remote_add
Add a remote to a repo
references
Get all references that can be found in a repository.
remote_remove
Remove a remote
remote_ls
List references in a remote repository
repository_head
Get HEAD for a repository
remote_set_url
Set the remote's url in the configuration
remotes
Get the configured remotes for a repo
revparse_single
Revparse
remote_url
Get the remote url for remotes in a repo
repository
Open a repository
rm_file
Remove files from the working tree and from the index
sha
Get the SHA-1 of a git object
reset
Reset current HEAD to the specified state
stash_apply
Apply stash
summary.git_repository
Summary of repository
ssh_path
Compose usual path to ssh keys
tag_delete
Delete an existing tag reference
stash_drop
Drop stash
status
Status
ssl_cert_locations
Set the SSL certificate-authority locations
parents
Parents
summary.git_stash
Summary of a stash
stash_list
List stashes in repository
stash_pop
Pop stash
tags
Tags
[.git_tree
Extract object from tree
tree
Tree
stash
Stash
tag
Create tag targeting HEAD commit in repository
workdir
Workdir of repository
summary.git_tree
Summary of tree
when
When
blame
Get blame for file
blob_create
Create blob from file on disk
as.list.git_tree
Coerce entries in a git_tree to a list of entry objects
branch_create
Create a branch
ahead_behind
Ahead Behind
add
Add file(s) to index
branch_delete
Delete a branch
branch_get_upstream
Get remote tracking branch
as.data.frame.git_repository
Coerce Git repository to a
data.frame