From fe8d2b2585f04b56f29c27fc71b94aa7c7ed516c Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Thu, 28 Mar 2024 17:03:00 -0500 Subject: [PATCH] Only capture differences to inst/apps when generating patch files in fix_snaps() (#265) * Only capture differences to inst/apps when generating patch files in fix_snaps() * `devtools::document()` (GitHub Actions) --------- Co-authored-by: cpsievert --- DESCRIPTION | 2 +- R/fix_snaps.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 2426369b64..987366102d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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, diff --git a/R/fix_snaps.R b/R/fix_snaps.R index d10149fe12..9b4a11da7e 100644 --- a/R/fix_snaps.R +++ b/R/fix_snaps.R @@ -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