File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ def file_collision(destination)
316
316
317
317
say "Please specify merge tool to `THOR_MERGE` env."
318
318
else
319
- say file_collision_help
319
+ say file_collision_help ( block_given? )
320
320
end
321
321
end
322
322
end
@@ -384,16 +384,21 @@ def is?(value) #:nodoc:
384
384
end
385
385
end
386
386
387
- def file_collision_help #:nodoc:
388
- <<-HELP
387
+ def file_collision_help ( block_given ) #:nodoc:
388
+ help = <<-HELP
389
389
Y - yes, overwrite
390
390
n - no, do not overwrite
391
391
a - all, overwrite this and all others
392
392
q - quit, abort
393
- d - diff, show the differences between the old and the new
394
393
h - help, show this help
395
- m - merge, run merge tool
396
394
HELP
395
+ if block_given
396
+ help << <<-HELP
397
+ d - diff, show the differences between the old and the new
398
+ m - merge, run merge tool
399
+ HELP
400
+ end
401
+ help
397
402
end
398
403
399
404
def show_diff ( destination , content ) #:nodoc:
You can’t perform that action at this time.
0 commit comments