Skip to content

Commit

Permalink
update to v2.31.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Noël Avila <[email protected]>
  • Loading branch information
Jean-Noël Avila committed Feb 27, 2021
1 parent 6116b41 commit 35e1680
Show file tree
Hide file tree
Showing 67 changed files with 82,634 additions and 56,252 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.30.0
GIT_VERSION = 2.31.0
2 changes: 1 addition & 1 deletion en/blame-options.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-b::
Show blank SHA-1 for boundary commits. This can also
be controlled via the `blame.blankboundary` config option.
be controlled via the `blame.blankBoundary` config option.

--root::
Do not treat root commits as boundaries. This can also be
Expand Down
3 changes: 3 additions & 0 deletions en/cmds-plumbinginterrogators.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ linkgit:git-diff-tree[1]::
linkgit:git-for-each-ref[1]::
Output information on each ref.

linkgit:git-for-each-repo[1]::
Run a Git command on a list of repositories.

linkgit:git-get-tar-commit-id[1]::
Extract commit ID from an archive created using git-archive.

Expand Down
2 changes: 1 addition & 1 deletion en/cmds-plumbingmanipulators.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ linkgit:git-merge-index[1]::
Run a merge for files needing merging.

linkgit:git-mktag[1]::
Creates a tag object.
Creates a tag object with extra validation.

linkgit:git-mktree[1]::
Build a tree-object from ls-tree formatted text.
Expand Down
3 changes: 0 additions & 3 deletions en/cmds-synchelpers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ linkgit:git-http-fetch[1]::
linkgit:git-http-push[1]::
Push objects over HTTP/DAV to another repository.

linkgit:git-parse-remote[1]::
Routines to help parsing remote repository access parameters.

linkgit:git-receive-pack[1]::
Receive what is pushed into the repository.

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

include::config/log.txt[]

include::config/lsrefs.txt[]

include::config/mailinfo.txt[]

include::config/mailmap.txt[]
Expand Down
11 changes: 7 additions & 4 deletions en/date-formats.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
DATE FORMATS
------------

The `GIT_AUTHOR_DATE`, `GIT_COMMITTER_DATE` environment variables
ifdef::git-commit[]
and the `--date` option
endif::git-commit[]
The `GIT_AUTHOR_DATE` and `GIT_COMMITTER_DATE` environment variables
support the following date formats:

Git internal format::
Expand All @@ -26,3 +23,9 @@ ISO 8601::
+
NOTE: In addition, the date part is accepted in the following formats:
`YYYY.MM.DD`, `MM/DD/YYYY` and `DD.MM.YYYY`.

ifdef::git-commit[]
In addition to recognizing all date formats above, the `--date` option
will also try to make sense of other, more human-centric date formats,
such as relative dates like "yesterday" or "last Friday at noon".
endif::git-commit[]
6 changes: 3 additions & 3 deletions en/diff-generate-patch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ Combined diff format
Any diff-generating command can take the `-c` or `--cc` option to
produce a 'combined diff' when showing a merge. This is the default
format when showing merges with linkgit:git-diff[1] or
linkgit:git-show[1]. Note also that you can give the `-m` option to any
of these commands to force generation of diffs with individual parents
of a merge.
linkgit:git-show[1]. Note also that you can give suitable
`--diff-merges` option to any of these commands to force generation of
diffs in specific format.

A "combined diff" format looks like this:

Expand Down
59 changes: 59 additions & 0 deletions en/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,57 @@ endif::git-diff[]
show the patch by default, or to cancel the effect of `--patch`.
endif::git-format-patch[]

ifdef::git-log[]
--diff-merges=(off|none|first-parent|1|separate|m|combined|c|dense-combined|cc)::
--no-diff-merges::
Specify diff format to be used for merge commits. Default is
{diff-merges-default} unless `--first-parent` is in use, in which case
`first-parent` is the default.
+
--diff-merges=(off|none):::
--no-diff-merges:::
Disable output of diffs for merge commits. Useful to override
implied value.
+
--diff-merges=first-parent:::
--diff-merges=1:::
This option makes merge commits show the full diff with
respect to the first parent only.
+
--diff-merges=separate:::
--diff-merges=m:::
-m:::
This makes merge commits show the full diff with respect to
each of the parents. Separate log entry and diff is generated
for each parent. `-m` doesn't produce any output without `-p`.
+
--diff-merges=combined:::
--diff-merges=c:::
-c:::
With this option, diff output for a merge commit shows the
differences from each of the parents to the merge result
simultaneously instead of showing pairwise diff between a
parent and the result one at a time. Furthermore, it lists
only files which were modified from all parents. `-c` implies
`-p`.
+
--diff-merges=dense-combined:::
--diff-merges=cc:::
--cc:::
With this option the output produced by
`--diff-merges=combined` is further compressed by omitting
uninteresting hunks whose contents in the parents have only
two variants and the merge result picks one of them without
modification. `--cc` implies `-p`.

