-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1a83c9
commit ff7a8a3
Showing
5 changed files
with
19 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,9 +67,9 @@ copy_examples <- function(examples, path_src) { | |
} | ||
|
||
|
||
helper_add_git <- function(path) { | ||
helper_add_git <- function(path, add = ".") { | ||
gert::git_init(path) | ||
gert::git_add(".", repo = path) | ||
gert::git_add(add, repo = path) | ||
user <- "author <[email protected]>" | ||
sha <- gert::git_commit("initial", author = user, committer = user, | ||
repo = path) | ||
|
@@ -135,9 +135,10 @@ initialise_git_repo <- function() { | |
} | ||
|
||
|
||
create_new_commit <- function(path, new_file = "new", message = "new message") { | ||
create_new_commit <- function(path, new_file = "new", message = "new message", | ||
add = ".") { | ||
writeLines("new file", file.path(path, new_file)) | ||
gert::git_add(".", repo = path) | ||
gert::git_add(add, repo = path) | ||
user <- "author <[email protected]>" | ||
gert::git_commit(message, author = user, committer = user, repo = path) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters