6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# 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
|