Skip to content

Inclusive naming: the long game #655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 189 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
3cf3842
doc: grep: unify info on configuration variables
matheustavares Sep 2, 2020
7974c24
t1308-config-set: avoid false positives when using test-config
matheustavares Sep 10, 2020
25d9f8f
t/helper/test-config: be consistent with exit codes
matheustavares Sep 10, 2020
82f514b
t/helper/test-config: diagnose missing arguments
matheustavares Sep 10, 2020
01c1760
t/helper/test-config: unify exit labels
matheustavares Sep 10, 2020
a64d22e
config: make do_git_config_sequence receive a 'struct repository'
jrn Sep 10, 2020
156506c
config: correctly read worktree configs in submodules
matheustavares Sep 10, 2020
57b0ee2
grep: honor sparse checkout patterns
matheustavares Sep 10, 2020
aaff72b
config: add setting to ignore sparsity patterns in some cmds
matheustavares Sep 10, 2020
c1bcd92
fsck_tree(): fix shadowed variable
peff Oct 5, 2020
a04d2c5
fsck_tree(): wrap some long lines
peff Oct 5, 2020
288add7
t7415: rename to expand scope
peff Oct 5, 2020
8142502
t7450: test verify_path() handling of gitmodules
peff Oct 5, 2020
2884d88
t7450: test .gitmodules symlink matching against obscured names
peff Oct 5, 2020
901c98e
t0060: test obscured .gitattributes and .gitignore matching
peff Oct 5, 2020
dd4c2fe
verify_path(): disallow symlinks in .gitattributes and .gitignore
peff Oct 5, 2020
b77ec0c
fsck: complain when .gitattributes or .gitignore is a symlink
peff Oct 5, 2020
899bc21
docs: document symlink restrictions for .git* files
peff Oct 23, 2020
21dc182
Merge branch 'js/userdiff-php' into next
gitster Oct 27, 2020
681f753
Merge branch 'kb/userdiff-rust-macro-rules' into next
gitster Oct 27, 2020
d694e89
Merge branch 'rk/completion-stash' into next
gitster Oct 27, 2020
253e1d0
Merge branch 'sd/userdiff-css-update' into next
gitster Oct 27, 2020
e7f8479
Merge branch 'cw/ci-ghwf-check-ws-errors' into next
gitster Oct 27, 2020
1391e1a
Merge branch 'rs/dist-doc-with-git-archive' into next
gitster Oct 27, 2020
b33d598
Merge branch 'rs/tighten-callers-of-deref-tag' into next
gitster Oct 27, 2020
398e14f
Merge branch 'rs/worktree-list-show-locked' into next
gitster Oct 27, 2020
226ac66
Merge branch 'ds/maintenance-part-2' into next
gitster Oct 27, 2020
648422f
Merge branch 'sk/force-if-includes' into next
gitster Oct 27, 2020
83fbb58
Merge branch 'sb/clone-origin' into next
gitster Oct 27, 2020
1c401bc
Merge branch 'dl/checkout-p-merge-base' into next
gitster Oct 27, 2020
ba63e6e
Merge branch 'dl/checkout-guess' into next
gitster Oct 27, 2020
1b550f3
Merge branch 'js/avoid-split-sideband-message' into next
gitster Oct 27, 2020
443459f
Merge branch 'en/t7518-unflake' into next
gitster Oct 27, 2020
2f0a73f
Merge branch 'jk/fast-import-marks-alloc-fix' into next
gitster Oct 27, 2020
62d89db
Merge branch 'es/test-cmp-typocatcher' into next
gitster Oct 27, 2020
a0cf763
Merge branch 'ds/commit-graph-merging-fix' into next
gitster Oct 27, 2020
429d137
Merge branch 'ds/maintenance-commit-graph-auto-fix' into next
gitster Oct 27, 2020
d0e5066
Merge branch 'bk/sob-dco' into next
gitster Oct 27, 2020
9b70aa7
Merge branch 'ct/t0000-use-test-path-is-file' into next
gitster Oct 27, 2020
8b58e54
Merge branch 'cm/t7xxx-cleanup' into next
gitster Oct 27, 2020
7e94297
Merge branch 'dl/resurrect-update-for-sha256' into next
gitster Oct 27, 2020
4832a8f
Merge branch 'js/ci-ghwf-dedup-tests' into next
gitster Oct 27, 2020
c1dd37b
Merge branch 'jk/symlinked-dotgitx-files' into next
gitster Oct 27, 2020
114d940
Merge branch 'dl/diff-merge-base' into next
gitster Oct 27, 2020
6ab486f
Merge branch 'tk/credential-config' into next
gitster Oct 27, 2020
100dc6a
Merge branch 'lo/zsh-completion' into next
gitster Oct 27, 2020
1ba987d
Merge branch 'jk/fast-import-marks-cleanup' into next
gitster Oct 27, 2020
644026c
Merge branch 'as/sample-push-to-checkout-hook' into next
gitster Oct 27, 2020
c888cb8
Merge branch 'jk/no-common' into next
gitster Oct 27, 2020
3a4cb82
Merge branch 'nk/dir-c-comment-update' into next
gitster Oct 27, 2020
fa4e128
Merge branch 'jk/report-fn-typedef' into next
gitster Oct 27, 2020
3d6e77c
Merge branch 'en/test-selector' into next
gitster Oct 27, 2020
e1c956e
Merge branch 'sc/sequencer-gpg-octopus' into next
gitster Oct 27, 2020
f060893
Merge branch 'jt/apply-reverse-twice' into next
gitster Oct 27, 2020
c68727d
Merge branch 'mk/diff-ignore-regex' into next
gitster Oct 27, 2020
1234e82
Merge branch 'en/sequencer-rollback-lock-cleanup' into next
gitster Oct 27, 2020
b8582f8
Merge branch 'js/t7006-cleanup' into next
gitster Oct 27, 2020
743b549
Merge branch 'bc/svn-hash-oid-fix' into next
gitster Oct 27, 2020
2b34be9
Merge branch 've/userdiff-bash' into next
gitster Oct 27, 2020
0a66b76
Merge branch 'js/default-branch-name-part-4-minus-1' into next
gitster Oct 27, 2020
06b2f75
Merge branch 'js/avoid-split-sideband-message' into next
gitster Oct 27, 2020
6691a3f
Sync with master
gitster Oct 27, 2020
435792b
Merge branch 'mr/bisect-in-c-3' into next
gitster Oct 28, 2020
7bbe123
Merge branch 'en/dir-rename-tests' into next
gitster Oct 28, 2020
96e0d84
Merge branch 'es/tutorial-mention-asciidoc-early' into next
gitster Oct 28, 2020
fd199be
Merge branch 'as/tests-cleanup' into next
gitster Oct 28, 2020
d3af804
Merge branch 'nk/diff-files-vs-fsmonitor' into next
gitster Oct 28, 2020
5fcb98f
Merge branch 'jk/perl-warning' into next
gitster Oct 28, 2020
ac1ea6b
Sync with master
gitster Oct 29, 2020
2dd2c8a
Merge branch 'jc/doc-final-resend' into next
gitster Oct 30, 2020
77dddff
Merge branch 'jk/checkout-index-errors' into next
gitster Oct 30, 2020
8be7758
Merge branch 'pb/ref-filter-with-crlf' into next
gitster Oct 30, 2020
1fc1194
Merge branch 'ab/git-remote-exit-code' into next
gitster Oct 30, 2020
9ba3fad
Merge branch 'jk/committer-date-is-author-date-fix-simplify' into next
gitster Oct 30, 2020
8131784
Merge branch 'jk/sideband-more-error-checking' into next
gitster Oct 30, 2020
5d2a92d
Sync with master
gitster Oct 30, 2020
2c5e3a7
Merge branch 'fc/zsh-completion' into next
gitster Nov 2, 2020
d625eda
Merge branch 'js/default-branch-name-adjust-t5411' into next
gitster Nov 2, 2020
ba3dd9e
Merge branch 'jc/sequencer-stopped-sha-simplify' into next
gitster Nov 2, 2020
8a58376
Sync with master
gitster Nov 2, 2020
692e0b2
Merge branch 'so/format-patch-doc-on-default-diff-format' into next
gitster Nov 4, 2020
cb1e1d7
Merge branch 'rs/clear-commit-marks-in-repo' into next
gitster Nov 4, 2020
ddc4192
Merge branch 'sd/prompt-local-variable' into next
gitster Nov 4, 2020
7194d3e
Merge branch 'rs/pack-write-hashwrite-simplify' into next
gitster Nov 4, 2020
5f4fa51
Merge branch 'rs/worktree-list-show-locked' into next
gitster Nov 4, 2020
dc11218
Merge branch 'cw/ci-ghwf-check-ws-errors' into next
gitster Nov 4, 2020
01a1f1d
Merge branch 'dd/upload-pack-stateless-eof' into next
gitster Nov 9, 2020
568ba5a
Merge branch 'js/default-branch-name-adjust-t5515' into next
gitster Nov 9, 2020
8ac9fe9
Merge branch 'en/merge-tests' into next
gitster Nov 9, 2020
9fed160
Merge branch 'nk/perf-fsmonitor' into next
gitster Nov 9, 2020
3da6b6f
Merge branch 'rs/empty-reflog-check-fix' into next
gitster Nov 9, 2020
47c2c88
Merge branch 'jc/line-log-takes-no-pathspec' into next
gitster Nov 9, 2020
09efe81
Merge branch 'jc/abbrev-doc' into next
gitster Nov 9, 2020
1f1bb6e
Merge branch 'jk/format-patch-output' into next
gitster Nov 9, 2020
ed6106b
Merge branch 'mc/typofix' into next
gitster Nov 9, 2020
6d89b96
Merge branch 'jk/diff-release-filespec-fix' into next
gitster Nov 9, 2020
91a67b8
Merge branch 'dg/bswap-msvc' into next
gitster Nov 9, 2020
3833889
Merge branch 'js/test-whitespace-fixes' into next
gitster Nov 9, 2020
a4b08b4
Merge branch 'js/p4-default-branch' into next
gitster Nov 9, 2020
c4ce007
Merge branch 'js/ci-github-set-env' into next
gitster Nov 9, 2020
b3594d0
Merge branch 'js/test-file-size' into next
gitster Nov 9, 2020
ecc2c50
Sync with master
gitster Nov 9, 2020
2dbf2ce
Merge branch 'rs/worktree-list-show-locked'
dscho Nov 6, 2020
9bee809
Merge branch 'rs/archive-high-compression' into next
gitster Nov 10, 2020
038a529
Merge branch 'pw/rebase-i-orig-head' into next
gitster Nov 10, 2020
fe9475c
Merge branch 'ds/maintenance-part-3' into next
gitster Nov 10, 2020
ed9eed1
Merge branch 'en/merge-ort-api-null-impl' into next
gitster Nov 10, 2020
221bb3f
Merge branch 'pb/blame-funcname-range-userdiff' into next
gitster Nov 10, 2020
75f1f2b
Merge branch 'fc/bash-completion-alias-of-alias' into next
gitster Nov 10, 2020
8cfbe66
Merge branch 'jc/sparse-error-for-developer-build' into next
gitster Nov 10, 2020
384ace4
Merge branch 'jc/blame-ignore-fix' into next
gitster Nov 10, 2020
e3ab0a0
Merge branch 'en/merge-tests'
dscho Nov 10, 2020
ee20cb6
Merge branch 'jk/diff-release-filespec-fix'
dscho Nov 10, 2020
7b110c9
Merge branch 'js/test-file-size'
dscho Nov 8, 2020
f4c028a
Merge branch 'js/test-whitespace-fixes'
dscho Nov 8, 2020
2fd3132
Merge branch 'js/default-branch-name-adjust-t5515'
dscho Oct 12, 2020
3c2d111
Merge branch 'js/p4-default-branch'
dscho Nov 10, 2020
6b9e819
Merge branch 'dg/bswap-msvc' into next
gitster Nov 11, 2020
17e19bb
Merge branch 'jc/format-patch-name-max' into next
gitster Nov 11, 2020
2d517d1
Merge branch 'jk/rev-parse-end-of-options' into next
gitster Nov 11, 2020
0fa62a7
Sync with master
gitster Nov 11, 2020
3b21625
Merge branch 'jk/diff-release-filespec-fix' into next
gitster Nov 12, 2020
41519a5
Merge branch 'en/strmap' into next
gitster Nov 12, 2020
e1bd51e
Merge branch 'ab/config-mak-uname-simplify' into next
gitster Nov 12, 2020
aff20da
Merge branch 'pd/mergetool-nvimdiff' into next
gitster Nov 12, 2020
a291dfb
t0060: preemptively adjust alignment
dscho Nov 6, 2020
abc2a6f
t[01]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
45d9f8b
t2*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
3837b2e
t3[0-3]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
559f13b
t3416: preemptively adjust alignment in a comment
dscho Nov 6, 2020
e14815b
t34*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
aff7f1f
t3[5-9]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
5040271
t4*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
23f80d9
t5323: prepare centered comment for `master` -> `main`
dscho Nov 7, 2020
2908935
t5[0-4]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
4acf6d4
t5503: prepare aligned comment for replacing `master` with `main`
dscho Nov 7, 2020
1eb571c
t550*: adjust the references to the default branch name "main"
dscho Oct 14, 2020
72180da
t551*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
fb6600e
t55[23]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
8e64876
t55[4-9]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
c9e41c4
t5[6-9]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
577a832
t6[0-3]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
de2b10e
t64*: preemptively adjust alignment to prepare for `master` -> `main`
dscho Nov 8, 2020
bb6b8a8
t6[4-9]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
b2da32c
t7[0-4]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
1cab928
t7[5-9]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
ab755b5
t8*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
15bcf56
t9[0-4]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
f08aec0
t9[5-7]*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
f93447c
tests(git-p4): transition to the default branch name `main`
dscho Nov 7, 2020
1a2332a
t99*: adjust the references to the default branch name "main"
dscho Aug 20, 2020
0c4a351
tests: drop prereq `PREPARE_FOR_MAIN_BRANCH` where no longer needed
dscho Aug 20, 2020
45fb86f
docs: allow non-tab indentation
dscho Nov 8, 2020
e08795d
tutorials: adjust for the default branch name now being `main`
dscho Oct 14, 2020
84ceb1a
Change the default branch name to `main`
Jun 12, 2020
cc3c466
user-manual: adjust for the default branch name now being `main`
dscho Oct 14, 2020
2c50507
docs: adjust for the default branch name now being `main`
dscho Oct 14, 2020
a3bdd01
docs/howto: use `main` when talking about the main branch
dscho Oct 14, 2020
51d512c
docs/technical: adjust for the `main` branch name
dscho Oct 14, 2020
e79bbb9
t4013: prepare for the new default branch name "main"
dscho Aug 17, 2020
a8b75ca
Merge branch 'mt/grep-sparse-checkout'
dscho Nov 13, 2020
60f5295
Merge branch 'use-main-as-default-branch-name'
dscho Aug 21, 2020
4234926
Merge branch 'use-main-as-default-branch-name-docs'
dscho Oct 14, 2020
c18d924
Merge branch 'prepare-for-main-branch-t4013'
dscho Oct 23, 2020
eb983b5
Merge branch 'pw/rebase-i-orig-head'
dscho Nov 13, 2020
4265fd2
Merge branch 'fc/bash-completion-alias-of-alias'
dscho Nov 13, 2020
29570a3
tests: use `main` as default branch name in the remaining test scripts
dscho Nov 13, 2020
db19aba
tests: get rid of the transitional prereq
dscho Aug 20, 2020
246e9dd
Retire GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
dscho Aug 21, 2020
b40a4d0
t: adjust a couple comments to talk about the `main` branch now
dscho Oct 14, 2020
1beeef5
t/perf: use `main` as default branch name
dscho Oct 14, 2020
48aaf3f
remote: rename the `--master` option to `--main`
dscho Oct 3, 2020
221e814
contrib: adjust to the new default branch name
dscho Oct 3, 2020
7883052
hooks/pre-rebase: use the new default branch name
dscho Jun 10, 2020
0e2adb0
t9145: adjust the file name
dscho Aug 20, 2020
e23a044
refs: rename variables/parameters to reflect the new default branch name
dscho Jun 10, 2020
8195fc2
[RFH] p4: use the branch name `main` by default
dscho Oct 3, 2020
eeddbab
Adjust some code comments to the new default branch name
dscho Oct 3, 2020
ea3a81a
git-gui: adjust for the changed default branch name
dscho Oct 3, 2020
6d19546
gitk: include `main` in the visible refs by default
dscho Oct 3, 2020
da7fa84
cvsimport: use the new default branch name `main`
dscho Oct 3, 2020
067029a
WIP docs/git-p4: use `main` as default branch name
dscho Oct 14, 2020
54877ea
gitweb: treat `main` as a branch name commonly used for primary branches
dscho Oct 3, 2020
0846ba3
Merge branch 'use-main-as-default-branch-name-extra'
dscho Aug 21, 2020
91d7a8d
Merge branch 'git-gui/use-main-as-default-branch-name'
dscho Oct 3, 2020
0ad5d36
Merge branch 'gitk/use-main-as-default-branch-name'
dscho Oct 3, 2020
ea2dc01
Merge branch 'cvsimport-use-main-as-default-branch-name'
dscho Oct 3, 2020
b87892c
Merge branch 'p4-use-main-as-default-branch-name'
dscho Oct 3, 2020
36305c8
Merge branch 'gitweb-use-main-as-default-branch-name'
dscho Oct 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
/git-filter-branch
/git-fmt-merge-msg
/git-for-each-ref
/git-for-each-repo
/git-format-patch
/git-fsck
/git-fsck-objects
Expand Down
2 changes: 1 addition & 1 deletion Documentation/.gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.txt whitespace
*.txt whitespace=-indent-with-non-tab
9 changes: 5 additions & 4 deletions Documentation/blame-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@

