Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DecisionMaking.html
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ <h2 id="_other_discussion_venues">Other Discussion Venues</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion MyFirstContribution.html
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@ <h3 id="after-approval"><a class="anchor" href="#after-approval"></a>After Revie
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-05-27 15:29:51 -0700
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
21 changes: 21 additions & 0 deletions RelNotes/2.51.0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ UI, Workflows & Features
* "git for-each-ref" learns "--start-after" option to help
applications that want to page its output.

* "git switch" and "git restore" are declared to be no longer
experimental.


Performance, Internal Implementation, Development Support etc.
--------------------------------------------------------------
Expand Down Expand Up @@ -269,6 +272,18 @@ including security updates, are included in this release.
few test helper programs are now closed.
(merge 0f1b33815b hl/test-helper-fd-close later to maint).

* Interactive prompt code did not correctly strip CRLF from the end
of line on Windows.
(merge 711a20827b js/prompt-crlf-fix later to maint).

* The config API had a set of convenience wrapper functions that
implicitly use the_repository instance; they have been removed and
inlined at the calling sites.

* "git add/etc -p" now honor the diff.context configuration variable,
and also they learn to honor the -U<n> command-line option.
(merge 2b3ae04011 lm/add-p-context later to maint).

* Other code cleanup, docfix, build fix, etc.
(merge b257adb571 lo/my-first-ow-doc-update later to maint).
(merge 8b34b6a220 ly/sequencer-update-squash-is-fixup-only later to maint).
Expand Down Expand Up @@ -299,3 +314,9 @@ including security updates, are included in this release.
(merge 26552cb62a jk/unleak-reflog-expire-entry later to maint).
(merge 339d95fda9 jc/ci-print-test-failures-fix later to maint).
(merge 8c3add51a8 cb/meson-avoid-broken-macos-pcre2 later to maint).
(merge 5247da07b8 ps/meson-clar-decls-fix later to maint).
(merge f3ef347bb2 ch/t7450-recursive-clone-test-fix later to maint).
(merge 4ac3302a1a jc/doc-release-vs-clear later to maint).
(merge 3bdd897413 ms/meson-with-ancient-git-wo-ls-files-dedup later to maint).
(merge cca758d324 kh/doc-fast-import-historical later to maint).
(merge 9b0781196a jc/test-hashmap-is-still-here later to maint).
2 changes: 1 addition & 1 deletion ReviewingGuidelines.html
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ <h2 id="_see_also">See Also</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion SubmittingPatches.html
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ <h3 id="_gnus">Gnus</h3>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-07-24 21:55:32 -0700
Last updated 2025-08-04 09:35:50 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion ToolsForGit.html
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ <h4 id="_httpswww_kernel_orgdochtmlv4_10processcoding_style_htmlyou_ve_made_a_me
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-03-26 00:41:02 -0700
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
10 changes: 10 additions & 0 deletions diff-context-options.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
`-U<n>`::
`--unified=<n>`::
Generate diffs with _<n>_ lines of context. Defaults to `diff.context`
or 3 if the config option is unset.

`--inter-hunk-context=<n>`::
Show the context between diff hunks, up to the specified _<number>_
of lines, thereby fusing hunks that are close to each other.
Defaults to `diff.interHunkContext` or 0 if the config option
is unset.
2 changes: 1 addition & 1 deletion everyday.html
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ <h1>Everyday Git With 20 Commands Or So</h1>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 2 additions & 0 deletions git-add.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ This effectively runs `add --interactive`, but bypasses the
initial command menu and directly jumps to the `patch` subcommand.
See ``Interactive mode'' for details.

include::diff-context-options.adoc[]

`-e`::
`--edit`::
Open the diff vs. the index in an editor and let the user
Expand Down
15 changes: 14 additions & 1 deletion git-add.html
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,19 @@ <h2 id="_options">OPTIONS</h2>
See &#8220;Interactive mode&#8221; for details.</p>
</div>
</dd>
<dt class="hdlist1"><code>-U</code><em>&lt;n&gt;</em></dt>
<dt class="hdlist1"><code>--unified=</code><em>&lt;n&gt;</em></dt>
<dd>
<p>Generate diffs with <em>&lt;n&gt;</em> lines of context. Defaults to <code>diff.context</code>
or 3 if the config option is unset.</p>
</dd>
<dt class="hdlist1"><code>--inter-hunk-context=</code><em>&lt;n&gt;</em></dt>
<dd>
<p>Show the context between diff hunks, up to the specified <em>&lt;number&gt;</em>
of lines, thereby fusing hunks that are close to each other.
Defaults to <code>diff.interHunkContext</code> or 0 if the config option
is unset.</p>
</dd>
<dt class="hdlist1"><code>-e</code></dt>
<dt class="hdlist1"><code>--edit</code></dt>
<dd>
Expand Down Expand Up @@ -1030,7 +1043,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-08-04 09:35:46 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-am.html
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-archimport.html
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-backfill.html
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-18 15:42:55 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-bisect-lk2009.html
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ <h2 id="_references">References</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-bisect.html
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-03-26 00:41:02 -0700
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-bugreport.html
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-check-attr.html
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-03-26 00:41:02 -0700
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-check-ignore.html
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-check-mailmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-check-ref-format.html
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-checkout-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 2 additions & 0 deletions git-checkout.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
Note that this option uses the no overlay mode by default (see also
`--overlay`), and currently doesn't support overlay mode.

include::diff-context-options.adoc[]

`--ignore-other-worktrees`::
`git checkout` refuses when the wanted branch is already checked
out or otherwise in use by another worktree. This option makes
Expand Down
15 changes: 14 additions & 1 deletion git-checkout.html
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,19 @@ <h2 id="_options">OPTIONS</h2>
<code>--overlay</code>), and currently doesn&#8217;t support overlay mode.</p>
</div>
</dd>
<dt class="hdlist1"><code>-U</code><em>&lt;n&gt;</em></dt>
<dt class="hdlist1"><code>--unified=</code><em>&lt;n&gt;</em></dt>
<dd>
<p>Generate diffs with <em>&lt;n&gt;</em> lines of context. Defaults to <code>diff.context</code>
or 3 if the config option is unset.</p>
</dd>
<dt class="hdlist1"><code>--inter-hunk-context=</code><em>&lt;n&gt;</em></dt>
<dd>
<p>Show the context between diff hunks, up to the specified <em>&lt;number&gt;</em>
of lines, thereby fusing hunks that are close to each other.
Defaults to <code>diff.interHunkContext</code> or 0 if the config option
is unset.</p>
</dd>
<dt class="hdlist1"><code>--ignore-other-worktrees</code></dt>
<dd>
<p><code>git</code> <code>checkout</code> refuses when the wanted branch is already checked
Expand Down Expand Up @@ -1289,7 +1302,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-06-02 12:42:06 -0700
Last updated 2025-08-04 09:35:46 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-cherry-pick.html
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-cherry.html
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-citool.html
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-clean.html
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-clone.html
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-03-12 16:10:13 -0700
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-column.html
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-06-03 09:25:29 -0700
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-commit-graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion git-commit-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ <h2 id="_git">GIT</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2025-02-14 21:38:14 -0800
Last updated 2025-06-20 18:10:42 -0700
</div>
</div>
</body>
Expand Down
2 changes: 2 additions & 0 deletions git-commit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ OPTIONS
which changes to commit. See linkgit:git-add[1] for
details.

include::diff-context-options.adoc[]

`-C <commit>`::
`--reuse-message=<commit>`::
Take an existing _<commit>_ object, and reuse the log message
Expand Down
Loading