Skip to content

Commit 02d624d

Browse files
committed
Document the change in default target
1 parent 7885974 commit 02d624d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

v3-to-v4.md

+9
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ and try to set `--ref` from them.
6464
| other | other | "" | error |
6565
|----------|---------|---------|------------------------------|
6666

67+
#### Default target
68+
69+
In git-sync v3, if neither `--branch` nor `--rev` were specified, the default
70+
was to sync the HEAD of the branch named "master". Many git repos have change
71+
to "main" or something else as the default branch name, so git-sync v4 changes
72+
the default target to be the HEAD of whatever the `--repo`'s default branch is.
73+
If that default branch is not "master", then the default target will be
74+
different in v4 than in v3.
75+
6776
#### Abbreviated hashes
6877

6978
Because of the fetch loop, git-sync v3 allowed a user to specify `--branch` and

0 commit comments

Comments
 (0)