From 5a4c8fde1723207870f567c58e9368aeb39578f5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 6 Mar 2021 07:20:14 -0500 Subject: [PATCH] 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 Tested-by: Mike Frysinger --- repo | 2 +- subcmds/init.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/repo b/repo index d32a84b9..768050ea 100755 --- a/repo +++ b/repo @@ -318,7 +318,7 @@ def GetParser(gitc_init=False): help='filter for use with --partial-clone ' '[default: %default]') 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', help='checkout an archive instead of a git repository for ' 'each project. See git archive.') diff --git a/subcmds/init.py b/subcmds/init.py index c2376b65..471efc1e 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -127,10 +127,8 @@ to update the working directory files. g.add_option('--clone-filter', action='store', default='blob:none', dest='clone_filter', 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', - help=optparse.SUPPRESS_HELP) + help='use git-worktree to manage projects') g.add_option('--archive', dest='archive', action='store_true', help='checkout an archive instead of a git repository for '