-L <start>,<end>::
-L :<funcname>::
Annotate only the given line range. May be specified multiple times.
Overlapping ranges are allowed.
Annotate only the line range given by '<start>,<end>',
or by the function name regex '<funcname>'.
May be specified multiple times. Overlapping ranges are allowed.
+
<start> and <end> are optional. ``-L <start>'' or ``-L <start>,'' spans from
<start> to end of file. ``-L ,<end>'' spans from start of file to <end>.
'<start>' and '<end>' are optional. `-L <start>` or `-L <start>,` spans from
'<start>' to end of file. `-L ,<end>` spans from start of file to '<end>'.
+
include::line-range-format.txt[]

Expand Down
2 changes: 2 additions & 0 deletions Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ include::config/sequencer.txt[]

include::config/showbranch.txt[]

include::config/sparse.txt[]

include::config/splitindex.txt[]

include::config/ssh.txt[]
Expand Down
5 changes: 5 additions & 0 deletions Documentation/config/format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ format.outputDirectory::
Set a custom directory to store the resulting files instead of the
current working directory. All directory components will be created.

format.filenameMaxLength::
The maximum length of the output filenames generated by the
`format-patch` command; defaults to 64. Can be overridden
by the `--filename-max-length=<n>` command line option.

format.useAutoBase::
A boolean value which lets you enable the `--base=auto` option of
format-patch by default. Can also be set to "whenAble" to allow
Expand Down
18 changes: 16 additions & 2 deletions Documentation/config/grep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,23 @@ grep.extendedRegexp::
other than 'default'.