--combined-all-paths::
This flag causes combined diffs (used for merge commits) to
list the name of the file from all parents. It thus only has
effect when `--diff-merges=[dense-]combined` is in use, and
is likely only useful if filename changes are detected (i.e.
when either rename or copy detection have been requested).
endif::git-log[]

-U<n>::
--unified=<n>::
Generate diffs with <n> lines of context instead of
Expand Down Expand Up @@ -649,6 +700,14 @@ matches a pattern if removing any number of the final pathname
components matches the pattern. For example, the pattern "`foo*bar`"
matches "`fooasdfbar`" and "`foo/bar/baz/asdf`" but not "`foobarx`".

--skip-to=<file>::
--rotate-to=<file>::
Discard the files before the named <file> from the output
(i.e. 'skip to'), or move them to the end of the output
(i.e. 'rotate to'). These were invented primarily for use
of the `git difftool` command, and may not be very useful
otherwise.

ifndef::git-format-patch[]
-R::
Swap two inputs; that is, show differences from index or
Expand Down
4 changes: 4 additions & 0 deletions en/fetch-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
existing contents of `.git/FETCH_HEAD`. Without this
option old data in `.git/FETCH_HEAD` will be overwritten.

--atomic::
Use an atomic transaction to update local refs. Either all refs are
updated, or on error, no refs are updated.

--depth=<depth>::
Limit fetching to the specified number of commits from the tip of
each remote branch history. If fetching to a 'shallow' repository
Expand Down
2 changes: 1 addition & 1 deletion en/git-am.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ OPTIONS
Pass `-u` flag to 'git mailinfo' (see linkgit:git-mailinfo[1]).
The proposed commit log message taken from the e-mail
is re-coded into UTF-8 encoding (configuration variable
`i18n.commitencoding` can be used to specify project's
`i18n.commitEncoding` can be used to specify project's
preferred encoding if it is not UTF-8).
+
This was optional in prior versions of git, but now it is the
Expand Down
2 changes: 1 addition & 1 deletion en/git-blame.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ commit commentary), a blame viewer will not care.
MAPPING AUTHORS
---------------

include::mailmap.txt[]
See linkgit:gitmailmap[5].


SEE ALSO
Expand Down
6 changes: 3 additions & 3 deletions en/git-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ renaming. If <newbranch> exists, -M must be used to force the rename
to happen.

The `-c` and `-C` options have the exact same semantics as `-m` and
`-M`, except instead of the branch being renamed it along with its
config and reflog will be copied to a new name.
`-M`, except instead of the branch being renamed, it will be copied to a
new name, along with its config and reflog.

With a `-d` or `-D` option, `<branchname>` will be deleted. You may
specify more than one branch for deletion. If the branch currently
Expand Down Expand Up @@ -153,7 +153,7 @@ OPTIONS
--column[=<options>]::
--no-column::
Display branch listing in columns. See configuration variable
column.branch for option syntax.`--column` and `--no-column`
`column.branch` for option syntax. `--column` and `--no-column`
without options are equivalent to 'always' and 'never' respectively.
+
This option is only applicable in non-verbose mode.
Expand Down
9 changes: 8 additions & 1 deletion en/git-check-mailmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ name is provided or known to the 'mailmap', ``Name $$<user@host>$$'' is
printed; otherwise only ``$$<user@host>$$'' is printed.


CONFIGURATION
-------------

See `mailmap.file` and `mailmap.blob` in linkgit:git-config[1] for how
to specify a custom `.mailmap` target file or object.


MAPPING AUTHORS
---------------

include::mailmap.txt[]
See linkgit:gitmailmap[5].


GIT
Expand Down
4 changes: 4 additions & 0 deletions en/git-clone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ repository is specified as a URL, then this flag is ignored (and we
never use the local optimizations). Specifying `--no-local` will
override the default when `/path/to/repo` is given, using the regular
Git transport instead.
+
*NOTE*: this operation can race with concurrent modification to the
source repository, similar to running `cp -r src dst` while modifying
`src`.

--no-hardlinks::
Force the cloning process from a repository on a local
Expand Down
16 changes: 16 additions & 0 deletions en/git-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,22 @@ GIT_CONFIG_NOSYSTEM::

See also <<FILES>>.

GIT_CONFIG_COUNT::
GIT_CONFIG_KEY_<n>::
GIT_CONFIG_VALUE_<n>::
If GIT_CONFIG_COUNT is set to a positive number, all environment pairs
GIT_CONFIG_KEY_<n> and GIT_CONFIG_VALUE_<n> up to that number will be
added to the process's runtime configuration. The config pairs are
zero-indexed. Any missing key or value is treated as an error. An empty
GIT_CONFIG_COUNT is treated the same as GIT_CONFIG_COUNT=0, namely no
pairs are processed. These environment variables will override values
in configuration files, but will be overridden by any explicit options
passed via `git -c`.
+
This is useful for cases where you want to spawn multiple git commands
with a common configuration but cannot depend on a configuration file,
for example when writing scripts.


