module ShareReReReMixin
Public Instance Methods
options(opts)
click to toggle source
# File lib/git_bpf/commands/share-rerere-cache.rb, line 6 def options(opts) opts.work_tree = ".git/rr-cache" opts.branch = "rr-cache" opts.remote = "origin" [ ['-c', '--cache_dir DIR', "The location of your rr-cache dir, defaults to #{opts.work_tree}.", lambda { |n| opts.rr_cache_dir = n }], ['-b', '--branch NAME', "The name of the branch your rr-cache is stored in, defaults to #{opts.branch}.", lambda { |n| opts.branch = n }], ['-r', '--remote NAME', "The name of the remote to use when getting the latest rr-cache, defaults to #{opts.remote}.", lambda { |r| opts.remote = r }], ] end