grep.threads::
Number of grep worker threads to use.
See `grep.threads` in linkgit:git-grep[1] for more information.
Number of grep worker threads to use. See `--threads`
ifndef::git-grep[]
in linkgit:git-grep[1]
endif::git-grep[]
for more information.

grep.fullName::
If set to true, enable `--full-name` option by default.

grep.fallbackToNoIndex::
If set to true, fall back to git grep --no-index if git grep
is executed outside of a git repository. Defaults to false.

ifdef::git-grep[]
sparse.restrictCmds::
See base definition in linkgit:git-config[1]. grep honors
sparse.restrictCmds by limiting searches to the sparsity paths in three
cases: when searching the working tree, when searching the index with
--cached, and when searching a specified commit.
endif::git-grep[]
25 changes: 25 additions & 0 deletions Documentation/config/maintenance.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
maintenance.auto::
This boolean config option controls whether some commands run
`git maintenance run --auto` after doing their normal work. Defaults
to true.

maintenance.strategy::
This string config option provides a way to specify one of a few
recommended schedules for background maintenance. This only affects
which tasks are run during `git maintenance run --schedule=X`
commands, provided no `--task=<task>` arguments are provided.
Further, if a `maintenance.<task>.schedule` config value is set,
then that value is used instead of the one provided by
`maintenance.strategy`. The possible strategy strings are:
+
* `none`: This default setting implies no task are run at any schedule.
* `incremental`: This setting optimizes for performing small maintenance
activities that do not delete any data. This does not schedule the `gc`
task, but runs the `prefetch` and `commit-graph` tasks hourly and the
`loose-objects` and `incremental-repack` tasks daily.

