Skip to content

Commit c187a7c

Browse files
committed
Autogenerated HTML docs for v2.51.0-573-gb660e2
1 parent 2e6660d commit c187a7c

24 files changed

+1039
-553
lines changed

‎RelNotes/2.51.1.adoc‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Git 2.51.1 Release Notes
2+
========================
3+
4+
There shouldn't be anything exciting to see here. This is primarily
5+
to flush the "do you still use it?" improvements that has landed on
6+
the master front, together with a handful of low-hanging low-impact
7+
fixes that should be safe.
8+
9+
10+
Fixes since Git 2.51.0
11+
----------------------
12+
13+
* The "do you still use it?" message given by a command that is
14+
deeply deprecated and allow us to suggest alternatives has been
15+
updated.
16+
17+
* The compatObjectFormat extension is used to hide an incomplete
18+
feature that is not yet usable for any purpose other than
19+
developing the feature further. Document it as such to discourage
20+
its use by mere mortals.
21+
22+
* Manual page for "gitk" is updated with the current maintainer's
23+
name.
24+
25+
* Update the instruction to use of GGG in the MyFirstContribution
26+
document to say that a GitHub PR could be made against `git/git`
27+
instead of `gitgitgadget/git`.
28+
29+
* Clang-format update to let our control macros formatted the way we
30+
had them traditionally, e.g., "for_each_string_list_item()" without
31+
space before the parentheses.
32+
33+
* A few places where an size_t value was cast to curl_off_t without
34+
checking has been updated to use the existing helper function.
35+
36+
* The start_delayed_progress() function in the progress eye-candy API
37+
did not clear its internal state, making an initial delay value
38+
larger than 1 second ineffective, which has been corrected.
39+
40+
* Makefile tried to run multiple "cargo build" which would not work
41+
very well; serialize their execution to work it around.
42+
43+
* Adjust to the way newer versions of cURL selectivel enables tracing
44+
options, so that our tests can continue to work.
45+
46+
Also contains various documentation updates, code clean-ups and minor fixups.

‎RelNotes/2.52.0.adoc‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ UI, Workflows & Features
4747
* "git fast-import" learned that "--signed-commits=<how>" option that
4848
corresponds to that of "git fast-export".
4949

50+
* Marking a hunk 'selected' in "git add -p" and then splitting made
51+
all the split pieces 'selected' this has been changed to make them
52+
all 'undecided', which gives better end-user experience.
53+
54+
* Configuration variables that take a pathname as a value
55+
(e.g. blame.ignorerevsfile) can be marked as optional by prefixing
56+
":(optoinal)" before its value.
57+
5058

5159
Performance, Internal Implementation, Development Support etc.
5260
--------------------------------------------------------------
@@ -116,6 +124,9 @@ Performance, Internal Implementation, Development Support etc.
116124
* Dip our toes a bit to (optionally) use Rust implemented helper
117125
called from our C code.
118126
127+
* Documentation for "git log --pretty" options has been updated
128+
to make it easier to translate.
129+
119130
120131
Fixes since v2.51
121132
-----------------
@@ -308,6 +319,16 @@ including security updates, are included in this release.
308319
carefully.
309320
(merge 466a3a1afd kn/reftable-consistency-checks later to maint).
310321

322+
* A lot of code clean-up of xdiff.
323+
Split out of a larger topic.
324+
(merge 8b9c5d2e3a en/xdiff-cleanup later to maint).
325+
326+
* "git format-patch --range-diff=... --notes=..." did not drive the
327+
underlying range-diff with correct --notes parameter, ending up
328+
comparing with different set of notes from its main patch output
329+
you would get from "git format-patch --notes=..." for a singleton
330+
patch.
331+
311332
* Other code cleanup, docfix, build fix, etc.
312333
(merge 823d537fa7 kh/doc-git-log-markup-fix later to maint).
313334
(merge cf7efa4f33 rj/t6137-cygwin-fix later to maint).
@@ -337,3 +358,4 @@ including security updates, are included in this release.
337358
(merge fdd21ba116 mh/doc-credential-url-prefix later to maint).
338359
(merge 1c573a3451 en/doc-merge-tree-describe-merge-base later to maint).
339360
(merge 84a6bf7965 ja/doc-markup-attached-paragraph-fix later to maint).
361+
(merge 399694384b kh/doc-patch-id-markup-fix later to maint).

