Skip to content

Commit e74be1b

Browse files
Don Goodman-Wilsondscho
Don Goodman-Wilson
authored andcommitted
Change the default branch name to default
No matter how well-intentioned the current choice of the default branch name is, it is undeniable that it is a loaded term, causing all kinds of totally unwanted emotional harm. So let's go ahead and start the long process of changing it to a better name. Signed-off-by: Don Goodman-Wilson <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 524225f commit e74be1b

File tree

754 files changed

+5673
-5685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

754 files changed

+5673
-5685
lines changed

Documentation/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ endif
4949

5050
MAN_XML = $(patsubst %.txt,%.xml,$(MAN_TXT))
5151
MAN_HTML = $(patsubst %.txt,%.html,$(MAN_TXT))
52-
GIT_MAN_REF = master
52+
GIT_MAN_REF = default
5353

5454
OBSOLETE_HTML += everyday.html
5555
OBSOLETE_HTML += git-remote-helpers.html

Documentation/MyFirstContribution.txt

+16-16
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ commands such as `sl`.)
113113

114114
Let's start by making a development branch to work on our changes. Per
115115
`Documentation/SubmittingPatches`, since a brand new command is a new feature,
116-
it's fine to base your work on `master`. However, in the future for bugfixes,
116+
it's fine to base your work on `default`. However, in the future for bugfixes,
117117
etc., you should check that document and base it on the appropriate branch.
118118

119-
For the purposes of this document, we will base all our work on the `master`
119+
For the purposes of this document, we will base all our work on the `default`
120120
branch of the upstream project. Create the `psuh` branch you will use for
121121
development like so:
122122

123123
----
124-
$ git checkout -b psuh origin/master
124+
$ git checkout -b psuh origin/default
125125
----
126126

127127
We'll make a number of commits here in order to demonstrate how to send a topic
@@ -417,7 +417,7 @@ the declarations and the logic, respectively.
417417

418418
...
419419

420-
c = lookup_commit_reference_by_name("origin/master");
420+
c = lookup_commit_reference_by_name("origin/default");
421421

422422
if (c != NULL) {
423423
pp_commit_easy(CMIT_FMT_ONELINE, c, &commitline);
@@ -438,12 +438,12 @@ pretty-prints the commit according to that shorthand. These are similar to the
438438
formats available with `--pretty=FOO` in many Git commands.
439439

440440
Build it and run, and if you're using the same name in the example, you should
441-
see the subject line of the most recent commit in `origin/master` that you know
441+
see the subject line of the most recent commit in `origin/default` that you know
442442
about. Neat! Let's commit that as well.
443443

444444
----
445445
$ git add builtin/psuh.c
446-
$ git commit -sm "psuh: display the top of origin/master"
446+
$ git commit -sm "psuh: display the top of origin/default"
447447
----
448448

449449
[[add-documentation]]
@@ -780,13 +780,13 @@ by running `git branch`. If you didn't, now is a good time to move your new
780780
commits to their own branch.
781781

782782
As mentioned briefly at the beginning of this document, we are basing our work
783-
on `master`, so go ahead and update as shown below, or using your preferred
783+
on `default`, so go ahead and update as shown below, or using your preferred
784784
workflow.
785785

786786
----
787-
$ git checkout master
787+
$ git checkout default
788788
$ git pull -r
789-
$ git rebase master psuh
789+
$ git rebase default psuh
790790
----
791791

792792
Finally, you're ready to push your new topic branch! (Due to our branch and
@@ -904,7 +904,7 @@ Sending emails with Git is a two-part process; before you can prepare the emails
904904
themselves, you'll need to prepare the patches. Luckily, this is pretty simple:
905905

906906
----
907-
$ git format-patch --cover-letter -o psuh/ master..psuh
907+
$ git format-patch --cover-letter -o psuh/ default..psuh
908908
----
909909

910910
The `--cover-letter` parameter tells `format-patch` to create a cover letter
@@ -915,8 +915,8 @@ The `-o psuh/` parameter tells `format-patch` to place the patch files into a
915915
directory. This is useful because `git send-email` can take a directory and
916916
send out all the patches from there.
917917

918-
`master..psuh` tells `format-patch` to generate patches for the difference
919-
between `master` and `psuh`. It will make one patch file per commit. After you
918+
`default..psuh` tells `format-patch` to generate patches for the difference
919+
between `default` and `psuh`. It will make one patch file per commit. After you
920920
run, you can go have a look at each of the patches with your favorite text
921921
editor and make sure everything looks alright; however, it's not recommended to
922922
make code fixups via the patch file. It's a better idea to make the change the
@@ -1038,7 +1038,7 @@ similar.
10381038
First, generate your v2 patches again:
10391039

10401040
----
1041-
$ git format-patch -v2 --cover-letter -o psuh/ master..psuh
1041+
$ git format-patch -v2 --cover-letter -o psuh/ default..psuh
10421042
----
10431043

10441044
This will add your v2 patches, all named like `v2-000n-my-commit-subject.patch`,
@@ -1179,11 +1179,11 @@ look at the section below this one for some context.)
11791179
[[after-approval]]
11801180
=== After Review Approval
11811181

