@@ -113,15 +113,15 @@ commands such as `sl`.)
113
113
114
114
Let's start by making a development branch to work on our changes. Per
115
115
`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,
117
117
etc., you should check that document and base it on the appropriate branch.
118
118
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 `
120
120
branch of the upstream project. Create the `psuh` branch you will use for
121
121
development like so:
122
122
123
123
----
124
- $ git checkout -b psuh origin/master
124
+ $ git checkout -b psuh origin/default
125
125
----
126
126
127
127
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.
417
417
418
418
...
419
419
420
- c = lookup_commit_reference_by_name("origin/master ");
420
+ c = lookup_commit_reference_by_name("origin/default ");
421
421
422
422
if (c != NULL) {
423
423
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
438
438
formats available with `--pretty=FOO` in many Git commands.
439
439
440
440
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
442
442
about. Neat! Let's commit that as well.
443
443
444
444
----
445
445
$ 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 "
447
447
----
448
448
449
449
[[add-documentation]]
@@ -780,13 +780,13 @@ by running `git branch`. If you didn't, now is a good time to move your new
780
780
commits to their own branch.
781
781
782
782
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
784
784
workflow.
785
785
786
786
----
787
- $ git checkout master
787
+ $ git checkout default
788
788
$ git pull -r
789
- $ git rebase master psuh
789
+ $ git rebase default psuh
790
790
----
791
791
792
792
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
904
904
themselves, you'll need to prepare the patches. Luckily, this is pretty simple:
905
905
906
906
----
907
- $ git format-patch --cover-letter -o psuh/ master ..psuh
907
+ $ git format-patch --cover-letter -o psuh/ default ..psuh
908
908
----
909
909
910
910
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
915
915
directory. This is useful because `git send-email` can take a directory and
916
916
send out all the patches from there.
917
917
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
920
920
run, you can go have a look at each of the patches with your favorite text
921
921
editor and make sure everything looks alright; however, it's not recommended to
922
922
make code fixups via the patch file. It's a better idea to make the change the
@@ -1038,7 +1038,7 @@ similar.
1038
1038
First, generate your v2 patches again:
1039
1039
1040
1040
----
1041
- $ git format-patch -v2 --cover-letter -o psuh/ master ..psuh
1041
+ $ git format-patch -v2 --cover-letter -o psuh/ default ..psuh
1042
1042
----
1043
1043
1044
1044
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.)
1179
1179
[[after-approval]]
1180
1180
=== After Review Approval
1181
1181
1182
- The Git project has four integration branches: `pu`, `next`, `master `, and
1182
+ The Git project has four integration branches: `pu`, `next`, `default `, and
1183
1183
`maint`. Your change will be placed into `pu` fairly early on by the maintainer
1184
1184
while it is still in the review process; from there, when it is ready for wider
1185
1185
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 `,
1187
1187
which is typically considered stable. Finally, when a new release is cut,
1188
1188
`maint` is used to base bugfixes onto. As mentioned at the beginning of this
1189
1189
document, you can read `Documents/SubmittingPatches` for some more info about
@@ -1214,4 +1214,4 @@ against the appropriate GitGitGadget/Git branch.
1214
1214
1215
1215
If you're using `git send-email`, you can use it the same way as before, but you
1216
1216
should generate your diffs from `<topic>..<mybranch>` and base your work on
1217
- `<topic>` instead of `master `.
1217
+ `<topic>` instead of `default `.
0 commit comments