[[EXAMPLES]]
EXAMPLES
Expand Down
8 changes: 8 additions & 0 deletions en/git-difftool.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ OPTIONS
This is the default behaviour; the option is provided to
override any configuration settings.

--rotate-to=<file>::
Start showing the diff for the given path,
the paths before it will move to end and output.

--skip-to=<file>::
Start showing the diff for the given path, skipping all
the paths before it.

-t <tool>::
--tool=<tool>::
Use the diff tool specified by <tool>. Valid values include
Expand Down
8 changes: 4 additions & 4 deletions en/git-fast-import.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ Submodule Rewriting
--rewrite-submodules-from=<name>:<file>::
--rewrite-submodules-to=<name>:<file>::
Rewrite the object IDs for the submodule specified by <name> from the values
used in the from <file> to those used in the to <file>. The from marks should
have been created by `git fast-export`, and the to marks should have been
created by `git fast-import` when importing that same submodule.
used in the from <file> to those used in the to <file>. The from marks should
have been created by `git fast-export`, and the to marks should have been
created by `git fast-import` when importing that same submodule.
+
<name> may be any arbitrary string not containing a colon character, but the
same value must be used with both options when specifying corresponding marks.
Expand Down Expand Up @@ -1317,7 +1317,7 @@ An example crash:

Active Branch LRU
-----------------
active_branches = 1 cur, 5 max
active_branches = 1 cur, 5 max

pos clock name
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
8 changes: 0 additions & 8 deletions en/git-fsck.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,6 @@ using 'git commit-graph verify'. See linkgit:git-commit-graph[1].
Extracted Diagnostics
---------------------

expect dangling commits - potential heads - due to lack of head information::
You haven't specified any nodes as heads so it won't be
possible to differentiate between un-parented commits and
root nodes.

missing sha1 directory '<dir>'::
The directory holding the sha1 objects is missing.

unreachable <type> <object>::
The <type> object <object>, isn't actually referred to directly
or indirectly in any of the trees or commits seen. This can
Expand Down
14 changes: 8 additions & 6 deletions en/git-gc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,14 @@ NOTES
'git gc' tries very hard not to delete objects that are referenced
anywhere in your repository. In particular, it will keep not only
objects referenced by your current set of branches and tags, but also
objects referenced by the index, remote-tracking branches, notes saved
by 'git notes' under refs/notes/, reflogs (which may reference commits
in branches that were later amended or rewound), and anything else in
the refs/* namespace. If you are expecting some objects to be deleted
and they aren't, check all of those locations and decide whether it
makes sense in your case to remove those references.
objects referenced by the index, remote-tracking branches, reflogs
(which may reference commits in branches that were later amended or
rewound), and anything else in the refs/* namespace. Note that a note
(of the kind created by 'git notes') attached to an object does not
contribute in keeping the object alive. If you are expecting some
objects to be deleted and they aren't, check all of those locations
and decide whether it makes sense in your case to remove those
references.

On the other hand, when 'git gc' runs concurrently with another process,
there is a risk of it deleting an object that the other process is using
Expand Down
18 changes: 13 additions & 5 deletions en/git-index-pack.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ git-index-pack - Build pack index file for an existing packed archive
SYNOPSIS
--------
[verse]
'git index-pack' [-v] [-o <index-file>] <pack-file>
'git index-pack' [-v] [-o <index-file>] [--[no-]rev-index] <pack-file>
'git index-pack' --stdin [--fix-thin] [--keep] [-v] [-o <index-file>]
[<pack-file>]
[--[no-]rev-index] [<pack-file>]


DESCRIPTION
-----------
Reads a packed archive (.pack) from the specified file, and
builds a pack index file (.idx) for it. The packed archive
together with the pack index can then be placed in the
objects/pack/ directory of a Git repository.
builds a pack index file (.idx) for it. Optionally writes a
reverse-index (.rev) for the specified pack. The packed
archive together with the pack index can then be placed in
the objects/pack/ directory of a Git repository.


OPTIONS
Expand All @@ -35,6 +36,13 @@ OPTIONS
fails if the name of packed archive does not end
with .pack).

--[no-]rev-index::
When this flag is provided, generate a reverse index
(a `.rev` file) corresponding to the given pack. If
`--verify` is given, ensure that the existing
reverse index is correct. Takes precedence over
`pack.writeReverseIndex`.

--stdin::
When this flag is provided, the pack is read from stdin
instead and a copy is then written to <pack-file>. If
Expand Down
Loading

0 comments on commit 35e1680

Please sign in to comment.