+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d5a6f50
blame: drop explicit check for commit graph
pks-t Sep 4, 2025
307e307
revision: drop explicit check for commit graph
pks-t Sep 4, 2025
199d452
commit-graph: return the prepared commit graph from `prepare_commit_g…
pks-t Sep 4, 2025
88bc350
commit-graph: return commit graph from `repo_find_commit_pos_in_graph()`
pks-t Sep 4, 2025
62490b6
commit-graph: pass graphs that are to be merged as parameter
pks-t Sep 4, 2025
5a12fd2
doc: change the markup of paragraphs following a nested list item
jnavila Sep 27, 2025
84a6bf7
doc: fix indentation of refStorage item in git-config(1)
peff Oct 7, 2025
2d2920c
refs: remove unused headers
KarthikNayak Oct 7, 2025
1ef32f0
refs: move consistency check msg to generic layer
KarthikNayak Oct 7, 2025
f644206
reftable: check for trailing newline in 'tables.list'
KarthikNayak Oct 7, 2025
8112e5c
Documentation/fsck-msgids: remove duplicate msg id
KarthikNayak Oct 7, 2025
5a71321
fsck: order 'fsck_msg_type' alphabetically
KarthikNayak Oct 7, 2025
9051638
reftable: add code to facilitate consistency checks
KarthikNayak Oct 7, 2025
466a3a1
refs/reftable: add fsck check for checking the table name
KarthikNayak Oct 7, 2025
fddb484
ci: fix broken jobs on Ubuntu 25.10 caused by switch to sudo-rs(1)
pks-t Oct 10, 2025
7ac1731
Merge branch 'ps/ci-avoid-broken-sudo-on-ubuntu'
gitster Oct 14, 2025
c96add7
Merge branch 'ja/doc-markup-attached-paragraph-fix'
gitster Oct 14, 2025
47c3e03
Merge branch 'ps/commit-graph-per-object-source'
gitster Oct 14, 2025
f50f046
Merge branch 'kn/reftable-consistency-checks'
gitster Oct 14, 2025
ac7d021
The eighteenth batch
gitster Oct 14, 2025
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
11 changes: 11 additions & 0 deletions Documentation/RelNotes/2.52.0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,16 @@ including security updates, are included in this release.
* Handling of an empty subdirectory of .git/refs/ in the ref-files
backend has been corrected.

* Our CI script requires "sudo" that can be told to preserve
environment, but Ubuntu replaced with "sudo" with an implementation
that lacks the feature. Work this around by reinstalling the
original version.
(merge fddb484255 ps/ci-avoid-broken-sudo-on-ubuntu later to maint).

* The reftable backend learned to sanity check its on-disk data more
carefully.
(merge 466a3a1afd kn/reftable-consistency-checks later to maint).

* Other code cleanup, docfix, build fix, etc.
(merge 823d537fa7 kh/doc-git-log-markup-fix later to maint).
(merge cf7efa4f33 rj/t6137-cygwin-fix later to maint).
Expand Down Expand Up @@ -326,3 +336,4 @@ including security updates, are included in this release.
(merge e1d062e8ba ps/odb-clean-stale-wrappers later to maint).
(merge fdd21ba116 mh/doc-credential-url-prefix later to maint).
(merge 1c573a3451 en/doc-merge-tree-describe-merge-base later to maint).
(merge 84a6bf7965 ja/doc-markup-attached-paragraph-fix later to maint).
26 changes: 13 additions & 13 deletions Documentation/config/extensions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ extensions.*::
`core.repositoryFormatVersion` is not `1`. See
linkgit:gitrepository-layout[5].
+
--
compatObjectFormat::
compatObjectFormat:::
Specify a compatibility hash algorithm to use. The acceptable values
are `sha1` and `sha256`. The value specified must be different from the
value of `extensions.objectFormat`. This allows client level
Expand All @@ -19,26 +18,26 @@ Note that the functionality enabled by this extension is incomplete and subject
to change. It currently exists only to allow development and testing of
the underlying feature and is not designed to be enabled by end users.

noop::
noop:::
This extension does not change git's behavior at all. It is useful only
for testing format-1 compatibility.
+
For historical reasons, this extension is respected regardless of the
`core.repositoryFormatVersion` setting.

noop-v1::
noop-v1:::
This extension does not change git's behavior at all. It is useful only
for testing format-1 compatibility.

objectFormat::
objectFormat:::
Specify the hash algorithm to use. The acceptable values are `sha1` and
`sha256`. If not specified, `sha1` is assumed.
+
Note that this setting should only be set by linkgit:git-init[1] or
linkgit:git-clone[1]. Trying to change it after initialization will not
work and will produce hard-to-diagnose issues.

partialClone::
partialClone:::
When enabled, indicates that the repo was created with a partial clone
(or later performed a partial fetch) and that the remote may have
omitted sending certain unwanted objects. Such a remote is called a
Expand All @@ -50,30 +49,31 @@ The value of this key is the name of the promisor remote.
For historical reasons, this extension is respected regardless of the
`core.repositoryFormatVersion` setting.

preciousObjects::
preciousObjects:::
If enabled, indicates that objects in the repository MUST NOT be deleted
(e.g., by `git-prune` or `git repack -d`).
+
For historical reasons, this extension is respected regardless of the
`core.repositoryFormatVersion` setting.

refStorage::
refStorage:::
Specify the ref storage format to use. The acceptable values are:
+
--
include::../ref-storage-format.adoc[]

--
+
Note that this setting should only be set by linkgit:git-init[1] or
linkgit:git-clone[1]. Trying to change it after initialization will not
work and will produce hard-to-diagnose issues.

relativeWorktrees::
relativeWorktrees:::
If enabled, indicates at least one worktree has been linked with
relative paths. Automatically set if a worktree has been created or
repaired with either the `--relative-paths` option or with the
`worktree.useRelativePaths` config set to `true`.

worktreeConfig::
worktreeConfig:::
If enabled, then worktrees will load config settings from the
`$GIT_DIR/config.worktree` file in addition to the
`$GIT_COMMON_DIR/config` file. Note that `$GIT_COMMON_DIR` and
Expand All @@ -87,11 +87,12 @@ When enabling this extension, you must be careful to move
certain values from the common config file to the main working tree's
`config.worktree` file, if present:
+
--
* `core.worktree` must be moved from `$GIT_COMMON_DIR/config` to
`$GIT_COMMON_DIR/config.worktree`.
* If `core.bare` is true, then it must be moved from `$GIT_COMMON_DIR/config`
to `$GIT_COMMON_DIR/config.worktree`.

--
+
It may also be beneficial to adjust the locations of `core.sparseCheckout`
and `core.sparseCheckoutCone` depending on your desire for customizable
Expand All @@ -104,4 +105,3 @@ details.
+
For historical reasons, this extension is respected regardless of the
`core.repositoryFormatVersion` setting.
--
6 changes: 3 additions & 3 deletions Documentation/fsck-msgids.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
`badReferentName`::
(ERROR) The referent name of a symref is invalid.

`badReftableTableName`::
(WARN) A reftable table has an invalid name.

`badTagName`::
(INFO) A tag has an invalid format.

Expand Down Expand Up @@ -104,9 +107,6 @@
`gitmodulesParse`::
(INFO) Could not parse `.gitmodules` blob.

`gitmodulesLarge`;
(ERROR) `.gitmodules` blob is too large to parse.

`gitmodulesPath`::
(ERROR) `.gitmodules` path is invalid.

Expand Down
6 changes: 4 additions & 2 deletions Documentation/pretty-formats.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ ref names with custom decorations. The `decorate` string may be followed by a
colon and zero or more comma-separated options. Option values may contain
literal formatting codes. These must be used for commas (`%x2C`) and closing
parentheses (`%x29`), due to their role in the option syntax.
+

** `prefix=<value>`: Shown before the list of ref names. Defaults to "{nbsp}++(++".
** `suffix=<value>`: Shown after the list of ref names. Defaults to "+)+".
** `separator=<value>`: Shown between ref names. Defaults to "+,+{nbsp}".
Expand All @@ -241,10 +241,12 @@ parentheses (`%x29`), due to their role in the option syntax.
** `tag=<value>`: Shown before tag names. Defaults to "`tag:`{nbsp}".

+
--
For example, to produce decorations with no wrapping
or tag annotations, and spaces as separators:
+

++%(decorate:prefix=,suffix=,tag=,separator= )++
--

++%(describe++`[:<option>,...]`++)++::
human-readable name, like linkgit:git-describe[1]; empty string for
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2767,9 +2767,10 @@ XDIFF_OBJS += xdiff/xutils.o
xdiff-objs: $(XDIFF_OBJS)

REFTABLE_OBJS += reftable/basics.o
REFTABLE_OBJS += reftable/error.o
REFTABLE_OBJS += reftable/block.o
REFTABLE_OBJS += reftable/blocksource.o
REFTABLE_OBJS += reftable/error.o
REFTABLE_OBJS += reftable/fsck.o
REFTABLE_OBJS += reftable/iter.o
REFTABLE_OBJS += reftable/merged.o
REFTABLE_OBJS += reftable/pq.o
Expand Down
3 changes: 0 additions & 3 deletions blame.c
Original file line number Diff line number Diff line change
Expand Up @@ -2909,9 +2909,6 @@ void setup_blame_bloom_data(struct blame_scoreboard *sb)
struct blame_bloom_data *bd;
struct bloom_filter_settings *bs;

if (!sb->repo->objects->commit_graph)
return;

bs = get_bloom_filter_settings(sb->repo);
if (!bs)
return;
Expand Down
8 changes: 5 additions & 3 deletions bloom.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,12 @@ struct bloom_filter *get_or_compute_bloom_filter(struct repository *r,
filter = bloom_filter_slab_at(&bloom_filters, c);

if (!filter->data) {
struct commit_graph *g;
uint32_t graph_pos;
if (repo_find_commit_pos_in_graph(r, c, &graph_pos))
load_bloom_filter_from_graph(r->objects->commit_graph,
filter, graph_pos);

g = repo_find_commit_pos_in_graph(r, c, &graph_pos);
if (g)
load_bloom_filter_from_graph(g, filter, graph_pos);
}

if (filter->data && filter->len) {
Expand Down
9 changes: 9 additions & 0 deletions ci/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ ubuntu-*|i386/ubuntu-*|debian-*)
libsecret-1-dev libpcre2-dev meson ninja-build pkg-config cargo \
${CC_PACKAGE:-${CC:-gcc}} $PYTHON_PACKAGE

# Starting with Ubuntu 25.10, sudo can now be provided via either
# sudo(1) or sudo-rs(1), with the latter being the default. The problem
# is that it does not support `--preserve-env` though, which we rely on
# in our CI. We thus revert back to the C implementation.
if test -f /etc/alternatives/sudo
then
sudo update-alternatives --set sudo /usr/bin/sudo.ws
fi

case "$distro" in
ubuntu-*)
mkdir --parents "$CUSTOM_PATH"
Expand Down
Loading
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载