Arguments passed through ...
are added to the .gitignore
file. Elements already present in the file are modified.
When ignore = TRUE
, the arguments are added to the .gitignore file,
which will cause 'Git' to not track them.
When ignore = FALSE
, the arguments are prepended with !
,
This works as a "double negation", and will cause 'Git' to track the files.
Examples
if(requireNamespace("withr", quietly = TRUE)){
withr::with_tempdir({
dir.create(".git")
git_ignore("ignorethis.file")
})
}