Skip to content

Commit c81c4a9

Browse files
committed
It's always .gitignore
Fixes #95
1 parent 70062ce commit c81c4a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

R/edit.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ edit_git_config <- function(scope = c("user", "project")) {
5454
#' @rdname edit
5555
edit_git_ignore <- function(scope = c("user", "project")) {
5656
scope <- match.arg(scope)
57-
switch(scope,
58-
user = edit_file("~", ".gitignore"),
59-
project = edit_file(proj_get(), ".git/ignore")
60-
)
57+
edit_file(scope_dir(scope), ".gitignore")
6158
invisible()
6259
}
6360

0 commit comments

Comments
 (0)