1182-
The Git project has four integration branches: `pu`, `next`, `master`, and
1182+
The Git project has four integration branches: `pu`, `next`, `default`, and
11831183
`maint`. Your change will be placed into `pu` fairly early on by the maintainer
11841184
while it is still in the review process; from there, when it is ready for wider
11851185
testing, it will be merged into `next`. Plenty of early testers use `next` and
1186-
may report issues. Eventually, changes in `next` will make it to `master`,
1186+
may report issues. Eventually, changes in `next` will make it to `default`,
11871187
which is typically considered stable. Finally, when a new release is cut,
11881188
`maint` is used to base bugfixes onto. As mentioned at the beginning of this
11891189
document, you can read `Documents/SubmittingPatches` for some more info about
@@ -1214,4 +1214,4 @@ against the appropriate GitGitGadget/Git branch.
12141214

12151215
If you're using `git send-email`, you can use it the same way as before, but you
12161216
should generate your diffs from `<topic>..<mybranch>` and base your work on
1217-
`<topic>` instead of `master`.
1217+
`<topic>` instead of `default`.

Documentation/MyFirstObjectWalk.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ revision walk is used for operations like `git log`.
2424

2525
== Setting Up
2626

27-
Create a new branch from `master`.
27+
Create a new branch from `default`.
2828

2929
----
30-
git checkout -b revwalk origin/master
30+
git checkout -b revwalk origin/default
3131
----
3232

3333
We'll put our fiddling into a new command. For fun, let's name it `git walken`.

Documentation/SubmittingPatches

+12-12
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,31 @@ In general, always base your work on the oldest branch that your
1313
change is relevant to.
1414

1515
* A bugfix should be based on `maint` in general. If the bug is not
16-
present in `maint`, base it on `master`. For a bug that's not yet
17-
in `master`, find the topic that introduces the regression, and
16+
present in `maint`, base it on `default`. For a bug that's not yet
17+
in `default`, find the topic that introduces the regression, and
1818
base your work on the tip of the topic.
1919

20-
* A new feature should be based on `master` in general. If the new
21-
feature depends on a topic that is in `pu`, but not in `master`,
20+
* A new feature should be based on `default` in general. If the new
21+
feature depends on a topic that is in `pu`, but not in `default`,
2222
base your work on the tip of that topic.
2323

24-
* Corrections and enhancements to a topic not yet in `master` should
24+
* Corrections and enhancements to a topic not yet in `default` should
2525
be based on the tip of that topic. If the topic has not been merged
2626
to `next`, it's alright to add a note to squash minor corrections
2727
into the series.
2828

2929
* In the exceptional case that a new feature depends on several topics
30-
not in `master`, start working on `next` or `pu` privately and send
30+
not in `default`, start working on `next` or `pu` privately and send
3131
out patches for discussion. Before the final merge, you may have to
32-
wait until some of the dependent topics graduate to `master`, and
32+
wait until some of the dependent topics graduate to `default`, and
3333
rebase your work.
3434

3535
* Some parts of the system have dedicated maintainers with their own
3636
repositories (see the section "Subsystems" below). Changes to
3737
these parts should be based on their trees.
3838

