emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elpa.git and `new-master`


From: Boruch Baum
Subject: Re: elpa.git and `new-master`
Date: Wed, 16 Dec 2020 01:47:53 -0500
User-agent: NeoMutt/20180716

On Tue, 15 Dec 2020 16:35:44 -0500, Stefan Monnier wrote:
> > On Tue, 15 Dec 2020 10:57:25 -0800, Stephen Leake wrote:
> >>   As a result, I decided to create a fresh `new-master` branch which
> >>   doesn't share its history with `master`.  This new branch will replace
> >>   `master` in the coming days.
> > In keeping with the Black Lives Matter movement, can we name this branch
> > "main" instead of "master"?

+1. Also, I discourage names of the form 'new-*' because it begs some
future eventuality requiring some 'new-new-*' or 'newer-*' or
'newest-*'or 'really-honestly-the-newest-*'.

> Only if you can tell me how to arrange elpa.git such that `git clone
> https://.../elpa.git` gives you the `main` branch instead of the
> `master` branch.

You don't need to perform any arranging; the operation acts on the
currently active upstream branch (see 'git help clone' first paragraph):

  mkdir -p clone-test/{1,2}
  cd clone-test/1
  git init
  touch a
  git add a
  git -am "add a"
  git status
  git branch main
  git switch main
  git status
  cd ../2
  git clone ../1
  cd 1
  git status

The example creates a new branch 'main' but you could just as well just
rename the master branch to main:

  git branch -m master main

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]