Skip to content

Commit

Permalink
Only capture differences to inst/apps when generating patch files in …
Browse files Browse the repository at this point in the history
…fix_snaps() (#265)

* Only capture differences to inst/apps when generating patch files in fix_snaps()

* `devtools::document()` (GitHub Actions)

---------

Co-authored-by: cpsievert <[email protected]>
  • Loading branch information
cpsievert and cpsievert authored Mar 28, 2024
1 parent a6ef4da commit fe8d2b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Description: Core shiny team tools to facilitate testing of the shiny-verse.
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Imports:
jsonlite,
progress,
Expand Down
2 changes: 1 addition & 1 deletion R/fix_snaps.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fix_snaps <- function(

# Make patch file given diff
# git_cmd_(paste0("git format-patch '", original_git_branch, "' --stdout > ", patch_file))
git_cmd_("git diff --binary ", original_git_branch, " > ", patch_file)
git_cmd_("git diff --binary ", original_git_branch, " -- inst/apps > ", patch_file)
}

patch_file
Expand Down

0 comments on commit fe8d2b2

Please sign in to comment.