From d709a11cf93a0c41f4c1beb2d7266bd14f28636f Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Fri, 10 Nov 2023 22:20:56 -0800 Subject: [PATCH] Document the change in default target --- v3-to-v4.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/v3-to-v4.md b/v3-to-v4.md index b6e6ce0f8..ee7c6ae50 100644 --- a/v3-to-v4.md +++ b/v3-to-v4.md @@ -64,6 +64,15 @@ and try to set `--ref` from them. | other | other | "" | error | |----------|---------|---------|------------------------------| +#### Default target + +In git-sync v3, if neither `--branch` nor `--rev` were specified, the default +was to sync the HEAD of the branch named "master". Many git repos have changed +to "main" or something else as the default branch name, so git-sync v4 changes +the default target to be the HEAD of whatever the `--repo`'s default branch is. +If that default branch is not "master", then the default target will be +different in v4 than in v3. + #### Abbreviated hashes Because of the fetch loop, git-sync v3 allowed a user to specify `--branch` and