Skip to content
Snippets Groups Projects
Commit df13b006 authored by Jean-Noël Avila's avatar Jean-Noël Avila
Browse files

Add files for v2.23.0

parent ac4781d9
No related branches found
No related tags found
No related merge requests found
Showing with 68 additions and 73 deletions
...@@ -3,7 +3,7 @@ git-interpret-trailers(1) ...@@ -3,7 +3,7 @@ git-interpret-trailers(1)
NAME NAME
---- ----
git-interpret-trailers - add or parse structured information in commit messages git-interpret-trailers - Add or parse structured information in commit messages
SYNOPSIS SYNOPSIS
-------- --------
......
...@@ -49,7 +49,7 @@ OPTIONS ...@@ -49,7 +49,7 @@ OPTIONS
Print out the ref name given on the command line by which each Print out the ref name given on the command line by which each
commit was reached. commit was reached.
--use-mailmap:: --[no-]use-mailmap::
Use mailmap file to map author and committer names and email Use mailmap file to map author and committer names and email
addresses to canonical real names and email addresses. See addresses to canonical real names and email addresses. See
linkgit:git-shortlog[1]. linkgit:git-shortlog[1].
......
...@@ -118,6 +118,7 @@ OPTIONS ...@@ -118,6 +118,7 @@ OPTIONS
linkgit:git-status[1] `--short` or linkgit:git-diff[1] linkgit:git-status[1] `--short` or linkgit:git-diff[1]
`--name-status` for more user-friendly alternatives. `--name-status` for more user-friendly alternatives.
+ +
--
This option identifies the file status with the following tags (followed by This option identifies the file status with the following tags (followed by
a space) at the start of each line: a space) at the start of each line:
...@@ -128,6 +129,7 @@ a space) at the start of each line: ...@@ -128,6 +129,7 @@ a space) at the start of each line:
C:: modified/changed C:: modified/changed
K:: to be killed K:: to be killed
?:: other ?:: other
--
-v:: -v::
Similar to `-t`, but use lowercase letters for files Similar to `-t`, but use lowercase letters for files
......
...@@ -31,7 +31,7 @@ OPTIONS ...@@ -31,7 +31,7 @@ OPTIONS
displayed. displayed.
--refs:: --refs::
Do not show peeled tags or pseudorefs like HEAD in the output. Do not show peeled tags or pseudorefs like `HEAD` in the output.
-q:: -q::
--quiet:: --quiet::
......
...@@ -27,9 +27,9 @@ in the current working directory. Note that: ...@@ -27,9 +27,9 @@ in the current working directory. Note that:
taken as relative to the current working directory. E.g. when you are taken as relative to the current working directory. E.g. when you are
in a directory 'sub' that has a directory 'dir', you can run 'git in a directory 'sub' that has a directory 'dir', you can run 'git
ls-tree -r HEAD dir' to list the contents of the tree (that is ls-tree -r HEAD dir' to list the contents of the tree (that is
'sub/dir' in `HEAD`). You don't want to give a tree that is not at the `sub/dir` in `HEAD`). You don't want to give a tree that is not at the
root level (e.g. `git ls-tree -r HEAD:sub dir`) in this case, as that root level (e.g. `git ls-tree -r HEAD:sub dir`) in this case, as that
would result in asking for 'sub/sub/dir' in the `HEAD` commit. would result in asking for `sub/sub/dir` in the `HEAD` commit.
However, the current working directory can be ignored by passing However, the current working directory can be ignored by passing
--full-tree option. --full-tree option.
......
...@@ -149,7 +149,7 @@ instead. ...@@ -149,7 +149,7 @@ instead.
Discussion on fork-point mode Discussion on fork-point mode
----------------------------- -----------------------------
After working on the `topic` branch created with `git checkout -b After working on the `topic` branch created with `git switch -c
topic origin/master`, the history of remote-tracking branch topic origin/master`, the history of remote-tracking branch
`origin/master` may have been rewound and rebuilt, leading to a `origin/master` may have been rewound and rebuilt, leading to a
history of this shape: history of this shape:
......
...@@ -13,8 +13,7 @@ SYNOPSIS ...@@ -13,8 +13,7 @@ SYNOPSIS
[-s <strategy>] [-X <strategy-option>] [-S[<keyid>]] [-s <strategy>] [-X <strategy-option>] [-S[<keyid>]]
[--[no-]allow-unrelated-histories] [--[no-]allow-unrelated-histories]
[--[no-]rerere-autoupdate] [-m <msg>] [-F <file>] [<commit>...] [--[no-]rerere-autoupdate] [-m <msg>] [-F <file>] [<commit>...]
'git merge' --abort 'git merge' (--continue | --abort | --quit)
'git merge' --continue
DESCRIPTION DESCRIPTION
----------- -----------
...@@ -83,10 +82,16 @@ invocations. The automated message can include the branch description. ...@@ -83,10 +82,16 @@ invocations. The automated message can include the branch description.
If `--log` is specified, a shortlog of the commits being merged If `--log` is specified, a shortlog of the commits being merged
will be appended to the specified message. will be appended to the specified message.
--[no-]rerere-autoupdate:: --rerere-autoupdate::
--no-rerere-autoupdate::
Allow the rerere mechanism to update the index with the Allow the rerere mechanism to update the index with the
result of auto-conflict resolution if possible. result of auto-conflict resolution if possible.
--overwrite-ignore::
--no-overwrite-ignore::
Silently overwrite ignored files from the merge result. This
is the default behavior. Use `--no-overwrite-ignore` to abort.
--abort:: --abort::
Abort the current conflict resolution process, and Abort the current conflict resolution process, and
try to reconstruct the pre-merge state. try to reconstruct the pre-merge state.
...@@ -99,6 +104,10 @@ commit or stash your changes before running 'git merge'. ...@@ -99,6 +104,10 @@ commit or stash your changes before running 'git merge'.
'git merge --abort' is equivalent to 'git reset --merge' when 'git merge --abort' is equivalent to 'git reset --merge' when
`MERGE_HEAD` is present. `MERGE_HEAD` is present.
--quit::
Forget about the current merge in progress. Leave the index
and the working tree as-is.
--continue:: --continue::
After a 'git merge' stops due to conflicts you can conclude the After a 'git merge' stops due to conflicts you can conclude the
merge by running 'git merge --continue' (see "HOW TO RESOLVE merge by running 'git merge --continue' (see "HOW TO RESOLVE
......
...@@ -28,7 +28,9 @@ to define the operation mode for the functions listed below. ...@@ -28,7 +28,9 @@ to define the operation mode for the functions listed below.
FUNCTIONS FUNCTIONS
--------- ---------
get_merge_tool:: get_merge_tool::
returns a merge tool. returns a merge tool. the return code is 1 if we returned a guessed
merge tool, else 0. '$GIT_MERGETOOL_GUI' may be set to 'true' to
search for the appropriate guitool.
get_merge_tool_cmd:: get_merge_tool_cmd::
returns the custom command for a merge tool. returns the custom command for a merge tool.
......
...@@ -83,7 +83,9 @@ success of the resolution after the custom tool has exited. ...@@ -83,7 +83,9 @@ success of the resolution after the custom tool has exited.
--gui:: --gui::
When 'git-mergetool' is invoked with the `-g` or `--gui` option When 'git-mergetool' is invoked with the `-g` or `--gui` option
the default merge tool will be read from the configured the default merge tool will be read from the configured
`merge.guitool` variable instead of `merge.tool`. `merge.guitool` variable instead of `merge.tool`. If
`merge.guitool` is not set, we will fallback to the tool
configured under `merge.tool`.
--no-gui:: --no-gui::
This overrides a previous `-g` or `--gui` setting and reads the This overrides a previous `-g` or `--gui` setting and reads the
......
...@@ -146,7 +146,7 @@ OPTIONS ...@@ -146,7 +146,7 @@ OPTIONS
-C <object>:: -C <object>::
--reuse-message=<object>:: --reuse-message=<object>::
Take the given blob object (for example, another note) as the Take the given blob object (for example, another note) as the
note message. (Use `git notes copy <object>` instead to note message. (Use `git notes copy <object>` instead to
copy notes between objects.) copy notes between objects.)
......
...@@ -131,7 +131,7 @@ depth is 4095. ...@@ -131,7 +131,7 @@ depth is 4095.
--keep-pack=<pack-name>:: --keep-pack=<pack-name>::
This flag causes an object already in the given pack to be This flag causes an object already in the given pack to be
ignored, even if it would have otherwise been ignored, even if it would have otherwise been
packed. `<pack-name>` is the the pack file name without packed. `<pack-name>` is the pack file name without
leading directory (e.g. `pack-123.pack`). The option could be leading directory (e.g. `pack-123.pack`). The option could be
specified multiple times to keep multiple packs. specified multiple times to keep multiple packs.
......
...@@ -112,8 +112,9 @@ When set to `merges`, rebase using `git rebase --rebase-merges` so that ...@@ -112,8 +112,9 @@ When set to `merges`, rebase using `git rebase --rebase-merges` so that
the local merge commits are included in the rebase (see the local merge commits are included in the rebase (see
linkgit:git-rebase[1] for details). linkgit:git-rebase[1] for details).
+ +
When set to preserve, rebase with the `--preserve-merges` option passed When set to `preserve` (deprecated in favor of `merges`), rebase with the
to `git rebase` so that locally created merge commits will not be flattened. `--preserve-merges` option passed to `git rebase` so that locally created
merge commits will not be flattened.
+ +
When false, merge the current branch into the upstream branch. When false, merge the current branch into the upstream branch.
+ +
...@@ -248,7 +249,7 @@ BUGS ...@@ -248,7 +249,7 @@ BUGS
---- ----
Using --recurse-submodules can only fetch new commits in already checked Using --recurse-submodules can only fetch new commits in already checked
out submodules right now. When e.g. upstream added a new submodule in the out submodules right now. When e.g. upstream added a new submodule in the
just fetched commits of the superproject the submodule itself can not be just fetched commits of the superproject the submodule itself cannot be
fetched, making it impossible to check out that submodule later without fetched, making it impossible to check out that submodule later without
having to do a fetch again. This is expected to be fixed in a future Git having to do a fetch again. This is expected to be fixed in a future Git
version. version.
......
...@@ -75,7 +75,7 @@ without any `<refspec>` on the command line. Otherwise, missing ...@@ -75,7 +75,7 @@ without any `<refspec>` on the command line. Otherwise, missing
+ +
If <dst> doesn't start with `refs/` (e.g. `refs/heads/master`) we will If <dst> doesn't start with `refs/` (e.g. `refs/heads/master`) we will
try to infer where in `refs/*` on the destination <repository> it try to infer where in `refs/*` on the destination <repository> it
belongs based on the the type of <src> being pushed and whether <dst> belongs based on the type of <src> being pushed and whether <dst>
is ambiguous. is ambiguous.
+ +
-- --
......
...@@ -38,8 +38,9 @@ OPTIONS ...@@ -38,8 +38,9 @@ OPTIONS
started. started.
--reset:: --reset::
Same as -m, except that unmerged entries are discarded Same as -m, except that unmerged entries are discarded instead
instead of failing. of failing. When used with `-u`, updates leading to loss of
working tree changes will not abort the operation.
-u:: -u::
After a successful merge, update the files in the work After a successful merge, update the files in the work
...@@ -128,6 +129,10 @@ OPTIONS ...@@ -128,6 +129,10 @@ OPTIONS
Instead of reading tree object(s) into the index, just empty Instead of reading tree object(s) into the index, just empty
it. it.
-q::
--quiet::
Quiet, suppress feedback messages.
<tree-ish#>:: <tree-ish#>::
The id of the tree object(s) to be read/merged. The id of the tree object(s) to be read/merged.
......
...@@ -12,12 +12,12 @@ SYNOPSIS ...@@ -12,12 +12,12 @@ SYNOPSIS
[<upstream> [<branch>]] [<upstream> [<branch>]]
'git rebase' [-i | --interactive] [<options>] [--exec <cmd>] [--onto <newbase>] 'git rebase' [-i | --interactive] [<options>] [--exec <cmd>] [--onto <newbase>]
--root [<branch>] --root [<branch>]
'git rebase' --continue | --skip | --abort | --quit | --edit-todo | --show-current-patch 'git rebase' (--continue | --skip | --abort | --quit | --edit-todo | --show-current-patch)
DESCRIPTION DESCRIPTION
----------- -----------
If <branch> is specified, 'git rebase' will perform an automatic If <branch> is specified, 'git rebase' will perform an automatic
`git checkout <branch>` before doing anything else. Otherwise `git switch <branch>` before doing anything else. Otherwise
it remains on the current branch. it remains on the current branch.
If <upstream> is not specified, the upstream configured in If <upstream> is not specified, the upstream configured in
...@@ -300,6 +300,11 @@ See also INCOMPATIBLE OPTIONS below. ...@@ -300,6 +300,11 @@ See also INCOMPATIBLE OPTIONS below.
+ +
See also INCOMPATIBLE OPTIONS below. See also INCOMPATIBLE OPTIONS below.
--rerere-autoupdate::
--no-rerere-autoupdate::
Allow the rerere mechanism to update the index with the
result of auto-conflict resolution if possible.
-S[<keyid>]:: -S[<keyid>]::
--gpg-sign[=<keyid>]:: --gpg-sign[=<keyid>]::
GPG-sign commits. The `keyid` argument is optional and GPG-sign commits. The `keyid` argument is optional and
...@@ -410,14 +415,14 @@ See also INCOMPATIBLE OPTIONS below. ...@@ -410,14 +415,14 @@ See also INCOMPATIBLE OPTIONS below.
+ +
By default, or when `no-rebase-cousins` was specified, commits which do not By default, or when `no-rebase-cousins` was specified, commits which do not
have `<upstream>` as direct ancestor will keep their original branch point, have `<upstream>` as direct ancestor will keep their original branch point,
i.e. commits that would be excluded by gitlink:git-log[1]'s i.e. commits that would be excluded by linkgit:git-log[1]'s
`--ancestry-path` option will keep their original ancestry by default. If `--ancestry-path` option will keep their original ancestry by default. If
the `rebase-cousins` mode is turned on, such commits are instead rebased the `rebase-cousins` mode is turned on, such commits are instead rebased
onto `<upstream>` (or `<onto>`, if specified). onto `<upstream>` (or `<onto>`, if specified).
+ +
The `--rebase-merges` mode is similar in spirit to `--preserve-merges`, but The `--rebase-merges` mode is similar in spirit to the deprecated
in contrast to that option works well in interactive rebases: commits can be `--preserve-merges`, but in contrast to that option works well in interactive
reordered, inserted and dropped at will. rebases: commits can be reordered, inserted and dropped at will.
+ +
It is currently only possible to recreate the merge commits using the It is currently only possible to recreate the merge commits using the
`recursive` merge strategy; Different merge strategies can be used only via `recursive` merge strategy; Different merge strategies can be used only via
...@@ -427,9 +432,10 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below. ...@@ -427,9 +432,10 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.
-p:: -p::
--preserve-merges:: --preserve-merges::
Recreate merge commits instead of flattening the history by replaying [DEPRECATED: use `--rebase-merges` instead] Recreate merge commits
commits a merge commit introduces. Merge conflict resolutions or manual instead of flattening the history by replaying commits a merge commit
amendments to merge commits are not preserved. introduces. Merge conflict resolutions or manual amendments to merge
commits are not preserved.
+ +
This uses the `--interactive` machinery internally, but combining it This uses the `--interactive` machinery internally, but combining it
with the `--interactive` option explicitly is generally not a good with the `--interactive` option explicitly is generally not a good
...@@ -529,7 +535,6 @@ are incompatible with the following options: ...@@ -529,7 +535,6 @@ are incompatible with the following options:
* --interactive * --interactive
* --exec * --exec
* --keep-empty * --keep-empty
* --autosquash
* --edit-todo * --edit-todo
* --root when used in combination with --onto * --root when used in combination with --onto
...@@ -554,8 +559,6 @@ commit started empty (had no changes relative to its parent to ...@@ -554,8 +559,6 @@ commit started empty (had no changes relative to its parent to
start with) or ended empty (all changes were already applied start with) or ended empty (all changes were already applied
upstream in other commits). upstream in other commits).
The merge backend does the same.
The interactive backend drops commits by default that The interactive backend drops commits by default that
started empty and halts if it hits a commit that ended up empty. started empty and halts if it hits a commit that ended up empty.
The `--keep-empty` option exists for the interactive backend to allow The `--keep-empty` option exists for the interactive backend to allow
...@@ -672,7 +675,8 @@ $ git rebase -i HEAD~5 ...@@ -672,7 +675,8 @@ $ git rebase -i HEAD~5
And move the first patch to the end of the list. And move the first patch to the end of the list.
You might want to preserve merges, if you have a history like this: You might want to recreate merge commits, e.g. if you have a history
like this:
------------------ ------------------
X X
...@@ -686,7 +690,7 @@ Suppose you want to rebase the side branch starting at "A" to "Q". Make ...@@ -686,7 +690,7 @@ Suppose you want to rebase the side branch starting at "A" to "Q". Make
sure that the current HEAD is "B", and call sure that the current HEAD is "B", and call
----------------------------- -----------------------------
$ git rebase -i -p --onto Q O $ git rebase -i -r --onto Q O
----------------------------- -----------------------------
Reordering and editing commits usually creates untested intermediate Reordering and editing commits usually creates untested intermediate
...@@ -1023,11 +1027,11 @@ merge cmake ...@@ -1023,11 +1027,11 @@ merge cmake
BUGS BUGS
---- ----
The todo list presented by `--preserve-merges --interactive` does not The todo list presented by the deprecated `--preserve-merges --interactive`
represent the topology of the revision graph. Editing commits and does not represent the topology of the revision graph (use `--rebase-merges`
rewording their commit messages should work fine, but attempts to instead). Editing commits and rewording their commit messages should work
reorder commits tend to produce counterintuitive results. Use fine, but attempts to reorder commits tend to produce counterintuitive results.
`--rebase-merges` in such scenarios instead. Use `--rebase-merges` in such scenarios instead.
For example, an attempt to rearrange For example, an attempt to rearrange
------------ ------------
......
...@@ -104,7 +104,7 @@ begins with `ext::`. Examples: ...@@ -104,7 +104,7 @@ begins with `ext::`. Examples:
link-level address). link-level address).
"ext::git-server-alias foo %G/repo% with% spaces %Vfoo":: "ext::git-server-alias foo %G/repo% with% spaces %Vfoo"::
Represents a repository with path '/repo with spaces' accessed Represents a repository with path `/repo with spaces` accessed
using the helper program "git-server-alias foo". The hostname for using the helper program "git-server-alias foo". The hostname for
the remote server passed in the protocol stream will be "foo" the remote server passed in the protocol stream will be "foo"
(this allows multiple virtual Git servers to share a (this allows multiple virtual Git servers to share a
...@@ -118,7 +118,7 @@ begins with `ext::`. Examples: ...@@ -118,7 +118,7 @@ begins with `ext::`. Examples:
SEE ALSO SEE ALSO
-------- --------
linkgit:gitremote-helpers[1] linkgit:gitremote-helpers[7]
GIT GIT
--- ---
......
...@@ -52,7 +52,7 @@ EXAMPLES ...@@ -52,7 +52,7 @@ EXAMPLES
SEE ALSO SEE ALSO
-------- --------
linkgit:gitremote-helpers[1] linkgit:gitremote-helpers[7]
GIT GIT
--- ---
......
git-remote-testgit(1)
=====================
NAME
----
git-remote-testgit - Example remote-helper
SYNOPSIS
--------
[verse]
git clone testgit::<source-repo> [<destination>]
DESCRIPTION
-----------
This command is a simple remote-helper, that is used both as a
testcase for the remote-helper functionality, and as an example to
show remote-helper authors one possible implementation.
The best way to learn more is to read the comments and source code in
'git-remote-testgit'.
SEE ALSO
--------
linkgit:gitremote-helpers[1]
GIT
---
Part of the linkgit:git[1] suite
...@@ -230,7 +230,7 @@ $ git branch -r ...@@ -230,7 +230,7 @@ $ git branch -r
staging/master staging/master
staging/staging-linus staging/staging-linus
staging/staging-next staging/staging-next
$ git checkout -b staging staging/master $ git switch -c staging staging/master
... ...
------------ ------------
......
...@@ -142,7 +142,7 @@ depth is 4095. ...@@ -142,7 +142,7 @@ depth is 4095.
--keep-pack=<pack-name>:: --keep-pack=<pack-name>::
Exclude the given pack from repacking. This is the equivalent Exclude the given pack from repacking. This is the equivalent
of having `.keep` file on the pack. `<pack-name>` is the the of having `.keep` file on the pack. `<pack-name>` is the
pack file name without leading directory (e.g. `pack-123.pack`). pack file name without leading directory (e.g. `pack-123.pack`).
The option could be specified multiple times to keep multiple The option could be specified multiple times to keep multiple
packs. packs.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment