[PATCH v4 0/9] Allow overriding the default name of the default branch (original) (raw)

From: "Johannes Schindelin via GitGitGadget" gitgitgadget@gmail.com To: git@vger.kernel.org Cc: don@goodman-wilson.com, stolee@gmail.com, peff@peff.net, sandals@crustytoothpaste.net, "Matt Rogers" mattr94@gmail.com, "Eric Sunshine" sunshine@sunshineco.com, "Taylor Blau" me@ttaylorr.com, "Phillip Wood" phillip.wood123@gmail.com, "Alban Gruin" alban.gruin@gmail.com, "Johannes Sixt" j6t@kdbg.org, "Denton Liu" liu.denton@gmail.com, "Ævar Arnfjörð Bjarmason" avarab@gmail.com, "Philippe Blain" levraiphilippeblain@gmail.com, "Johannes Schindelin" johannes.schindelin@gmx.de Subject: [PATCH v4 0/9] Allow overriding the default name of the default branch Date: Wed, 24 Jun 2020 14:46:27 +0000 [thread overview] Message-ID: pull.656.v4.git.1593009996.gitgitgadget@gmail.com () In-Reply-To: <pull.656.v3.git.1592951611.gitgitgadget@gmail.com>

A growing number of open source projects aims to avoid the branch name master due to its negative connotation. See [1] for an existing discussion on this. The links [2], [3], and [4] describe community-driven ways for users to rename their default branches or use template edits to set a new default branch name.

[1] https://lore.kernel.org/git/CAOAHyQwyXC1Z3v7BZAC+Bq6JBaM7FvBenA-1fcqeDV==apdWDg@mail.gmail.com/

[2] https://twitter.com/mislav/status/1270388510684598272

[3] https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx

[4] https://github.com/ethomson/retarget_prs

By necessity, existing repositories require a lot of manual work to move away from that branch name, but it should be much easier for new repositories.

This patch series allows overriding the branch name being used for new repositories' main branch. This can be configured via init.defaultBranch.

The initial patch was started by newcomer Don Goodman-Wilson, as well as the bigger change that morphed into #655, where we demonstrate how to change Git's hard-coded default branch name for new repositories to main based on this here patch series, verifying the approach. Thanks for the contribution!

This series DOES NOT change the default automatically, but only provides an opt-in mechanism for interested users. The plan for that is to convert the test scripts incrementally (by introducing GIT_TEST_DEFAULT_MAIN_BRANCH_NAME , which overrides init.defaultBranch, and then converting the tricky test scripts first, one by one, using that environment variable).

Changes since v3:

Changes since v2:

Changes since v1:

Don Goodman-Wilson (1): init: allow setting the default for the initial branch name via the config

Johannes Schindelin (8): fmt-merge-msg: stop treating master specially send-pack/transport-helper: avoid mentioning a particular branch submodule: fall back to remote's HEAD for missing remote..branch docs: add missing diamond brackets init: allow specifying the initial branch name for the new repository clone: use configured default branch name when appropriate remote: use the configured default branch name when appropriate testsvn: respect init.defaultBranch

