git2r
git2r copied to clipboard
R bindings to the libgit2 library
``` git checkout HEAD~0 Rscript -e "git2r::commits()" # Error in (function (classes, fdef, mtable) : # unable to find an inherited method for function ‘branch_target’ for signature ‘"git_commit"’ ```
Not strictly part of libgit2, but would be nice to have
It's often useful to be able to "shallow" clone a repo, e.g. `git clone URL --depth 1 --no-hardlinks`. Could we please have depth option for `clone()`
That actually prints the diff. I had this as a TODO in the R file, but then it disappeared and I forgot. So it is still not implemented. I'll submit...
``` R > summary(diff(repository("."))) Old: index New: workdir No changes. > system("git diff") diff --git a/R/git.R b/R/git.R index 7cb7b6d..38fab7d 100644 --- a/R/git.R +++ b/R/git.R @@ -28,8 +28,9 @@ git_sha1
i.e. combining global and local settings ``` R c
Wow, this package is great! Thanks for all the hard work :+1: I have a problem discovering a repository that has non-ascii characters in the path: ``` R dir.create("öäå") discover_repository("öäå")...
Hi @karthik I would like to refactor and rename the function [markdown_link](https://github.com/ropensci/git2r/blob/master/R/markdown_link.r) - What do you think of renaming the function to `gitstamp`? - And adding an argument, `format =...
@karthik and @sckott, would it be possible to create something similar to `rOpenSci Cookbook` for `git2r`. I believe that end users and the project could benefit from a better documentation....