Skip to content

Commit de41b6c

Browse files
committed
Autogenerated HTML docs for v2.48.1-220-gbc204b
1 parent fd039e9 commit de41b6c

File tree

4 files changed

+53
-4
lines changed

4 files changed

+53
-4
lines changed

Diff for: BreakingChanges.txt

+25
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,31 @@ Cf. <[email protected]>,
154154
<CAKvOHKAFXQwt4D8yUCCkf_TQL79mYaJ=KAKhtpDNTvHJFuX1NA@mail.gmail.com>,
155155
156156

157+
* Support for storing shorthands for remote URLs in "$GIT_COMMON_DIR/branches/"
158+
and "$GIT_COMMON_DIR/remotes/" has been long superseded by storing remotes in
159+
the repository configuration.
160+
+
161+
The mechanism has originally been introduced in f170e4b39d ([PATCH] fetch/pull:
162+
short-hand notation for remote repositories., 2005-07-16) and was superseded by
163+
6687f8fea2 ([PATCH] Use .git/remote/origin, not .git/branches/origin.,
164+
2005-08-20), where we switched from ".git/branches/" to ".git/remotes/". That
165+
commit already mentions an upcoming deprecation of the ".git/branches/"
166+
directory, and starting with a1d4aa7424 (Add repository-layout document.,
167+
2005-09-01) we have also marked this layout as deprecated. Eventually we also
168+
started to migrate away from ".git/remotes/" in favor of config-based remotes,
169+
and we have marked the directory as legacy in 3d3d282146 (Documentation:
170+
Grammar correction, wording fixes and cleanup, 2011-08-23)
171+
+
172+
As our documentation mentions, these directories are not to be found in modern
173+
repositories at all and most users aren't even aware of these mechanisms. They
174+
have been deprecated for almost 20 years and 14 years respectively, and we are
175+
not aware of any active users that have complained about this deprecation.
176+
Furthermore, the ".git/branches/" directory is nowadays misleadingly named and
177+
may cause confusion as "branches" are almost exclusively used in the context of
178+
references.
179+
+
180+
These features will be removed.
181+
157182
== Superseded features that will not be deprecated
158183

159184
Some features have gained newer replacements that aim to improve the design in

Diff for: RelNotes/2.49.0.txt

+15
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ Performance, Internal Implementation, Development Support etc.
2626
* Introduce a new API to visit objects in batches based on a common
2727
path, or by type.
2828

29+
* Following the procedure we established to introduce breaking
30+
changes for Git 3.0, allow an early opt-in for removing support of
31+
$GIT_DIR/branches/ and $GIT_DIR/remotes/ directories to configure
32+
remotes.
33+
2934

3035
Fixes since v2.48
3136
-----------------
@@ -113,6 +118,14 @@ Fixes since v2.48
113118
stress that the command reads its data from the standard input.
114119
(merge 49edce4ff9 jc/show-index-h-update later to maint).
115120

121+
* The API around choosing to use unsafe variant of SHA-1
122+
implementation has been updated in an attempt to make it harder to
123+
abuse.
124+
(merge 04292c3796 tb/unsafe-hash-cleanup later to maint).
125+
126+
* Fix bugs in an earlier attempt to fix "git refs migration".
127+
(merge f11f0a5a2d kn/reflog-migration-fix-fix later to maint).
128+
116129
* Other code cleanup, docfix, build fix, etc.
117130
(merge ddb5287894 jk/t7407-use-test-grep later to maint).
118131
(merge 21e1b44865 aj/difftool-config-doc-fix later to maint).
@@ -123,3 +136,5 @@ Fixes since v2.48
123136
(merge 69666e6746 ja/doc-restore-markup-update later to maint).
124137
(merge d11d003ba5 sk/strlen-returns-size_t later to maint).
125138
(merge 77b2d29e91 ja/doc-notes-markup-updates later to maint).
139+
(merge 6979bf6f8f jk/combine-diff-cleanup later to maint).
140+
(merge 8705c9bd13 kn/pack-write-with-reduced-globals later to maint).

Diff for: gitrepository-layout.html

+8-2
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ <h2 id="_description">DESCRIPTION</h2>
636636
</dd>
637637
<dt class="hdlist1">branches</dt>
638638
<dd>
639-
<p>A slightly deprecated way to store shorthands to be used
639+
<p>A deprecated way to store shorthands to be used
640640
to specify a URL to <em>git fetch</em>, <em>git pull</em> and <em>git push</em>.
641641
A file can be stored as <code>branches/</code><em>&lt;name&gt;</em> and then
642642
<em>name</em> can be given to these commands in place of
@@ -645,6 +645,9 @@ <h2 id="_description">DESCRIPTION</h2>
645645
and not likely to be found in modern repositories. This
646646
directory is ignored if $GIT_COMMON_DIR is set and
647647
"$GIT_COMMON_DIR/branches" will be used instead.</p>
648+
<div class="paragraph">
649+
<p>Git will stop reading remotes from this directory in Git 3.0.</p>
650+
</div>
648651
</dd>
649652
<dt class="hdlist1">hooks</dt>
650653
<dd>
@@ -732,6 +735,9 @@ <h2 id="_description">DESCRIPTION</h2>
732735
and not likely to be found in modern repositories. This
733736
directory is ignored if $GIT_COMMON_DIR is set and
734737
"$GIT_COMMON_DIR/remotes" will be used instead.</p>
738+
<div class="paragraph">
739+
<p>Git will stop reading remotes from this directory in Git 3.0.</p>
740+
</div>
735741
</dd>
736742
<dt class="hdlist1">logs</dt>
737743
<dd>
@@ -925,7 +931,7 @@ <h2 id="_git">GIT</h2>
925931
</div>
926932
<div id="footer">
927933
<div id="footer-text">
928-
Last updated 2024-11-07 20:36:53 -0800
934+
Last updated 2025-02-03 11:48:31 -0800
929935
</div>
930936
</div>
931937
</body>

Diff for: gitrepository-layout.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ config.worktree::
153153
linkgit:git-worktree[1]).
154154

155155
branches::
156-
A slightly deprecated way to store shorthands to be used
156+
A deprecated way to store shorthands to be used
157157
to specify a URL to 'git fetch', 'git pull' and 'git push'.
158158
A file can be stored as `branches/<name>` and then
159159
'name' can be given to these commands in place of
@@ -162,7 +162,8 @@ branches::
162162
and not likely to be found in modern repositories. This
163163
directory is ignored if $GIT_COMMON_DIR is set and
164164
"$GIT_COMMON_DIR/branches" will be used instead.
165-
165+
+
166+
Git will stop reading remotes from this directory in Git 3.0.
166167

167168
hooks::
168169
Hooks are customization scripts used by various Git
@@ -238,6 +239,8 @@ remotes::
238239
and not likely to be found in modern repositories. This
239240
directory is ignored if $GIT_COMMON_DIR is set and
240241
"$GIT_COMMON_DIR/remotes" will be used instead.
242+
+
243+
Git will stop reading remotes from this directory in Git 3.0.
241244

242245
logs::
243246
Records of changes made to refs are stored in this directory.

0 commit comments

Comments
 (0)