@@ -208,7 +208,7 @@ pr_init <- function(branch) {
208
208
if (! is.na(remref )) {
209
209
comparison <- git_branch_compare(current_branch , remref )
210
210
if (comparison $ remote_only > 0 ) {
211
- challenge_uncommitted_changes()
211
+ challenge_uncommitted_changes(which = c( " pull " , " switch branches " ) )
212
212
}
213
213
ui_bullets(c(" v" = " Pulling changes from {.val {remref}}." ))
214
214
git_pull(remref = remref , verbose = FALSE )
@@ -258,7 +258,7 @@ pr_resume <- function(branch = NULL) {
258
258
))
259
259
}
260
260
261
- challenge_uncommitted_changes(which = " switch" )
261
+ challenge_uncommitted_changes(which = c( " pull " , " switch" , " compare branches " ) )
262
262
263
263
ui_bullets(c(" v" = " Switching to branch {.val {branch}}." ))
264
264
gert :: git_branch_checkout(branch , repo = repo )
@@ -283,7 +283,7 @@ pr_resume <- function(branch = NULL) {
283
283
pr_fetch <- function (number = NULL , target = c(" source" , " primary" )) {
284
284
repo <- git_repo()
285
285
tr <- target_repo(github_get = NA , role = target , ask = FALSE )
286
- challenge_uncommitted_changes(which = " switch" )
286
+ challenge_uncommitted_changes(which = c( " pull " , " switch branches " ) )
287
287
288
288
if (is.null(number )) {
289
289
ui_bullets(c(" i" = " No PR specified ... looking up open PRs." ))
@@ -503,7 +503,7 @@ pr_pause <- function() {
503
503
))
504
504
return (invisible ())
505
505
}
506
- challenge_uncommitted_changes(which = " switch" )
506
+ challenge_uncommitted_changes(which = " switch branches " )
507
507
# TODO: what happens here if offline?
508
508
check_branch_pulled(use = " pr_pull()" )
509
509
0 commit comments