githug icon indicating copy to clipboard operation
githug copied to clipboard

Analogue of devtools::session_info()

Open jennybc opened this issue 7 years ago • 2 comments

Create a function to provide a compact summary of the The State of the Git Repository, for application similar to that of devtools::session_info(). Original suggestion laid out by @benmarwick here: https://github.com/hadley/r4ds/pull/434


Colophon

This report was generated on r Sys.time() using the following computational environment and dependencies:

# which R packages and versions?
devtools::session_info()

# what commit is this file at?
library(git2r)
repo <- repository(path = "../..")
last_commit <- commits(repo)[[1]]

The current git commit of this file isr last_commit@sha, which is on the r branches(repo)[[1]]@name branch and was made by r last_commit@committer@name on r when(last_commit). The current commit message is "r last_commit@summary". The repository is online at https://github.com/benmarwick/xxx.

jennybc avatar Sep 23 '16 14:09 jennybc

:+1: this will be great!

On 23 Sep 2016 15:55, "Jennifer (Jenny) Bryan" [email protected] wrote:

Create a function to provide a compact summary of the The State of the Git Repository, for application similar to that of devtools::session_info(). Original suggestion laid out by @benmarwick https://github.com/benmarwick here: hadley/r4ds#434

https://github.com/hadley/r4ds/pull/434

Colophon

This report was generated on r Sys.time() using the following computational environment and dependencies:

which R packages and versions?devtools::session_info()

what commit is this file at?

library(git2r)repo <- repository(path = "../..")last_commit <- commits(repo)[[1]]

The current git commit of this file isr last_commit@sha, which is on the r branches(repo)[[1]]@name branch and was made by r last_commit@committer @name on r when(last_commit). The current commit message is "r last_commit@summary". The repository is online at https://github.com/benmarwick/xxx.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jennybc/githug/issues/18, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoTQElyEvErNqF8W7YmUkPsAUeFVDBNks5qs-hQgaJpZM4KFET- .

gaborcsardi avatar Sep 23 '16 14:09 gaborcsardi

Wow, great, thanks for considering this for githug!

benmarwick avatar Sep 23 '16 15:09 benmarwick