Documentation/config/init.txt | 4 ++ Documentation/git-branch.txt | 2 +- Documentation/git-clone.txt | 2 +- Documentation/git-init.txt | 9 ++- Documentation/git-submodule.txt | 12 ++-- Documentation/gitmodules.txt | 6 +- builtin/clone.c | 13 ++-- builtin/init-db.c | 33 +++++++-- builtin/submodule--helper.c | 2 +- cache.h | 2 +- fmt-merge-msg.c | 5 +- refs.c | 30 ++++++++ refs.h | 9 +++ remote-testsvn.c | 10 ++- remote.c | 14 +++- send-pack.c | 2 +- t/t0001-init.sh | 26 +++++++ t/t1507-rev-parse-upstream.sh | 2 +- t/t4013-diff-various.sh | 4 +- t/t4013/diff.log_--decorate=full_--all | 2 +- t/t4013/diff.log_--decorate_--all | 2 +- ...--patch-with-stat_--summary_master_--dir | 2 +- t/t4013/diff.log_--patch-with-stat_master | 2 +- .../diff.log_--patch-with-stat_master_--dir | 2 +- ...ot_--cc_--patch-with-stat_--summary_master | 2 +- ...--root--patch-with-stat_--summary_master | 2 +- .../diff.log_--root_--patch-with-stat_master | 2 +- ...root_-c_--patch-with-stat_--summary_master | 2 +- t/t4013/diff.log_--root_-p_master | 2 +- t/t4013/diff.log_--root_master | 2 +- t/t4013/diff.log_-m_-p_--first-parent_master | 2 +- t/t4013/diff.log_-m_-p_master | 4 +- t/t4013/diff.log_-p_--first-parent_master | 2 +- t/t4013/diff.log_-p_master | 2 +- t/t4013/diff.log_master | 2 +- t/t4013/diff.show_--first-parent_master | 2 +- t/t4013/diff.show_-c_master | 2 +- t/t4013/diff.show_-m_master | 4 +- t/t4013/diff.show_master | 2 +- ...ot_--cc_--patch-with-stat_--summary_master | 2 +- ...root_-c_--patch-with-stat_--summary_master | 2 +- t/t4202-log.sh | 72 +++++++++---------- t/t5528-push-default.sh | 6 ++ t/t5606-clone-options.sh | 24 +++++++ t/t6200-fmt-merge-msg.sh | 36 +++++----- t/t7406-submodule-update.sh | 16 +++++ t/t7419-submodule-set-branch.sh | 7 +- t/t7600-merge.sh | 14 ++-- t/t7608-merge-messages.sh | 10 +-- t/t9020-remote-svn.sh | 6 ++ transport-helper.c | 2 +- 51 files changed, 297 insertions(+), 131 deletions(-)

base-commit: c9c318d6bf26bcecdca5b6f31683b9d5887a83ee Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-656%2Fdscho%2Fdefault-branch-name-option-v4 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-656/dscho/default-branch-name-option-v4 Pull-Request: https://github.com/gitgitgadget/git/pull/656

Range-diff vs v3:

1: fffdb9944f = 1: fffdb9944f fmt-merge-msg: stop treating master specially 2: a29943d7bb ! 2: 1216de51ab send-pack/transport-helper: avoid mentioning a particular branch @@ send-pack.c: int send_pack(struct send_pack_args *args, if (!remote_refs) { fprintf(stderr, "No refs in common and none specified; doing nothing.\n" - "Perhaps you should specify a branch such as 'master'.\n"); -+ "Perhaps you should specify a specific branch.\n"); ++ "Perhaps you should specify a branch.\n"); return 0; } if (args->atomic && !atomic_supported) @@ t/t5528-push-default.sh: test_expect_success 'push from/to new branch with upstr +test_expect_success '"matching" fails if none match' ' + git init --bare empty && + test_must_fail git push empty : 2>actual && -+ test_i18ngrep "Perhaps you should specify a specific branch" actual ++ test_i18ngrep "Perhaps you should specify a branch" actual +' + test_expect_success 'push ambiguously named branch with upstream, matching and simple' ' @@ transport-helper.c: static int push_refs(struct transport *transport, fprintf(stderr, _("No refs in common and none specified; doing nothing.\n" - "Perhaps you should specify a branch such as 'master'.\n")); -+ "Perhaps you should specify a specific branch.\n")); ++ "Perhaps you should specify a branch.\n")); return 0; }

3: 6bda69541b ! 3: 54563642db submodule: use a better fall-back for missing remote..branch @@ Metadata Author: Johannes Schindelin Johannes.Schindelin@gmx.de

   ## Commit message ##
 -    submodule: use a better fall-back for missing remote.<name>.branch
 +    submodule: fall back to remote's HEAD for missing remote.<name>.branch
  
      When `remote.<name>.branch` is not configured, `git submodule update`
      currently falls back to using the branch name `master`. A much better
 -    idea, however, is to use `HEAD`: on all Git servers running reasonably
 -    recent Git versions, the symref `HEAD` points to the main branch.
 +    idea, however, is to use the remote `HEAD`: on all Git servers running
 +    reasonably recent Git versions, the symref `HEAD` points to the main
 +    branch.
  
      Note: t7419 demonstrates that there _might_ be use cases out there that
      _expect_ `git submodule update --remote` to update submodules to the
 @@ Commit message
      there is a slight possibility that this might cause regressions in
      obscure setups.
  
 +    Even so, it should be okay to fix this behavior without anything like a
 +    longer transition period:
 +
 +    - The `git submodule update --remote` command is not really common.
 +
 +    - Current Git's behavior when running this command is outright
 +      confusing, unless the remote repository's current branch _is_ `master`
 +      (in which case the proposed behavior matches the old behavior).
 +
 +    - If a user encounters a regression due to the changed behavior, the fix
 +      is actually trivial: setting `submodule.<name>.branch` to `master`
 +      will reinstate the old behavior.
 +
 +    Helped-by: Philippe Blain <levraiphilippeblain@gmail.com>
      Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  
   ## Documentation/git-submodule.txt ##
 +@@ Documentation/git-submodule.txt: set-branch (-d|--default) [--] <path>::
 + 	Sets the default remote tracking branch for the submodule. The
 + 	`--branch` option allows the remote branch to be specified. The
 + 	`--default` option removes the submodule.<name>.branch configuration
 +-	key, which causes the tracking branch to default to 'master'.
 ++	key, which causes the tracking branch to default to the remote 'HEAD'.
 + 
 + set-url [--] <path> <newurl>::
 + 	Sets the URL of the specified submodule to <newurl>. Then, it will
  @@ Documentation/git-submodule.txt: OPTIONS
       `.gitmodules` for `update --remote`.  A special value of `.` is used to
       indicate that the name of the branch in the submodule should be the
       same name as the current branch in the current repository.  If the
  -	option is not specified, it defaults to 'master'.
 -+	option is not specified, it defaults to 'HEAD'.
 ++	option is not specified, it defaults to the remote 'HEAD'.
   
   -f::
   --force::
 @@ Documentation/git-submodule.txt: OPTIONS
       status of the submodule's remote-tracking branch.  The remote used
       is branch's remote (`branch.<name>.remote`), defaulting to `origin`.
  -	The remote branch used defaults to `master`, but the branch name may
 -+	The remote branch used defaults to `HEAD`, but the branch name may
 - 	be overridden by setting the `submodule.<name>.branch` option in
 - 	either `.gitmodules` or `.git/config` (with `.git/config` taking
 - 	precedence).
 +-	be overridden by setting the `submodule.<name>.branch` option in
 +-	either `.gitmodules` or `.git/config` (with `.git/config` taking
 +-	precedence).
 ++	The remote branch used defaults to the remote `HEAD`, but the branch
 ++	name may be overridden by setting the `submodule.<name>.branch`
 ++	option in either `.gitmodules` or `.git/config` (with `.git/config`
 ++	taking precedence).
 + +
 + This works for any of the supported update procedures (`--checkout`,
 + `--rebase`, etc.).  The only change is the source of the target SHA-1.
 +
 + ## Documentation/gitmodules.txt ##
 +@@ Documentation/gitmodules.txt: submodule.<name>.update::
 + 
 + submodule.<name>.branch::
 + 	A remote branch name for tracking updates in the upstream submodule.
 +-	If the option is not specified, it defaults to 'master'.  A special
 +-	value of `.` is used to indicate that the name of the branch in the
 +-	submodule should be the same name as the current branch in the
 ++	If the option is not specified, it defaults to the remote 'HEAD'.
 ++	A special value of `.` is used to indicate that the name of the branch
 ++	in the submodule should be the same name as the current branch in the
 + 	current repository.  See the `--remote` documentation in
 + 	linkgit:git-submodule[1] for details.
 + 
  
   ## builtin/submodule--helper.c ##
  @@ builtin/submodule--helper.c: static const char *remote_submodule_branch(const char *path)

-: ---------- > 4: 1d723d35ed docs: add missing diamond brackets 4: e8a6587c1a ! 5: 9edd4fd3b2 init: allow specifying the initial branch name for the new repository @@ Documentation/git-init.txt @@ Documentation/git-init.txt: SYNOPSIS [verse] 'git init' [-q | --quiet] [--bare] [--template=] - [--separate-git-dir ] [--object-format=<format] + [--separate-git-dir ] [--object-format=] + [-b | --initial-branch=] [--shared[=]] [directory]

 @@ builtin/init-db.c: static int create_default_files(const char *template_path,
       /*
  -	 * Create the default symlink from ".git/HEAD" to the "master"
  -	 * branch, if it does not exist yet.
 -+	 * Create the default symlink from ".git/HEAD" to the default
 -+	 * branch name, if it does not exist yet.
 ++	 * Point the HEAD symref to the initial branch with if HEAD does
 ++	 * not yet exist.
        */
       path = git_path_buf(&buf, "HEAD");
       reinit = (!access(path, R_OK)
 @@ builtin/init-db.c: static int create_default_files(const char *template_path,
  +
  +		if (create_symref("HEAD", ref, NULL) < 0)
               exit(1);
 --	}
  +		free(ref);
 -+	} else if (initial_branch)
 -+		warning(_("re-init: ignoring --initial-branch=%s"),
 -+			initial_branch);
 + 	}
   
       initialize_repository_version(fmt->hash_algo);
 - 
  @@ builtin/init-db.c: static void validate_hash_algorithm(struct repository_format *repo_fmt, int hash
   }
   
 @@ builtin/init-db.c: int init_db(const char *git_dir, const char *real_git_dir,
  -	reinit = create_default_files(template_dir, original_git_dir, &repo_fmt);
  +	reinit = create_default_files(template_dir, original_git_dir,
  +				      initial_branch, &repo_fmt);
 ++	if (reinit && initial_branch)
 ++		warning(_("re-init: ignored --initial-branch=%s"),
 ++			initial_branch);
   
       create_object_directory();
   
 @@ t/t0001-init.sh: test_expect_success MINGW 'redirect std handles' '
  +
  +	: re-initializing should not change the branch name &&
  +	git init --initial-branch=ignore initial-branch-option 2>err &&
 -+	test_i18ngrep "ignoring --initial-branch" err &&
 ++	test_i18ngrep "ignored --initial-branch" err &&
  +	git -C initial-branch-option symbolic-ref HEAD >actual &&
  +	grep hello actual
  +'

5: a500e0f214 = 6: 7747eaa57d init: allow setting the default for the initial branch name via the config 6: c0d74cedd1 = 7: 1cff7705e4 clone: use configured default branch name when appropriate 7: 00a1b281e5 ! 8: 0a7c0bdfda remote: use the configured default branch name when appropriate @@ remote.c: static void read_branches_file(struct remote remote) / * The branches file would have URL and optionally - * #branch specified. The "master" (or specified) branch is -+ * #branch specified. The main (or specified) branch is ++ * #branch specified. The default (or specified) branch is * fetched and stored in the local branch matching the * remote name. */ 8: 1aa0e63785 = 9: 6c72abf677 testsvn: respect init.defaultBranch

-- gitgitgadget


next prev parent reply other threads:[~2020-06-24 14:46 UTC|newest]

Thread overview: 180+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-10 21:19 [PATCH 0/9] Allow overriding the default name of the default branch Johannes Schindelin via GitGitGadget 2020-06-10 21:19 [[PATCH 1/9] init: allow overriding the default branch name for new repositories](../90912e32da1192cfc3b39a18cb606caa46e85b1c.1591823971.git.gitgitgadget@gmail.com/) Don Goodman-Wilson via GitGitGadget 2020-06-10 23:22 brian m. carlson 2020-06-11 0:16 [Eric Sunshine](../CAPig+cSnEvVB5vsffFXidG1-XNxDX10u2XhD9NqV3pwh8zyxxw@mail.gmail.com/) 2020-06-11 14:09 Johannes Schindelin 2020-06-11 15:28 [Junio C Hamano](../xmqqd065bp0x.fsf@gitster.c.googlers.com/) 2020-06-16 12:45 Jeff King 2020-06-16 12:47 [Jeff King](../20200616124739.GD666057@coredump.intra.peff.net/) 2020-06-18 13:08 Johannes Schindelin 2020-06-23 20:32 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006232228560.54@tvgsbejvaqbjf.bet/) 2020-06-11 9:35 Phillip Wood 2020-06-12 11:55 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006121308030.56@tvgsbejvaqbjf.bet/) 2020-06-12 16:51 Junio C Hamano 2020-06-14 22:00 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006142350580.56@tvgsbejvaqbjf.bet/) 2020-06-15 10:00 Phillip Wood 2020-06-11 10:23 [Alban Gruin](../08e46af3-ff52-8bce-b75a-db8c390c9641@gmail.com/) 2020-06-11 23:14 Junio C Hamano 2020-06-11 23:46 [brian m. carlson](../20200611234611.GA6569@camp.crustytoothpaste.net/) 2020-06-12 12:45 Johannes Schindelin 2020-06-13 18:01 [Alban Gruin](../731205c8-7d4b-d87a-17d1-520fdec7375d@gmail.com/) 2020-06-14 8:57 Johannes Schindelin 2020-06-16 12:25 [Jeff King](../20200616122559.GA666057@coredump.intra.peff.net/) 2020-06-18 10:17 Johannes Schindelin 2020-06-10 21:19 [[PATCH 2/9] remote: respectcore.defaultBranchName](../06a2cea051c01ebee38c9910425171f112daf41a.1591823971.git.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-16 12:35 Jeff King 2020-06-18 10:21 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006181218270.54@tvgsbejvaqbjf.bet/) 2020-06-18 11:50 Jeff King 2020-06-23 21:15 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006232313540.54@tvgsbejvaqbjf.bet/) 2020-06-10 21:19 [PATCH 3/9] send-pack/transport-helper: " Johannes Schindelin via GitGitGadget 2020-06-10 21:19 [[PATCH 4/9] testsvn:](../73cb567cd33e29d22f1a6b853925c68282da5298.1591823971.git.gitgitgadget@gmail.com/) " Johannes Schindelin via GitGitGadget 2020-06-10 21:19 [PATCH 5/9] submodule: use the (possibly overridden) default branch name Johannes Schindelin via GitGitGadget 2020-06-15 10:46 [Denton Liu](../20200615104641.GA54462@generichostname/) 2020-06-10 21:19 [PATCH 6/9] clone: learn about the possibly-configured " Johannes Schindelin via GitGitGadget 2020-06-10 22:58 [Junio C Hamano](../xmqqsgf2eden.fsf@gitster.c.googlers.com/) 2020-06-10 21:19 [PATCH 7/9] fmt-merge-msg: " Johannes Schindelin via GitGitGadget 2020-06-10 22:59 [Junio C Hamano](../xmqqo8pqedcg.fsf@gitster.c.googlers.com/) 2020-06-10 21:19 [PATCH 8/9] fast-export: respect the possibly-overridden " Johannes Schindelin via GitGitGadget 2020-06-10 21:54 [Matt Rogers](../CAOjrSZvm9QNUttUNVBEUMPJ8zgYEoAnSPN5%5F6N5uwpiM1sVrcQ@mail.gmail.com/) 2020-06-10 23:25 Junio C Hamano 2020-06-10 23:39 [brian m. carlson](../20200610233912.GU6569@camp.crustytoothpaste.net/) 2020-06-11 0:20 Matt Rogers 2020-06-11 5:26 [Junio C Hamano](../xmqq3672cgw8.fsf@gitster.c.googlers.com/) 2020-06-11 14:05 Johannes Schindelin 2020-06-11 15:05 [Re*](../xmqqpna5bq2l.fsf%5F-%5F@gitster.c.googlers.com/) " Junio C Hamano 2020-06-11 16:44 Junio C Hamano 2020-06-11 18:18 [Junio C Hamano](../xmqqimfxjwk6.fsf@gitster.c.googlers.com/) 2020-06-12 12:07 Johannes Schindelin 2020-06-12 12:32 [Junio C Hamano](../xmqqa7184g7o.fsf@gitster.c.googlers.com/) 2020-06-12 12:03 Johannes Schindelin 2020-06-12 12:50 [Junio C Hamano](../xmqq36704fek.fsf@gitster.c.googlers.com/) 2020-06-12 12:53 Johannes Schindelin 2020-06-12 13:18 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006121518160.56@tvgsbejvaqbjf.bet/) 2020-06-12 15:19 Junio C Hamano 2020-06-12 15:22 [Junio C Hamano](../xmqqpna42tt3.fsf@gitster.c.googlers.com/) 2020-06-13 5:00 Johannes Schindelin 2020-06-12 15:14 [Junio C Hamano](../xmqqy2os2u55.fsf@gitster.c.googlers.com/) 2020-06-13 11:49 Johannes Sixt 2020-06-13 16:25 [Junio C Hamano](../xmqqv9jvylt7.fsf@gitster.c.googlers.com/) 2020-06-13 14:47 Johannes Schindelin 2020-06-13 18:49 [Junio C Hamano](../xmqqeeqiztpq.fsf@gitster.c.googlers.com/) 2020-06-14 8:55 Johannes Schindelin 2020-06-17 20:06 [Junio C Hamano](../xmqqtuz9tq30.fsf@gitster.c.googlers.com/) 2020-06-23 21:11 Johannes Schindelin 2020-06-23 21:32 [Junio C Hamano](../xmqqpn9pbh8q.fsf@gitster.c.googlers.com/) 2020-06-13 14:44 Johannes Schindelin 2020-06-11 13:57 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006111556090.56@tvgsbejvaqbjf.bet/) 2020-06-11 18:19 Junio C Hamano 2020-06-12 12:07 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006121407310.56@tvgsbejvaqbjf.bet/) 2020-06-10 21:19 [PATCH 9/9] Document how the default branch name can be overridden Johannes Schindelin via GitGitGadget 2020-06-11 0:18 [Junio C Hamano](../xmqq3672e9p2.fsf@gitster.c.googlers.com/) 2020-06-10 23:11 [PATCH 0/9] Allow overriding the default name of the default branch Junio C Hamano 2020-06-11 5:42 [Junio C Hamano](../xmqqy2oub1l3.fsf@gitster.c.googlers.com/) 2020-06-11 13:44 Johannes Schindelin 2020-06-11 14:44 [Junio C Hamano](../xmqqtuzhbr1o.fsf@gitster.c.googlers.com/) 2020-06-10 23:41 brian m. carlson 2020-06-11 1:07 [Taylor Blau](../20200611010720.GA21728@syl.local/) 2020-06-11 14:33 Johannes Schindelin 2020-06-15 10:03 [Pratyush Yadav](../20200615100327.3mwft27oj7h2bixg@yadavpratyush.com/) 2020-06-14 22:26 Johannes Schindelin 2020-06-16 0:19 [Denton Liu](../20200616001955.GA686455@generichostname/) 2020-06-23 20:10 Johannes Schindelin 2020-06-15 23:10 [brian m. carlson](../20200615231049.GE6531@camp.crustytoothpaste.net/) 2020-06-15 12:50 [PATCH v2 00/12] " Johannes Schindelin via GitGitGadget 2020-06-15 12:50 [[PATCH v2 01/12] fast-export: do anonymize the primary branch name](../ebd10f73cd73a8fca84d1862e5a4b7b62a549bcd.1592225416.git.gitgitgadget@gmail.com/) Junio C Hamano via GitGitGadget 2020-06-16 12:58 Jeff King 2020-06-17 18:16 [Junio C Hamano](../xmqqmu51v9qy.fsf@gitster.c.googlers.com/) 2020-06-17 21:23 Jeff King 2020-06-18 2:06 [Elijah Newren](../CABPp-BETyMYm=5APqAA3D1JmkurDFNkKLDrcF4MUgEfqEuVKFA@mail.gmail.com/) 2020-06-18 6:30 Junio C Hamano 2020-06-18 7:13 [Elijah Newren](../CABPp-BHB%5FWQqvRBKyA3bGy0L8FZhnN2CL2jHepDBrkjUDNrE=Q@mail.gmail.com/) 2020-06-18 11:45 Jeff King 2020-06-15 12:50 [[PATCH v2 02/12] fmt-merge-msg: introduce a way to override the main](../f4d547391537e5c3b0b4a07adb41b6aa56541fc3.1592225416.git.gitgitgadget@gmail.com/) " Johannes Schindelin via GitGitGadget 2020-06-15 15:00 Phillip Wood 2020-06-23 12:31 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006231357260.54@tvgsbejvaqbjf.bet/) 2020-06-15 17:05 Junio C Hamano 2020-06-23 19:19 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006232118220.54@tvgsbejvaqbjf.bet/) 2020-06-16 8:46 Ævar Arnfjörð Bjarmason 2020-06-17 18:21 [Junio C Hamano](../xmqqimfpv9io.fsf@gitster.c.googlers.com/) 2020-06-16 13:04 Jeff King 2020-06-17 18:23 [Junio C Hamano](../xmqqeeqdv9e8.fsf@gitster.c.googlers.com/) 2020-06-18 13:15 Johannes Schindelin 2020-06-17 20:56 [Johannes Sixt](../1612660e-aa49-5d7f-d47e-34740e330eaa@kdbg.org/) 2020-06-17 21:16 Junio C Hamano 2020-06-23 21:12 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006232311270.54@tvgsbejvaqbjf.bet/) 2020-06-15 12:50 [PATCH v2 03/12] send-pack/transport-helper: respect core.mainBranch Johannes Schindelin via GitGitGadget 2020-06-15 12:50 [[PATCH v2 04/12] git_main_branch_name(): optionally report the full ref name](../ca1c63c3e012edde26b4f0c67175ca53f4d29e08.1592225416.git.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-15 15:04 Phillip Wood 2020-06-23 19:17 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006232116210.54@tvgsbejvaqbjf.bet/) 2020-06-15 12:50 [PATCH v2 05/12] fast-export: handle overridden main branch names correctly Johannes Schindelin via GitGitGadget 2020-06-15 15:05 [Phillip Wood](../a0982afb-8c44-aeff-1839-6e0aa897fcf2@gmail.com/) 2020-06-16 13:10 Jeff King 2020-06-16 15:49 [Phillip Wood](../8c65ab94-3b38-f8fc-c969-2d5eeff91ef1@gmail.com/) 2020-06-18 10:08 Johannes Schindelin 2020-06-15 17:09 [Junio C Hamano](../xmqqmu54w91n.fsf@gitster.c.googlers.com/) 2020-06-23 19:22 Johannes Schindelin 2020-06-15 12:50 [[PATCH v2 06/12] branch -m: adjustcore.mainBranchif necessary](../933e314813df34aafca1a47bfc1fcba389dd5364.1592225416.git.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-15 12:50 [PATCH v2 07/12] init: allow specifying the main branch name for the new repository Johannes Schindelin via GitGitGadget 2020-06-15 12:50 [[PATCH v2 08/12] init: allow overriding the default main branch name via the config](../c711eba7e760b4f80ab8ef69ed1d69d9710d85c7.1592225416.git.gitgitgadget@gmail.com/) Don Goodman-Wilson via GitGitGadget 2020-06-15 12:50 [PATCH v2 09/12] clone: handle overridden main branch names Johannes Schindelin via GitGitGadget 2020-06-16 13:22 [Jeff King](../20200616132216.GH666057@coredump.intra.peff.net/) 2020-06-23 20:58 Johannes Schindelin 2020-06-15 12:50 [[PATCH v2 10/12] remote: learn about the possibly-overridden default main branch name](../59b8f4cfbb278b1bcb9c189e5c57e37d98db3fbe.1592225416.git.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-15 12:50 [PATCH v2 11/12] submodule: use the correct default for the " Johannes Schindelin via GitGitGadget 2020-06-16 13:46 [Jeff King](../20200616134618.GI666057@coredump.intra.peff.net/) 2020-06-23 21:03 Johannes Schindelin 2020-06-23 21:14 [Jeff King](../20200623211426.GA2072288@coredump.intra.peff.net/) 2020-06-15 12:50 [PATCH v2 12/12] testsvn: respect init.defaultBranch Johannes Schindelin via GitGitGadget 2020-06-16 13:51 [Jeff King](../20200616135121.GJ666057@coredump.intra.peff.net/) 2020-06-23 21:07 Johannes Schindelin 2020-06-23 22:33 [[PATCH v3 0/8] Allow overriding the default name of the default branch](../pull.656.v3.git.1592951611.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-23 22:33 [PATCH v3 1/8] fmt-merge-msg: stop treating master specially Johannes Schindelin via GitGitGadget 2020-06-24 16:16 [Junio C Hamano](../xmqqzh8s7838.fsf@gitster.c.googlers.com/) 2020-06-25 13:07 Johannes Schindelin 2020-06-23 22:33 [[PATCH v3 2/8] send-pack/transport-helper: avoid mentioning a particular branch](../a29943d7bbc11a524089348a4abbd33c7514eee9.1592951611.git.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-24 0:36 Junio C Hamano 2020-06-24 12:44 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006241443200.54@tvgsbejvaqbjf.bet/) 2020-06-24 15:44 Junio C Hamano 2020-06-25 13:05 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006251504120.54@tvgsbejvaqbjf.bet/) 2020-06-23 22:33 [PATCH v3 3/8] submodule: use a better fall-back for missing remote..branch Johannes Schindelin via GitGitGadget 2020-06-24 2:18 [Philippe Blain](../D2ED942B-9397-472A-B017-190016531547@gmail.com/) 2020-06-24 12:51 Johannes Schindelin 2020-06-23 22:33 [[PATCH v3 4/8] init: allow specifying the initial branch name for the new repository](../e8a6587c1a783476413277296c6ce3db74e217e6.1592951611.git.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-24 0:58 Junio C Hamano 2020-06-24 12:55 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006241452540.54@tvgsbejvaqbjf.bet/) 2020-06-23 22:33 [PATCH v3 5/8] init: allow setting the default for the initial branch name via the config Don Goodman-Wilson via GitGitGadget 2020-06-24 1:05 [Junio C Hamano](../xmqqftal9su2.fsf@gitster.c.googlers.com/) 2020-06-24 12:56 Johannes Schindelin 2020-06-24 16:25 [Junio C Hamano](../xmqqo8p877o1.fsf@gitster.c.googlers.com/) 2020-06-23 22:33 [PATCH v3 6/8] clone: use configured default branch name when appropriate Johannes Schindelin via GitGitGadget 2020-06-23 22:33 [[PATCH v3 7/8] remote: use the](../00a1b281e5ae4cf14435a6745cc55fc248f378a5.1592951611.git.gitgitgadget@gmail.com/) " Johannes Schindelin via GitGitGadget 2020-06-24 1:10 Junio C Hamano 2020-06-24 13:00 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006241459000.54@tvgsbejvaqbjf.bet/) 2020-06-23 22:33 [PATCH v3 8/8] testsvn: respect init.defaultBranch Johannes Schindelin via GitGitGadget **2020-06-24 14:46 [Johannes Schindelin via GitGitGadget [this message]](#t)** 2020-06-24 14:46 [PATCH v4 1/9] fmt-merge-msg: stop treating master specially Johannes Schindelin via GitGitGadget 2020-06-29 16:20 [Đoàn Trần Công Danh](../20200629162003.GD20303@danh.dev/) 2020-06-29 13:27 Johannes Schindelin 2020-06-30 15:05 [Đoàn Trần Công Danh](../20200630150533.GF20303@danh.dev/) 2020-07-01 10:39 Johannes Schindelin 2020-07-01 19:54 [Junio C Hamano](../xmqq366bdn9d.fsf@gitster.c.googlers.com/) 2020-06-24 14:46 [PATCH v4 2/9] send-pack/transport-helper: avoid mentioning a particular branch Johannes Schindelin via GitGitGadget 2020-06-24 14:46 [[PATCH v4 3/9] submodule: fall back to remote's HEAD for missing remote.<name>.branch](../54563642dbf96fcb36993c2c2d36ebefaf220cce.1593009996.git.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-24 16:17 Junio C Hamano 2020-06-24 14:46 [[PATCH v4 4/9] docs: add missing diamond brackets](../1d723d35ed107e084a363b5eeb2b505dbe0c21eb.1593009996.git.gitgitgadget@gmail.com/) Johannes Schindelin via GitGitGadget 2020-06-24 14:46 [PATCH v4 5/9] init: allow specifying the initial branch name for the new repository Johannes Schindelin via GitGitGadget 2020-06-24 14:46 [[PATCH v4 6/9] init: allow setting the default for the initial branch name via the config](../7747eaa57de9324b7f7a46f86d1179ce751f76c9.1593009996.git.gitgitgadget@gmail.com/) Don Goodman-Wilson via GitGitGadget 2020-06-24 14:46 [PATCH v4 7/9] clone: use configured default branch name when appropriate Johannes Schindelin via GitGitGadget 2020-06-24 14:46 [[PATCH v4 8/9] remote: use the](../0a7c0bdfda0bd7af284d317531d0f3985a4077e5.1593009996.git.gitgitgadget@gmail.com/) " Johannes Schindelin via GitGitGadget 2020-06-24 14:46 [PATCH v4 9/9] testsvn: respect init.defaultBranch Johannes Schindelin via GitGitGadget 2020-06-24 16:26 [[PATCH v4 0/9] Allow overriding the default name of the default branch](../xmqqk0zw77li.fsf@gitster.c.googlers.com/) Junio C Hamano 2020-06-25 13:03 Johannes Schindelin 2020-06-29 22:41 [brian m. carlson](../20200629224113.GC9782@camp.crustytoothpaste.net/) 2020-07-12 13:03 Edward Thomson 2020-07-12 8:19 [Johannes Schindelin](../nycvar.QRO.7.76.6.2007121007440.50@tvgsbejvaqbjf.bet/) [not found] <CA+WKDT1GMNTY5N862-7ui70D6-b1u6fuUkvctEYo+57aJGbjmw@mail.gmail.com> 2020-07-14 14:55 [Johannes Schindelin](../nycvar.QRO.7.76.6.2007141640430.52@tvgsbejvaqbjf.bet/) 2020-06-16 9:47 [PATCH " Ævar Arnfjörð Bjarmason 2020-06-16 14:09 [Jeff King](../20200616140932.GK666057@coredump.intra.peff.net/) 2020-06-16 14:24 Jeff King 2020-06-23 20:28 [Johannes Schindelin](../nycvar.QRO.7.76.6.2006232214030.54@tvgsbejvaqbjf.bet/) 2020-06-17 20:28 Junio C Hamano


Reply instructions:

You may reply publicly to this message via plain-text email using any one of the following methods:

Be sure your reply has a Subject: header at the top and a blank line before the message body.


This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).