summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-02-09 02:28:34 -0500
committerMike Frysinger <vapier@google.com>2020-02-19 18:11:33 +0000
commit979d5bdc3ebe45998a76dbbaff46c33d4e59683b (patch)
tree97c639570a60dd02a6ee9b712dff091a83ac8110 /repo
parent56ce3468b4f2faa1cccfea01dc91e7db73fb3843 (diff)
downloadgit-repo-979d5bdc3ebe45998a76dbbaff46c33d4e59683b.tar.gz
add experimental git worktree support
This provides initial support for using git worktrees internally instead of our own ad-hoc symlink tree. It's been lightly tested which is why it's not currently exposed via --help. When people opt-in to worktrees in an existing repo client checkout, no projects are migrated. Instead, only new projects will use the worktree method. This allows for limited testing/opting in without having to completely blow things away or get a second checkout. Bug: https://crbug.com/gerrit/11486 Change-Id: Ic3ff891b30940a6ba497b406b2a387e0a8517ed8 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254075 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'repo')
-rwxr-xr-xrepo2
1 files changed, 2 insertions, 0 deletions
diff --git a/repo b/repo
index 77e7fe90..743c28b3 100755
--- a/repo
+++ b/repo
@@ -302,6 +302,8 @@ def GetParser(gitc_init=False):
302 group.add_option('--clone-filter', action='store', default='blob:none', 302 group.add_option('--clone-filter', action='store', default='blob:none',
303 help='filter for use with --partial-clone ' 303 help='filter for use with --partial-clone '
304 '[default: %default]') 304 '[default: %default]')
305 group.add_option('--worktree', action='store_true',
306 help=optparse.SUPPRESS_HELP)
305 group.add_option('--archive', action='store_true', 307 group.add_option('--archive', action='store_true',
306 help='checkout an archive instead of a git repository for ' 308 help='checkout an archive instead of a git repository for '
307 'each project. See git archive.') 309 'each project. See git archive.')