diff options
author | Mike Frysinger <vapier@google.com> | 2022-08-18 07:28:42 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2022-08-18 16:54:17 +0000 |
commit | 39cb17f7a31d8f6d8b6bddfe4406cf2ff4ed31a6 (patch) | |
tree | e097109e1103122b88356ce4c1271baf7697e697 /man/repo-gitc-init.1 | |
parent | ad1b7bd2e2d4fb636bef03d4b056b2f9de1fbf19 (diff) | |
download | git-repo-39cb17f7a31d8f6d8b6bddfe4406cf2ff4ed31a6.tar.gz |
init: use --current-branch by default
People rarely care about having all manifest branches locally. Change
the default to only pull down the selected branch. If people want other
branches, the -b option will fetch it automatically, or people can use
--no-current-branch.
This only applies to the manifest project syncing, not the rest of the
projects that are in the checkout.
Bug: https://crbug.com/gerrit/16194
Change-Id: Ia9e7e2f23b8028d82772db72dcc7d6c32260be79
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/343434
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: LaMont Jones <lamontjones@google.com>
Diffstat (limited to 'man/repo-gitc-init.1')
-rw-r--r-- | man/repo-gitc-init.1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/man/repo-gitc-init.1 b/man/repo-gitc-init.1 index 2858e735..88136de6 100644 --- a/man/repo-gitc-init.1 +++ b/man/repo-gitc-init.1 | |||
@@ -1,5 +1,5 @@ | |||
1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man. | 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man. |
2 | .TH REPO "1" "July 2022" "repo gitc-init" "Repo Manual" | 2 | .TH REPO "1" "August 2022" "repo gitc-init" "Repo Manual" |
3 | .SH NAME | 3 | .SH NAME |
4 | repo \- repo gitc-init - manual page for repo gitc-init | 4 | repo \- repo gitc-init - manual page for repo gitc-init |
5 | .SH SYNOPSIS | 5 | .SH SYNOPSIS |
@@ -49,6 +49,7 @@ create a git checkout of the manifest repo | |||
49 | .TP | 49 | .TP |
50 | \fB\-\-current\-branch\fR | 50 | \fB\-\-current\-branch\fR |
51 | fetch only current manifest branch from server | 51 | fetch only current manifest branch from server |
52 | (default) | ||
52 | .TP | 53 | .TP |
53 | \fB\-\-no\-current\-branch\fR | 54 | \fB\-\-no\-current\-branch\fR |
54 | fetch all manifest branches from server | 55 | fetch all manifest branches from server |