File: 20220826-default_branch.rst

package info (click to toggle)
rdflib 7.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 77,580 kB
  • sloc: python: 58,671; sh: 153; makefile: 88; ruby: 74; xml: 45
file content (42 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Default Branch Name
===========================

.. admonition:: Status

   Accepted

Context
-------

In recent years usage of the word ``master`` has become somewhat controversial
[SFC-BNAMING]_ and consequently default branch name of Git repos has become
``main``, both in Git itself [SFC-BNAMING]_ and in Git hosting solutions such as
GitHub [GH-BRANCHES]_.

Decision
--------

RDFLib's
default branch will be renamed from ``master`` to ``main``. This is primarily to stay in line with modern conventions and to adhere to the principle of least surprise.

Consequences
------------

Anticipated negative consequences:

* Some links to old code will be broken.
* Some people's workflow may break unexpectedly and need adjusting.
* Any code and systems reliant on the old default branch name will fail.

Anticipated positive consequences:

* It will become a bit easier to work with RDFLib for developers that are used
  to ``main`` as the default branch.

References
----------

.. [GH-BRANCHES] `GitHub: About the default branch
 <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches#about-the-default-branch>`_
.. [SFC-BNAMING] `Regarding Git and Branch Naming
 <https://sfconservancy.org/news/2020/jun/23/gitbranchname/>`_