‎config.adoc‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ compiled without runtime prefix support, the compiled-in prefix will be
357357
substituted instead. In the unlikely event that a literal path needs to
358358
be specified that should _not_ be expanded, it needs to be prefixed by
359359
`./`, like so: `./%(prefix)/bin`.
360-
360+
+
361+
If prefixed with `:(optional)`, the configuration variable is treated
362+
as if it does not exist, if the named path does not exist.
361363

362364
Variables
363365
~~~~~~~~~

‎git-config.html‎

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,10 @@ <h3 id="_values">Values</h3>
17011701
be specified that should <em>not</em> be expanded, it needs to be prefixed by
17021702
.<code>/</code>, like so: .<code>/%</code>(<code>prefix</code>)<code>/bin</code>.</p>
17031703
</div>
1704+
<divclass="paragraph">
1705+
<p>If prefixed with <code>:</code>(<code>optional</code>), the configuration variable is treated
1706+
as if it does not exist, if the named path does not exist.</p>
1707+
</div>
17041708
</dd>
17051709
</dl>
17061710
</div>
@@ -8978,29 +8982,32 @@ <h3 id="_variables">Variables</h3>
89788982
change as git gains new features.</p>
89798983
</div>
89808984
</dd>
8981-
<dtclass="hdlist1">stash.index</dt>
8985+
</dl>
8986+
</div>
8987+
<divclass="dlist">
8988+
<dl>
8989+
<dtclass="hdlist1"><code>stash.index</code></dt>
89828990
<dd>
8983-
<p>If this is set to true, <code>git</code><code>stash</code><code>apply</code> and <code>git</code><code>stash</code><code>pop</code> will
8984-
behave as if <code>--index</code> was supplied. Defaults to false. See the
8985-
descriptions in <ahref="git-stash.html">git-stash(1)</a>.</p>
8991+
<p>If this is set to true, <code>git</code><code>stash</code><code>apply</code> and <code>git</code><code>stash</code><code>pop</code> will
8992+
behave as if <code>--index</code> was supplied. Defaults to false.
8993+
See the descriptions in <ahref="git-stash.html">git-stash(1)</a>.</p>
89868994
</dd>
8987-
<dtclass="hdlist1">stash.showIncludeUntracked</dt>
8995+
<dtclass="hdlist1"><code>stash.showIncludeUntracked</code></dt>
89888996
<dd>
89898997
<p>If this is set to true, the <code>git</code><code>stash</code><code>show</code> command will show
8990-
the untracked files of a stash entry. Defaults to false. See
8991-
the description of the <em>show</em> command in <ahref="git-stash.html">git-stash(1)</a>.</p>
8998+
the untracked files of a stash entry. Defaults to false. See the description of the 'show' command in <ahref="git-stash.html">git-stash(1)</a>.</p>
89928999
</dd>
8993-
<dtclass="hdlist1">stash.showPatch</dt>
9000+
<dtclass="hdlist1"><code>stash.showPatch</code></dt>
89949001
<dd>
89959002
<p>If this is set to true, the <code>git</code><code>stash</code><code>show</code> command without an
89969003
option will show the stash entry in patch form. Defaults to false.
8997-
See the description of the <em>show</em> command in <ahref="git-stash.html">git-stash(1)</a>.</p>
9004+
See the description of the 'show' command in <ahref="git-stash.html">git-stash(1)</a>.</p>
89989005
</dd>
8999-
<dtclass="hdlist1">stash.showStat</dt>
9006+
<dtclass="hdlist1"><code>stash.showStat</code></dt>
90009007
<dd>
90019008
<p>If this is set to true, the <code>git</code><code>stash</code><code>show</code> command without an
90029009
option will show a diffstat of the stash entry. Defaults to true.
9003-
See the description of the <em>show</em> command in <ahref="git-stash.html">git-stash(1)</a>.</p>
9010+
See the description of the 'show' command in <ahref="git-stash.html">git-stash(1)</a>.</p>
90049011
</dd>
90059012
<dtclass="hdlist1">status.relativePaths</dt>
90069013
<dd>
@@ -9236,26 +9243,27 @@ <h3 id="_variables">Variables</h3>
92369243
or <code>info</code>, and if there is an error with the computed alternate, the
92379244
clone proceeds as if no alternate was specified.</p>
92389245
</dd>
9239-
<dtclass="hdlist1">tag.forceSignAnnotated</dt>
9246+
<dtclass="hdlist1"><code>tag.forceSignAnnotated</code></dt>
92409247
<dd>
92419248
<p>A boolean to specify whether annotated tags created should be GPG signed.
92429249
If <code>--annotate</code> is specified on the command line, it takes
92439250
precedence over this option.</p>
92449251
</dd>
9245-
<dtclass="hdlist1">tag.sort</dt>
9252+
<dtclass="hdlist1"><code>tag.sort</code></dt>
92469253
<dd>
92479254
<p>This variable controls the sort ordering of tags when displayed by
9248-
<ahref="git-tag.html">git-tag(1)</a>. Without the "--sort=&lt;value&gt;" option provided, the
9249-
value of this variable will be used as the default.</p>
9255+
<ahref="git-tag.html">git-tag(1)</a>.
9256+
Without the <code>--sort=</code><em>&lt;value&gt;</em> option provided, the value of this variable will
9257+
be used as the default.</p>
92509258
</dd>
9251-
<dtclass="hdlist1">tag.gpgSign</dt>
9259+
<dtclass="hdlist1"><code>tag.gpgSign</code></dt>
92529260
<dd>
92539261
<p>A boolean to specify whether all tags should be GPG signed.
92549262
Use of this option when running in an automated script can
92559263
result in a large number of tags being signed. It is therefore
9256-
convenient to use an agent to avoid typing your gpg passphrase
9264+
convenient to use an agent to avoid typing your GPG passphrase
92579265
several times. Note that this option doesn&#8217;t affect tag signing
9258-
behavior enabled by "-u &lt;keyid&gt;" or "--local-user=&lt;keyid&gt;" options.</p>
9266+
behavior enabled by <code>-u</code><em>&lt;keyid&gt;</em> or <code>--local-user=</code><em>&lt;keyid&gt;</em> options.</p>
92599267
</dd>
92609268
<dtclass="hdlist1">tar.umask</dt>
92619269
<dd>
@@ -9949,7 +9957,7 @@ <h3 id="_variables">Variables</h3>
99499957
Currently only <ahref="git-instaweb.html">git-instaweb(1)</a> and <ahref="git-help.html">git-help(1)</a>
99509958
may use it.</p>
99519959
</dd>
9952-
<dtclass="hdlist1">worktree.guessRemote</dt>
9960+
<dtclass="hdlist1"><code>worktree.guessRemote</code></dt>
99539961
<dd>
99549962
<p>If no branch is specified and neither <code>-b</code> nor <code>-B</code> nor
99559963
<code>--detach</code> is used, then <code>git</code><code>worktree</code><code>add</code> defaults to
@@ -9958,16 +9966,16 @@ <h3 id="_variables">Variables</h3>
99589966
branch whose name uniquely matches the new branch name. If
99599967
such a branch exists, it is checked out and set as "upstream"
99609968
for the new branch. If no such match can be found, it falls
9961-
back to creating a new branch from the current HEAD.</p>
9969+
back to creating a new branch from the current <code>HEAD</code>.</p>
99629970
</dd>
9963-
<dtclass="hdlist1">worktree.useRelativePaths</dt>
9971+
<dtclass="hdlist1"><code>worktree.useRelativePaths</code></dt>
99649972
<dd>
9965-
<p>Link worktrees using relative paths (when "true") or absolute
9966-
paths (when "false"). This is particularly useful for setups
9973+
<p>Link worktrees using relative paths (when "<code>true</code>") or absolute
9974+
paths (when "<code>false</code>"). This is particularly useful for setups
99679975
where the repository and worktrees may be moved between
9968-
different locations or environments. Defaults to "false".</p>
9976+
different locations or environments. Defaults to "<code>false</code>".</p>
99699977
<divclass="paragraph">
9970-
<p>Note that setting <code>worktree.useRelativePaths</code> to "true" implies enabling the
9978+
<p>Note that setting <code>worktree.useRelativePaths</code> to "<code>true</code>" implies enabling the
99719979
<code>extensions.relativeWorktrees</code> config (see <ahref="git-config.html">git-config(1)</a>),
99729980
thus making it incompatible with older versions of Git.</p>
99739981
</div>