maintenance.<task>.enabled::
This boolean config option controls whether the maintenance task
with name `<task>` is run when no `--task` option is specified to
`git maintenance run`. These config values are ignored if a
`--task` option exists. By default, only `maintenance.gc.enabled`
is true.

maintenance.<task>.schedule::
This config option controls whether or not the given `<task>` runs
during a `git maintenance run --schedule=<frequency>` command. The
value must be one of "hourly", "daily", or "weekly".

maintenance.commit-graph.auto::
This integer config option controls how often the `commit-graph` task
should be run as part of `git maintenance run --auto`. If zero, then
Expand Down
4 changes: 2 additions & 2 deletions Documentation/config/push.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ This mode has become the default in Git 2.0.
* `matching` - push all branches having the same name on both ends.
This makes the repository you are pushing to remember the set of
branches that will be pushed out (e.g. if you always push 'maint'
and 'master' there and no other branches, the repository you push
and 'main' there and no other branches, the repository you push
to will have these two branches, and your local 'maint' and
'master' will be pushed there).
'main' will be pushed there).
+
To use this mode effectively, you have to make sure _all_ the
branches you would push out are ready to be pushed out before
Expand Down
4 changes: 2 additions & 2 deletions Documentation/config/receive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ receive.procReceiveRefs::
`execute_commands` function.
+
For example, if this variable is set to "refs/for", pushing to reference
such as "refs/for/master" will not create or update a reference named
"refs/for/master", but may create or update a pull request directly by
such as "refs/for/main" will not create or update a reference named
"refs/for/main", but may create or update a pull request directly by
running the hook "proc-receive".
+
Optional modifiers can be provided in the beginning of the value to filter
Expand Down
20 changes: 20 additions & 0 deletions Documentation/config/sparse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
sparse.restrictCmds::
Only meaningful in conjunction with core.sparseCheckout. This option
extends sparse checkouts (which limit which paths are written to the
working tree), so that output and operations are also limited to the
sparsity paths where possible and implemented. The purpose of this
option is to (1) focus output for the user on the portion of the
repository that is of interest to them, and (2) enable potentially
dramatic performance improvements, especially in conjunction with
partial clones.
+
When this option is true (default), some git commands may limit their behavior
to the paths specified by the sparsity patterns, or to the intersection of
those paths and any (like `*.c`) that the user might also specify on the
command line. When false, the affected commands will work on full trees,
ignoring the sparsity patterns. For now, only git-grep honors this setting.
+
Note: commands which export, integrity check, or create history will always
operate on full trees (e.g. fast-export, format-patch, fsck, commit, etc.),
unaffected by any sparsity patterns. Also, writing commands such as
sparse-checkout and read-tree will not be affected by this configuration.
8 changes: 4 additions & 4 deletions Documentation/config/transfer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ If you have multiple hideRefs values, later entries override earlier ones
+
If a namespace is in use, the namespace prefix is stripped from each
reference before it is matched against `transfer.hiderefs` patterns.
For example, if `refs/heads/master` is specified in `transfer.hideRefs` and
the current namespace is `foo`, then `refs/namespaces/foo/refs/heads/master`
is omitted from the advertisements but `refs/heads/master` and
`refs/namespaces/bar/refs/heads/master` are still advertised as so-called
For example, if `refs/heads/main` is specified in `transfer.hideRefs` and
the current namespace is `foo`, then `refs/namespaces/foo/refs/heads/main`
is omitted from the advertisements but `refs/heads/main` and
`refs/namespaces/bar/refs/heads/main` are still advertised as so-called
"have" lines. In order to match refs before stripping, add a `^` in front of
the ref name. If you combine `!` and `^`, `!` must be specified first.
+
Expand Down
5 changes: 4 additions & 1 deletion Documentation/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,10 @@ endif::git-format-patch[]

-W::
--function-context::
Show whole surrounding functions of changes.
Show whole function as context lines for each change.
The function names are determined in the same way as
`git diff` works out patch hunk headers (see 'Defining a
custom hunk-header' in linkgit:gitattributes[5]).

ifndef::git-format-patch[]
ifndef::git-log[]
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-archimport.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ archives that it imports, it is also possible to specify Git branch names
manually. To do so, write a Git branch name after each <archive/branch>
parameter, separated by a colon. This way, you can shorten the Arch
branch names and convert Arch jargon to Git jargon, for example mapping a
"PROJECT{litdd}devo{litdd}VERSION" branch to "master".
"PROJECT{litdd}devo{litdd}VERSION" branch to "main".

Associating multiple Arch branches to one Git branch is possible; the
result will make the most sense only if no commits are made to the first
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ $ git branch -D test <2>
<1> Delete the remote-tracking branches "todo", "html" and "man". The next
'fetch' or 'pull' will create them again unless you configure them not to.
See linkgit:git-fetch[1].
<2> Delete the "test" branch even if the "master" branch (or whichever branch
<2> Delete the "test" branch even if the "main" branch (or whichever branch
is currently checked out) does not have all commits from the test branch.

Listing branches from a specific remote::
Expand Down
30 changes: 15 additions & 15 deletions Documentation/git-bundle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ unbundle <file>::
A list of arguments, acceptable to 'git rev-parse' and
'git rev-list' (and containing a named ref, see SPECIFYING REFERENCES
below), that specifies the specific objects and references
to transport. For example, `master~10..master` causes the
current master reference to be packaged along with all objects
to transport. For example, `main~10..main` causes the
current main reference to be packaged along with all objects
added since its 10th ancestor commit. There is no explicit
limit to the number of references and objects that may be
packaged.
Expand Down Expand Up @@ -119,12 +119,12 @@ SPECIFYING REFERENCES

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

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

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

----------------
machineA$ cd R1
machineA$ git bundle create file.bundle master
machineA$ git tag -f lastR2bundle master
machineA$ git bundle create file.bundle main
machineA$ git tag -f lastR2bundle main
----------------

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

----------------
machineB$ git clone -b master /home/me/tmp/file.bundle R2
machineB$ git clone -b main /home/me/tmp/file.bundle R2
----------------

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

----------------
machineA$ cd R1
machineA$ git bundle create file.bundle lastR2bundle..master
machineA$ git tag -f lastR2bundle master
machineA$ git bundle create file.bundle lastR2bundle..main
machineA$ git tag -f lastR2bundle main
----------------

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

----------------
$ git bundle create mybundle v1.0.0..master
$ git bundle create mybundle v1.0.0..main
----------------

You can use a basis based on time:

----------------
$ git bundle create mybundle --since=10.days master
$ git bundle create mybundle --since=10.days main
----------------

You can use the number of commits:

----------------
$ git bundle create mybundle -10 master
$ git bundle create mybundle -10 main
----------------

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

----------------
$ git fetch mybundle master:localRef
$ git fetch mybundle main:localRef
----------------

You can also see what references it offers:
Expand Down
Loading