View source: R/utils-gather-file-paths.R
create_git_prefix | R Documentation |
Adds information about the git branch to the file path.
create_git_prefix(
branch = gert::git_branch(),
path = "",
ignore_if_main = TRUE
)
branch |
String. Current branch of repo. |
path |
String. Folder where file should be uploaded. If an empty string is provided (default), the path argument will be ignored. |
ignore_if_main |
Logical. No prefixed added to files on main branch. |
String. Prefix for the file path.
# create_git_prefix(branch = gert::git_branch(),
# path= "example",
# ignore_if_main=TRUE)
# "refs/head/current/branch/example"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.