mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
init: expose --worktree option
There's a few rough edges here still, but no known corruption ones, so open it up a bit for people to experiment with. Bug: https://crbug.com/gerrit/11486 Change-Id: I81e0122ab6d3e032c546c8239dd4f03740676e80 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/299242 Reviewed-by: Michael Mortensen <mmortensen@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
835a34bdb9
commit
5a4c8fde17
2
repo
2
repo
@ -318,7 +318,7 @@ def GetParser(gitc_init=False):
|
|||||||
help='filter for use with --partial-clone '
|
help='filter for use with --partial-clone '
|
||||||
'[default: %default]')
|
'[default: %default]')
|
||||||
group.add_option('--worktree', action='store_true',
|
group.add_option('--worktree', action='store_true',
|
||||||
help=optparse.SUPPRESS_HELP)
|
help='use git-worktree to manage projects')
|
||||||
group.add_option('--archive', action='store_true',
|
group.add_option('--archive', action='store_true',
|
||||||
help='checkout an archive instead of a git repository for '
|
help='checkout an archive instead of a git repository for '
|
||||||
'each project. See git archive.')
|
'each project. See git archive.')
|
||||||
|
@ -127,10 +127,8 @@ to update the working directory files.
|
|||||||
g.add_option('--clone-filter', action='store', default='blob:none',
|
g.add_option('--clone-filter', action='store', default='blob:none',
|
||||||
dest='clone_filter',
|
dest='clone_filter',
|
||||||
help='filter for use with --partial-clone [default: %default]')
|
help='filter for use with --partial-clone [default: %default]')
|
||||||
# TODO(vapier): Expose option with real help text once this has been in the
|
|
||||||
# wild for a while w/out significant bug reports. Goal is by ~Sep 2020.
|
|
||||||
g.add_option('--worktree', action='store_true',
|
g.add_option('--worktree', action='store_true',
|
||||||
help=optparse.SUPPRESS_HELP)
|
help='use git-worktree to manage projects')
|
||||||
g.add_option('--archive',
|
g.add_option('--archive',
|
||||||
dest='archive', action='store_true',
|
dest='archive', action='store_true',
|
||||||
help='checkout an archive instead of a git repository for '
|
help='checkout an archive instead of a git repository for '
|
||||||
|
Loading…
Reference in New Issue
Block a user