3939
To find the tip of a topic branch, run `git log --first-parent
40-
master..pu` and look for the merge commit. The second parent of this
40+
default..pu` and look for the merge commit. The second parent of this
4141
commit is the tip of the topic branch.
4242

4343
[[separate-commits]]
@@ -177,7 +177,7 @@ Please make sure your patch does not add commented out debugging code,
177177
or include any extra files which do not relate to what your patch
178178
is trying to achieve. Make sure to review
179179
your patch after generating it, to ensure accuracy. Before
180-
sending out, please make sure it cleanly applies to the `master`
180+
sending out, please make sure it cleanly applies to the `default`
181181
branch head. If you are preparing a work based on "next" branch,
182182
that is fine, but please mark it as such.
183183

@@ -420,7 +420,7 @@ help you find out who they are.
420420
good. Send it to the maintainer and cc the list.
421421

422422
. A topic branch is created with the patch and is merged to `next`,
423-
and cooked further and eventually graduates to `master`.
423+
and cooked further and eventually graduates to `default`.
424424

425425
In any time between the (2)-(3) cycle, the maintainer may pick it up
426426
from the list and queue it to `pu`, in order to make it easier for
@@ -431,11 +431,11 @@ their trees themselves.
431431
== Know the status of your patch after submission
432432

433433
* You can use Git itself to find out when your patch is merged in
434-
master. `git pull --rebase` will automatically skip already-applied
434+
default. `git pull --rebase` will automatically skip already-applied
435435
patches, and will let you know. This works only if you rebase on top
436436
of the branch in which your patch has been merged (i.e. it will not
437437
tell you if your patch is merged in pu if you rebase on top of
438-
master).
438+
default).
439439

440440
* Read the Git mailing list, the maintainer regularly posts messages
441441
entitled "What's cooking in git.git" and "What's in git.git" giving

Documentation/config/push.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ This mode has become the default in Git 2.0.
3737
* `matching` - push all branches having the same name on both ends.
3838
This makes the repository you are pushing to remember the set of
3939
branches that will be pushed out (e.g. if you always push 'maint'
40-
and 'master' there and no other branches, the repository you push
40+
and 'default' there and no other branches, the repository you push
4141
to will have these two branches, and your local 'maint' and
42-
'master' will be pushed there).
42+
'default' will be pushed there).
4343
+
4444
To use this mode effectively, you have to make sure _all_ the
4545
branches you would push out are ready to be pushed out before

Documentation/config/transfer.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ If you have multiple hideRefs values, later entries override earlier ones
5353
+
5454
If a namespace is in use, the namespace prefix is stripped from each
5555
reference before it is matched against `transfer.hiderefs` patterns.
56-
For example, if `refs/heads/master` is specified in `transfer.hideRefs` and
57-
the current namespace is `foo`, then `refs/namespaces/foo/refs/heads/master`
58-
is omitted from the advertisements but `refs/heads/master` and
59-
`refs/namespaces/bar/refs/heads/master` are still advertised as so-called
56+
For example, if `refs/heads/default` is specified in `transfer.hideRefs` and
57+
the current namespace is `foo`, then `refs/namespaces/foo/refs/heads/default`
58+
is omitted from the advertisements but `refs/heads/default` and
59+
`refs/namespaces/bar/refs/heads/default` are still advertised as so-called
6060
"have" lines. In order to match refs before stripping, add a `^` in front of
6161
the ref name. If you combine `!` and `^`, `!` must be specified first.
6262
+

Documentation/doc-diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Compared to a source diff, this can reveal mistakes in the formatting.
55
# For example:
66
#
7-
# ./doc-diff origin/master HEAD
7+
# ./doc-diff origin/default HEAD
88
#
9-
# would show the differences introduced by a branch based on master.
9+
# would show the differences introduced by a branch based on default.
1010

1111
OPTIONS_SPEC="\
1212
doc-diff [options] <from> <to> [-- <diff-options>]

Documentation/git-archimport.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ archives that it imports, it is also possible to specify Git branch names
4545
manually. To do so, write a Git branch name after each <archive/branch>
4646
parameter, separated by a colon. This way, you can shorten the Arch
4747
branch names and convert Arch jargon to Git jargon, for example mapping a
48-
"PROJECT{litdd}devo{litdd}VERSION" branch to "master".
48+
"PROJECT{litdd}devo{litdd}VERSION" branch to "default".
4949

5050
Associating multiple Arch branches to one Git branch is possible; the
5151
result will make the most sense only if no commits are made to the first

Documentation/git-bisect-lk2009.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ the branch we were in before we started bisecting:
294294
$ git bisect reset
295295
Checking out files: 100% (21549/21549), done.
296296
Previous HEAD position was 2ddcca3... Linux 2.6.26-rc1
297-
Switched to branch 'master'
297+
Switched to branch 'default'
298298
-------------
299299

300300
Driving a bisection automatically
@@ -1229,7 +1229,7 @@ message or the author. And it can also be used instead of git "grafts"
12291229
to link a repository with another old repository.
12301230

12311231
In fact it's this last feature that "sold" it to the Git community, so
1232-
it is now in the "master" branch of Git's Git repository and it should
1232+
it is now in the "default" branch of Git's Git repository and it should
12331233
be released in Git 1.6.5 in October or November 2009.
12341234

12351235
One problem with "git replace" is that currently it stores all the

Documentation/git-branch.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ $ git branch -D test <2>
331331
<1> Delete the remote-tracking branches "todo", "html" and "man". The next
332332
'fetch' or 'pull' will create them again unless you configure them not to.
333333
See linkgit:git-fetch[1].
334-
<2> Delete the "test" branch even if the "master" branch (or whichever branch
334+
<2> Delete the "test" branch even if the "default" branch (or whichever branch
335335
is currently checked out) does not have all commits from the test branch.
336336

337337
Listing branches from a specific remote::

Documentation/git-bundle.txt

+15-15
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ unbundle <file>::
6666
A list of arguments, acceptable to 'git rev-parse' and
6767
'git rev-list' (and containing a named ref, see SPECIFYING REFERENCES
6868
below), that specifies the specific objects and references
69-
to transport. For example, `master~10..master` causes the
70-
current master reference to be packaged along with all objects
69+
to transport. For example, `default~10..default` causes the
70+
current default reference to be packaged along with all objects
7171
added since its 10th ancestor commit. There is no explicit
7272
limit to the number of references and objects that may be
7373
packaged.
@@ -112,12 +112,12 @@ SPECIFYING REFERENCES
112112

113113
'git bundle' will only package references that are shown by
114114
'git show-ref': this includes heads, tags, and remote heads. References
115-
such as `master~1` cannot be packaged, but are perfectly suitable for
115+
such as `default~1` cannot be packaged, but are perfectly suitable for
116116
defining the basis. More than one reference may be packaged, and more
117117
than one basis can be specified. The objects packaged are those not
118118
contained in the union of the given bases. Each basis can be
119-
specified explicitly (e.g. `^master~10`), or implicitly (e.g.
120-
`master~10..master`, `--since=10.days.ago master`).
119+
specified explicitly (e.g. `^default~10`), or implicitly (e.g.
120+
`default~10..default`, `--since=10.days.ago default`).
121121

122122
It is very important that the basis used be held by the destination.
123123
It is okay to err on the side of caution, causing the bundle file
@@ -139,7 +139,7 @@ Assume you want to transfer the history from a repository R1 on machine A
139139
to another repository R2 on machine B.
140140
For whatever reason, direct connection between A and B is not allowed,
141141
but we can move data from A to B via some mechanism (CD, email, etc.).
142-
We want to update R2 with development made on the branch master in R1.
142+
We want to update R2 with development made on the branch default in R1.
143143

144144
To bootstrap the process, you can first create a bundle that does not have
145145
any basis. You can use a tag to remember up to what commit you last
@@ -148,16 +148,16 @@ with an incremental bundle:
148148

149149
----------------
150150
machineA$ cd R1
151-
machineA$ git bundle create file.bundle master
152-
machineA$ git tag -f lastR2bundle master
151+
machineA$ git bundle create file.bundle default
152+
machineA$ git tag -f lastR2bundle default
153153
----------------
154154

155155
Then you transfer file.bundle to the target machine B. Because this
156156
bundle does not require any existing object to be extracted, you can
157157
create a new repository on machine B by cloning from it:
158158

159159
----------------
160-
machineB$ git clone -b master /home/me/tmp/file.bundle R2
160+
machineB$ git clone -b default /home/me/tmp/file.bundle R2
161161
----------------
162162

163163
This will define a remote called "origin" in the resulting repository that
@@ -179,8 +179,8 @@ incremental bundle to update the other repository:
179179

180180
----------------
181181
machineA$ cd R1
182-
machineA$ git bundle create file.bundle lastR2bundle..master
183-
machineA$ git tag -f lastR2bundle master
182+
machineA$ git bundle create file.bundle lastR2bundle..default
183+
machineA$ git tag -f lastR2bundle default
184184
----------------
185185

186186
You then transfer the bundle to the other machine to replace
@@ -201,19 +201,19 @@ the linkgit:git-log[1] command. Here are more examples:
201201
You can use a tag that is present in both:
202202

203203
----------------
204-
$ git bundle create mybundle v1.0.0..master
204+
$ git bundle create mybundle v1.0.0..default
205205
----------------
206206

207207
You can use a basis based on time:
208208

209209
----------------
210-
$ git bundle create mybundle --since=10.days master
210+
$ git bundle create mybundle --since=10.days default
211211
----------------
212212

213213
You can use the number of commits:
214214

215215
----------------
216-
$ git bundle create mybundle -10 master
216+
$ git bundle create mybundle -10 default
217217
----------------
218218

219219
You can run `git-bundle verify` to see if you can extract from a bundle
@@ -231,7 +231,7 @@ regular repository which it fetches or pulls from. You can, for example, map
231231
references when fetching:
232232

233233
----------------
234-
$ git fetch mybundle master:localRef
234+
$ git fetch mybundle default:localRef
235235
----------------
236236

237237
You can also see what references it offers:

0 commit comments

Comments
 (0)