‎git-diff-tree.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,10 +1577,10 @@ <h2 id="_options">OPTIONS</h2>
15771577
</dd>
15781578
<dtclass="hdlist1"><code>--notes</code>[<code>=</code><em>&lt;ref&gt;</em>]</dt>
15791579
<dd>
1580-
<p>Show the notes (see <ahref="git-notes.html">git-notes(1)</a>) that annotate the
1581-
commit, when showing the commit log message. This is the default
1582-
for <code>git</code><code>log</code>, <code>git</code><code>show</code> and <code>git</code><code>whatchanged</code> commands when
1583-
there is no <code>--pretty</code>, <code>--format</code>, or <code>--oneline</code> option given
1580+
<p>Show the notes (see <ahref="git-notes.html">git-notes(1)</a>) that annotate the
1581+
commit, when showing the commit log message.
1582+
This is the default for <code>git</code><code>log</code>, <code>git</code><code>show</code> and <code>git</code><code>whatchanged</code>
1583+
commands when there is no <code>--pretty</code>, <code>--format</code>, or <code>--oneline</code> option given
15841584
on the command line.</p>
15851585
<divclass="paragraph">
15861586
<p>By default, the notes shown are from the notes refs listed in the

‎git-fetch.html‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,83 @@ <h3 id="_named_file_in_git_dirbranches">Named file in <code>$GIT_DIR/branches</c
12641264
</div>
12651265
</div>
12661266
<divclass="sect1">
1267+
<h2id="UPSTREAM-BRANCHES">UPSTREAM BRANCHES</h2>
1268+
<divclass="sectionbody">
1269+
<divclass="paragraph">
1270+
<p>Branches in Git can optionally have an upstream remote branch.
1271+
Git defaults to using the upstream branch for remote operations, for example:</p>
1272+
</div>
1273+
<divclass="ulist">
1274+
<ul>
1275+
<li>
1276+
<p>It&#8217;s the default for <code>git</code><code>pull</code> or <code>git</code><code>fetch</code> with no arguments.</p>
1277+
</li>
1278+
<li>
1279+
<p>It&#8217;s the default for <code>git</code><code>push</code> with no arguments, with some exceptions.
1280+
For example, you can use the <code>branch.</code><em>&lt;name&gt;</em><code>.pushRemote</code> option to push
1281+
to a different remote than you pull from, and by default with
1282+
<code>push.default=simple</code> the upstream branch you configure must have
1283+
the same name.</p>
1284+
</li>
1285+
<li>
1286+
<p>Various commands, including <code>git</code><code>checkout</code> and <code>git</code><code>status</code>, will
1287+
show you how many commits have been added to your current branch and
1288+
the upstream since you forked from it, for example "Your branch and
1289+
<em>origin/main</em> have diverged, and have 2 and 3 different commits each
1290+
respectively".</p>
1291+
</li>
1292+
</ul>
1293+
</div>
1294+
<divclass="paragraph">
1295+
<p>The upstream is stored in .<code>git/config</code>, in the "remote" and "merge"
1296+
fields. For example, if <code>main</code>'s upstream is <code>origin/main</code>:</p>
1297+
</div>
1298+
<divclass="listingblock">
1299+
<divclass="content">
1300+
<pre>[branch "main"]
1301+
remote = origin
1302+
merge = refs/heads/main</pre>
1303+
</div>
1304+
</div>
1305+
<divclass="paragraph">
1306+
<p>You can set an upstream branch explicitly with
1307+
<code>git</code><code>push</code><code>--set-upstream</code><em>&lt;remote&gt;</em><em>&lt;branch&gt;</em>
1308+
but Git will often automatically set the upstream for you, for example:</p>
1309+
</div>
1310+
<divclass="ulist">
1311+
<ul>
1312+
<li>
1313+
<p>When you clone a repository, Git will automatically set the upstream
1314+
for the default branch.</p>
1315+
</li>
1316+
<li>
1317+
<p>If you have the <code>push.autoSetupRemote</code> configuration option set,
1318+
<code>git</code><code>push</code> will automatically set the upstream the first time you push
1319+
a branch.</p>
1320+
</li>
1321+
<li>
1322+
<p>Checking out a remote-tracking branch with <code>git</code><code>checkout</code><em>&lt;branch&gt;</em>
1323+
will automatically create a local branch with that name and set
1324+
the upstream to the remote branch.</p>
1325+
</li>
1326+
</ul>
1327+
</div>
1328+
<divclass="admonitionblock note">
1329+
<table>
1330+
<tr>
1331+
<tdclass="icon">
1332+
<divclass="title">Note</div>
1333+
</td>
1334+
<tdclass="content">
1335+
Upstream branches are sometimes referred to as "tracking information",
1336+
as in "set the branch&#8217;s tracking information".
1337+
</td>
1338+
</tr>
1339+
</table>
1340+
</div>
1341+
</div>
1342+
</div>
1343+
<divclass="sect1">
12671344
<h2id="_configured_remote_tracking_branches">CONFIGURED REMOTE-TRACKING BRANCHES<aid="CRTB"></a></h2>
12681345
<divclass="sectionbody">
12691346
<divclass="paragraph">

‎git-log.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,10 +1788,10 @@ <h3 id="_commit_formatting">Commit Formatting</h3>
17881788
</dd>
17891789
<dtclass="hdlist1"><code>--notes</code>[<code>=</code><em>&lt;ref&gt;</em>]</dt>
17901790
<dd>
1791-
<p>Show the notes (see <ahref="git-notes.html">git-notes(1)</a>) that annotate the
1792-
commit, when showing the commit log message. This is the default
1793-
for <code>git</code><code>log</code>, <code>git</code><code>show</code> and <code>git</code><code>whatchanged</code> commands when
1794-
there is no <code>--pretty</code>, <code>--format</code>, or <code>--oneline</code> option given
1791+
<p>Show the notes (see <ahref="git-notes.html">git-notes(1)</a>) that annotate the
1792+
commit, when showing the commit log message.
1793+
This is the default for <code>git</code><code>log</code>, <code>git</code><code>show</code> and <code>git</code><code>whatchanged</code>
1794+
commands when there is no <code>--pretty</code>, <code>--format</code>, or <code>--oneline</code> option given
17951795
on the command line.</p>
17961796
<divclass="paragraph">
17971797
<p>By default, the notes shown are from the notes refs listed in the

0 commit comments

Comments
(0)