Skip to content

Commit

Permalink
update to v2.47.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Noël Avila <[email protected]>
  • Loading branch information
jnavila committed Sep 29, 2024
1 parent 8a9d004 commit 214c2d0
Show file tree
Hide file tree
Showing 23 changed files with 143 additions and 35 deletions.
2 changes: 1 addition & 1 deletion GIT-VERSION-FILE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GIT_VERSION = 2.46.0
GIT_VERSION = 2.47.0
10 changes: 10 additions & 0 deletions en/config/init.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ endif::[]
`init.defaultBranch`::
Allows overriding the default branch name e.g. when initializing
a new repository.
`init.defaultObjectFormat`::
Allows overriding the default object format for new repositories. See
`--object-format=` in linkgit:git-init[1]. Both the command line option
and the `GIT_DEFAULT_HASH` environment variable take precedence over
this config.
`init.defaultRefFormat`::
Allows overriding the default ref storage format for new repositories.
See `--ref-format=` in linkgit:git-init[1]. Both the command line
option and the `GIT_DEFAULT_REF_FORMAT` environment variable take
precedence over this config.
5 changes: 3 additions & 2 deletions en/fetch-options.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
--[no-]all::
Fetch all remotes. This overrides the configuration variable
`fetch.all`.
Fetch all remotes, except for the ones that has the
`remote.<name>.skipFetchAll` configuration variable set.
This overrides the configuration variable fetch.all`.

-a::
--append::
Expand Down
9 changes: 8 additions & 1 deletion en/git-apply.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ git-apply - Apply a patch to files and/or to the index
SYNOPSIS
--------
[verse]
'git apply' [--stat] [--numstat] [--summary] [--check] [--index | --intent-to-add] [--3way]
'git apply' [--stat] [--numstat] [--summary] [--check]
[--index | --intent-to-add] [--3way] [--ours | --theirs | --union]
[--apply] [--no-add] [--build-fake-ancestor=<file>] [-R | --reverse]
[--allow-binary-replacement | --binary] [--reject] [-z]
[-p<n>] [-C<n>] [--inaccurate-eof] [--recount] [--cached]
Expand Down Expand Up @@ -92,6 +93,12 @@ OPTIONS
When used with the `--cached` option, any conflicts are left at higher stages
in the cache.

--ours::
--theirs::
--union::
Instead of leaving conflicts in the file, resolve conflicts favouring
our (or their or both) side of the lines. Requires --3way.

--build-fake-ancestor=<file>::
Newer 'git diff' output has embedded 'index information'
for each blob to help identify the original version that
Expand Down
6 changes: 3 additions & 3 deletions en/git-cat-file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ BATCH OUTPUT
------------

If `--batch` or `--batch-check` is given, `cat-file` will read objects
from stdin, one per line, and print information about them. By default,
the whole line is considered as an object, as if it were fed to
linkgit:git-rev-parse[1].
from stdin, one per line, and print information about them in the same
order as they have been read. By default, the whole line is
considered as an object, as if it were fed to linkgit:git-rev-parse[1].

When `--batch-command` is given, `cat-file` will read commands from stdin,
one per line, and print information based on the command given. With
Expand Down
18 changes: 14 additions & 4 deletions en/git-check-mailmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ SYNOPSIS
DESCRIPTION
-----------

For each ``Name $$<user@host>$$'' or ``$$<user@host>$$'' from the command-line
or standard input (when using `--stdin`), look up the person's canonical name
and email address (see "Mapping Authors" below). If found, print them;
otherwise print the input as-is.
For each ``Name $$<user@host>$$'', ``$$<user@host>$$'', or ``$$user@host$$''
from the command-line or standard input (when using `--stdin`), look up the
person's canonical name and email address (see "Mapping Authors" below). If
found, print them; otherwise print the input as-is.


OPTIONS
Expand All @@ -27,6 +27,16 @@ OPTIONS
Read contacts, one per line, from the standard input after exhausting
contacts provided on the command-line.

--mailmap-file=<file>::
In addition to any configured mailmap files, read the specified
mailmap file. Entries in this file take precedence over entries in
either the default mailmap file or any configured mailmap file.

--mailmap-blob=<blob>::
Like `--mailmap-file`, but consider the value as a reference to a
blob in the repository. If both `--mailmap-file` and
`--mailmap-blob` are specified, entries in `--mailmap-file` will
take precedence.

OUTPUT
------
Expand Down
6 changes: 3 additions & 3 deletions en/git-clone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ SYNOPSIS
[`-l`] [`-s`] [`--no-hardlinks`] [`-q`] [`-n`] [`--bare`] [`--mirror`]
[`-o` _<name>_] [`-b` _<name>_] [`-u` _<upload-pack>_] [`--reference` _<repository>_]
[`--dissociate`] [`--separate-git-dir` _<git-dir>_]
[`--depth` _<depth>_] [`--`[`no-`]`single-branch`] [`--no-tags`]
[++--recurse-submodules++[++=++__<pathspec>__]] [`--`[`no-`]`shallow-submodules`]
[`--`[`no-`]`remote-submodules`] [`--jobs` _<n>_] [`--sparse`] [`--`[`no-`]`reject-shallow`]
[`--depth` _<depth>_] [`--`[`no-`]{empty}`single-branch`] [`--no-tags`]
[++--recurse-submodules++[++=++__<pathspec>__]] [++--++[++no-++]{empty}++shallow-submodules++]
[`--`[`no-`]{empty}`remote-submodules`] [`--jobs` _<n>_] [`--sparse`] [`--`[`no-`]{empty}`reject-shallow`]
[++--filter=++__<filter-spec>__] [`--also-filter-submodules`]] [`--`] _<repository>_
[_<directory>_]

Expand Down
2 changes: 1 addition & 1 deletion en/git-commit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SYNOPSIS
--------
[verse]
'git commit' [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]
[--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>)]
[--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]
[-F <file> | -m <msg>] [--reset-author] [--allow-empty]
[--allow-empty-message] [--no-verify] [-e] [--author=<author>]
[--date=<date>] [--cleanup=<mode>] [--[no-]status]
Expand Down
6 changes: 3 additions & 3 deletions en/git-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SYNOPSIS
--------
[verse]
'git config list' [<file-option>] [<display-option>] [--includes]
'git config get' [<file-option>] [<display-option>] [--includes] [--all] [--regexp=<regexp>] [--value=<value>] [--fixed-value] [--default=<default>] <name>
'git config get' [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<value>] [--fixed-value] [--default=<default>] <name>
'git config set' [<file-option>] [--type=<type>] [--all] [--value=<value>] [--fixed-value] <name> <value>
'git config unset' [<file-option>] [--all] [--value=<value>] [--fixed-value] <name> <value>
'git config rename-section' [<file-option>] <old-name> <new-name>
Expand Down Expand Up @@ -130,7 +130,7 @@ OPTIONS
--all::
With `get`, return all values for a multi-valued key.

---regexp::
--regexp::
With `get`, interpret the name as a regular expression. Regular
expression matching is currently case-sensitive and done against a
canonicalized version of the key in which section and variable names
Expand Down Expand Up @@ -309,7 +309,7 @@ recommended to migrate to the new syntax.
Replaced by `git config get [--value=<pattern>] <name>`.

--get-all <name> [<value-pattern>]::
Replaced by `git config get [--value=<pattern>] --all --show-names <name>`.
Replaced by `git config get [--value=<pattern>] --all <name>`.

--get-regexp <name-regexp>::
Replaced by `git config get --all --show-names --regexp <name-regexp>`.
Expand Down
2 changes: 1 addition & 1 deletion en/git-diff-tree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ include::pretty-options.txt[]

--no-commit-id::
'git diff-tree' outputs a line with the commit ID when
applicable. This flag suppressed the commit ID output.
applicable. This flag suppresses the commit ID output.

-c::
This flag changes the way a merge commit is displayed
Expand Down
42 changes: 42 additions & 0 deletions en/git-for-each-ref.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,48 @@ ahead-behind:<committish>::
commits ahead and behind, respectively, when comparing the output
ref to the `<committish>` specified in the format.

is-base:<committish>::
In at most one row, `(<committish>)` will appear to indicate the ref
that is most likely the ref used as a starting point for the branch
that produced `<committish>`. This choice is made using a heuristic:
choose the ref that minimizes the number of commits in the
first-parent history of `<committish>` and not in the first-parent
history of the ref.
+
For example, consider the following figure of first-parent histories of
several refs:
+
----
*--*--*--*--*--* refs/heads/A
\
\
*--*--*--* refs/heads/B
\ \
\ \
* * refs/heads/C
\
\
*--* refs/heads/D
----
+
Here, if `A`, `B`, and `C` are the filtered references, and the format
string is `%(refname):%(is-base:D)`, then the output would be
+
----
refs/heads/A:
refs/heads/B:(D)
refs/heads/C:
----
+
This is because the first-parent history of `D` has its earliest
intersection with the first-parent histories of the filtered refs at a
common first-parent ancestor of `B` and `C` and ties are broken by the
earliest ref in the sorted order.
+
Note that this token will not appear if the first-parent history of
`<committish>` does not intersect the first-parent histories of the
filtered refs.

describe[:options]::
A human-readable name, like linkgit:git-describe[1];
empty string for undescribable commits. The `describe` string may
Expand Down
5 changes: 4 additions & 1 deletion en/git-gc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git-gc - Cleanup unnecessary files and optimize the local repository
SYNOPSIS
--------
[verse]
'git gc' [--aggressive] [--auto] [--quiet] [--prune=<date> | --no-prune] [--force] [--keep-largest-pack]
'git gc' [--aggressive] [--auto] [--[no-]detach] [--quiet] [--prune=<date> | --no-prune] [--force] [--keep-largest-pack]

DESCRIPTION
-----------
Expand Down Expand Up @@ -53,6 +53,9 @@ configuration options such as `gc.auto` and `gc.autoPackLimit`, all
other housekeeping tasks (e.g. rerere, working trees, reflog...) will
be performed as well.

--[no-]detach::
Run in the background if the system supports it. This option overrides
the `gc.autoDetach` config.

--[no-]cruft::
When expiring unreachable objects, pack them separately into a
Expand Down
6 changes: 3 additions & 3 deletions en/git-ls-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ followed by the ("attr/<eolattr>").

--format=<format>::
A string that interpolates `%(fieldname)` from the result being shown.
It also interpolates `%%` to `%`, and `%xx` where `xx` are hex digits
interpolates to character with hex code `xx`; for example `%00`
interpolates to `\0` (NUL), `%09` to `\t` (TAB) and %0a to `\n` (LF).
It also interpolates `%%` to `%`, and `%xXX` where `XX` are hex digits
interpolates to character with hex code `XX`; for example `%x00`
interpolates to `\0` (NUL), `%x09` to `\t` (TAB) and %x0a to `\n` (LF).
--format cannot be combined with `-s`, `-o`, `-k`, `-t`, `--resolve-undo`
and `--eol`.
\--::
Expand Down
2 changes: 1 addition & 1 deletion en/git-rebase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ The 'apply' backend works by creating a sequence of patches (by calling
`format-patch` internally), and then applying the patches in sequence
(calling `am` internally). Patches are composed of multiple hunks,
each with line numbers, a context region, and the actual changes. The
line numbers have to be taken with some fuzz, since the other side
line numbers have to be taken with some offset, since the other side
will likely have inserted or deleted lines earlier in the file. The
context region is meant to help find how to adjust the line numbers in
order to apply the changes to the right lines. However, if multiple
Expand Down
13 changes: 13 additions & 0 deletions en/git-send-email.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNOPSIS
'git send-email' [<options>] (<file>|<directory>)...
'git send-email' [<options>] <format-patch-options>
'git send-email' --dump-aliases
'git send-email' --translate-aliases


DESCRIPTION
Expand Down Expand Up @@ -413,6 +414,12 @@ exists when 'git send-email' is asked to add it (especially note that
Failure to do so may not produce the expected result in the
recipient's MUA.

--[no-]mailmap::
Use the mailmap file (see linkgit:gitmailmap[5]) to map all
addresses to their canonical real name and email address. Additional
mailmap data specific to git-send-email may be provided using the
`sendemail.mailmap.file` or `sendemail.mailmap.blob` configuration
values. Defaults to `sendemail.mailmap`.

Administering
~~~~~~~~~~~~~
Expand Down Expand Up @@ -475,6 +482,12 @@ Information
that this only includes the alias name and not its expanded email addresses.
See 'sendemail.aliasesFile' for more information about aliases.

--translate-aliases::
Instead of the normal operation, read from standard input and
interpret each line as an email alias. Translate it according to the
configured alias file(s). Output each translated name and email
address to standard output, one per line. See 'sendemail.aliasFile'
for more information about aliases.

CONFIGURATION
-------------
Expand Down
2 changes: 1 addition & 1 deletion en/git-show-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Shows the commit ancestry graph starting from the commits named
with <rev>s or <glob>s (or all refs under refs/heads
and/or refs/tags) semi-visually.

It cannot show more than 29 branches and commits at a time.
It cannot show more than 26 branches and commits at a time.

It uses `showbranch.default` multi-valued configuration items if
no <rev> or <glob> is given on the command line.
Expand Down
10 changes: 8 additions & 2 deletions en/git-submodule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ COMMANDS
With no arguments, shows the status of existing submodules. Several
subcommands are available to perform operations on the submodules.

add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--depth <depth>] [--] <repository> [<path>]::
add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--ref-format <format>] [--depth <depth>] [--] <repository> [<path>]::
Add the given repository as a submodule at the given path
to the changeset to be committed next to the current
project: the current project is termed the "superproject".
Expand Down Expand Up @@ -71,6 +71,9 @@ submodule repositories will be kept together in the same relative
location, and only the superproject's URL needs to be provided.
git-submodule will correctly locate the submodule using the relative
URL in `.gitmodules`.
+
If `--ref-format <format>` is specified, the ref storage format of newly
cloned submodules will be set accordingly.

status [--cached] [--recursive] [--] [<path>...]::
Show the status of the submodules. This will print the SHA-1 of the
Expand Down Expand Up @@ -136,7 +139,7 @@ If you really want to remove a submodule from the repository and commit
that use linkgit:git-rm[1] instead. See linkgit:gitsubmodules[7] for removal
options.

update [--init] [--remote] [-N|--no-fetch] [--[no-]recommend-shallow] [-f|--force] [--checkout|--rebase|--merge] [--reference <repository>] [--depth <depth>] [--recursive] [--jobs <n>] [--[no-]single-branch] [--filter <filter-spec>] [--] [<path>...]::
update [--init] [--remote] [-N|--no-fetch] [--[no-]recommend-shallow] [-f|--force] [--checkout|--rebase|--merge] [--reference <repository>] [--ref-format <format>] [--depth <depth>] [--recursive] [--jobs <n>] [--[no-]single-branch] [--filter <filter-spec>] [--] [<path>...]::
+
--
Update the registered submodules to match what the superproject
Expand Down Expand Up @@ -185,6 +188,9 @@ submodule with the `--init` option.
If `--recursive` is specified, this command will recurse into the
registered submodules, and update any nested submodules within.

If `--ref-format <format>` is specified, the ref storage format of newly
cloned submodules will be set accordingly.

If `--filter <filter-spec>` is specified, the given partial clone filter will be
applied to the submodule. See linkgit:git-rev-list[1] for details on filter
specifications.
Expand Down
14 changes: 7 additions & 7 deletions en/git-svn.txt
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,14 @@ Any other arguments are passed directly to 'git log'
independently of 'git svn' functions.

'create-ignore'::
Recursively finds the svn:ignore property on directories and
creates matching .gitignore files. The resulting files are staged to
be committed, but are not committed. Use -r/--revision to refer to a
specific revision.
Recursively finds the svn:ignore and svn:global-ignores properties
on directories and creates matching .gitignore files. The resulting
files are staged to be committed, but are not committed. Use
-r/--revision to refer to a specific revision.

'show-ignore'::
Recursively finds and lists the svn:ignore property on
directories. The output is suitable for appending to
Recursively finds and lists the svn:ignore and svn:global-ignores
properties on directories. The output is suitable for appending to
the $GIT_DIR/info/exclude file.

'mkdirs'::
Expand Down Expand Up @@ -871,7 +871,7 @@ Tracking and contributing to the trunk of a Subversion-managed project
# Now commit your changes (that were committed previously using Git) to SVN,
# as well as automatically updating your working HEAD:
git svn dcommit
# Append svn:ignore settings to the default Git exclude file:
# Append svn:ignore and svn:global-ignores settings to the default Git exclude file:
git svn show-ignore >> .git/info/exclude
------------------------------------------------------------------------

Expand Down
11 changes: 11 additions & 0 deletions en/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,17 @@ standard output.
adequate and support for it is likely to be removed in the
foreseeable future (along with the variable).

`GIT_ADVICE`::
If set to `0`, then disable all advice messages. These messages are
intended to provide hints to human users that may help them get out of
problematic situations or take advantage of new features. Users can
disable individual messages using the `advice.*` config keys. These
messages may be disruptive to tools that execute Git processes, so this
variable is available to disable the messages. (The `--no-advice`
global option is also available, but old Git versions may fail when
this option is not understood. The environment variable will be ignored
by Git versions that do not understand it.)

Discussion[[Discussion]]
------------------------

Expand Down
2 changes: 1 addition & 1 deletion en/glossary-content.txt
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ The following pseudorefs are known to Git:
to the result.

[[def_ref]]ref::
A name that that points to an <<def_object_name,object name>> or
A name that points to an <<def_object_name,object name>> or
another ref (the latter is called a <<def_symref,symbolic ref>>).
For convenience, a ref can sometimes be abbreviated when used
as an argument to a Git command; see linkgit:gitrevisions[7]
Expand Down
1 change: 1 addition & 0 deletions en/mergetools-merge.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
`vimdiff1`;; Use Vim with a 2 panes layout (LOCAL and REMOTE)
`vimdiff2`;; Use Vim with a 3 panes layout (LOCAL, MERGED and REMOTE)
`vimdiff3`;; Use Vim where only the MERGED file is shown
`vscode`;; Use Visual Studio Code (requires a graphical session)
`winmerge`;; Use WinMerge (requires a graphical session)
`xxdiff`;; Use xxdiff (requires a graphical session)
3 changes: 3 additions & 0 deletions en/ref-storage-format.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `files` for loose files with packed-refs. This is the default.
* `reftable` for the reftable format. This format is experimental and its
internals are subject to change.
1 change: 1 addition & 0 deletions sources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ pretty-formats.txt
pretty-options.txt
pull-fetch-param.txt
ref-reachability-filters.txt
ref-storage-format.txt
rerere-options.txt
revisions.txt
rev-list-description.txt
Expand Down

0 comments on commit 214c2d0

Please sign in to comment.