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
14 changes: 12 additions & 2 deletions Documentation/RelNotes/2.50.0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Fixes since v2.49
(merge e7ef4be7c2 mh/left-right-limited later to maint).

* Document the convention to disable hooks altogether by setting the
hooksPath configuration variable to /dev/nulll
hooksPath configuration variable to /dev/null.
(merge 1b2eee94f1 ds/doc-disable-hooks later to maint).

* Make sure outage of third-party sites that supply P4, Git-LFS, and
Expand All @@ -318,6 +318,7 @@ Fixes since v2.49

* Update to arm64 Windows port.
(merge 436a42215e js/windows-arm64 later to maint).

* hashmap API clean-up to ensure hashmap_clear() leaves a cleared map
in a reusable state.
(merge 9481877de3 en/hashmap-clear-fix later to maint).
Expand Down Expand Up @@ -351,7 +352,7 @@ Fixes since v2.49
(merge 5dbaec628d pw/sequencer-reflog-use-after-free later to maint).

* win+Meson CI pipeline, unlike other pipelines for Windows,
used to build artifacts in develper mode, which has been changed to
used to build artifacts in developer mode, which has been changed to
build them in release mode for consistency.
(merge 184abdcf05 js/ci-build-win-in-release-mode later to maint).

Expand Down Expand Up @@ -379,6 +380,15 @@ Fixes since v2.49
reverse failed to give the mode bits of the path "removed" by the
patch to the file it creates, which has been corrected.

* "git verify-refs" (and hence "git fsck --reference") started
erroring out in a repository in which secondary worktrees were
prepared with Git 2.43 or lower.
(merge d5b3c38b8a sj/ref-contents-check-fix later to maint).

* Update total_ram() functrion on BSD variants.

* Update online_cpus() functrion on BSD variants.

* Other code cleanup, docfix, build fix, etc.
(merge 227c4f33a0 ja/doc-block-delimiter-markup-fix later to maint).
(merge 2bfd3b3685 ab/decorate-code-cleanup later to maint).
Expand Down
6 changes: 3 additions & 3 deletions Documentation/git-column.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ EXAMPLES
--------

Format data by columns:
+

------------
$ seq 1 24 | git column --mode=column --padding=5
1 4 7 10 13 16 19 22
Expand All @@ -59,7 +59,7 @@ $ seq 1 24 | git column --mode=column --padding=5
------------

Format data by rows:
+

------------
$ seq 1 21 | git column --mode=row --padding=5
1 2 3 4 5 6 7
Expand All @@ -68,7 +68,7 @@ $ seq 1 21 | git column --mode=row --padding=5
------------

List some tags in a table with unequal column widths:
+

------------
$ git tag --list 'v2.4.*' --column=row,dense
v2.4.0 v2.4.0-rc0 v2.4.0-rc1 v2.4.0-rc2 v2.4.0-rc3
Expand Down
2 changes: 1 addition & 1 deletion GIT-VERSION-GEN
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

DEF_VER=v2.50.0-rc0
DEF_VER=v2.50.0-rc1

LF='
'
Expand Down
4 changes: 3 additions & 1 deletion builtin/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,14 +516,16 @@ static uint64_t total_ram(void)
total *= (uint64_t)si.mem_unit;
return total;
}
#elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || defined(HW_PHYSMEM))
#elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || defined(HW_PHYSMEM) || defined(HW_PHYSMEM64))
int64_t physical_memory;
int mib[2];
size_t length;

mib[0] = CTL_HW;
# if defined(HW_MEMSIZE)
mib[1] = HW_MEMSIZE;
# elif defined(HW_PHYSMEM64)
mib[1] = HW_PHYSMEM64;
# else
mib[1] = HW_PHYSMEM;
# endif
Expand Down
3 changes: 3 additions & 0 deletions refs/files-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -3762,6 +3762,9 @@ static int files_fsck_refs_dir(struct ref_store *ref_store,

iter = dir_iterator_begin(sb.buf, 0);
if (!iter) {
if (errno == ENOENT && !is_main_worktree(wt))
goto out;

ret = error_errno(_("cannot open directory %s"), sb.buf);
goto out;
}
Expand Down
19 changes: 19 additions & 0 deletions t/t0602-reffiles-fsck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,25 @@ test_expect_success 'ref name check should be adapted into fsck messages' '
)
'

test_expect_success 'no refs directory of worktree should not cause problems' '
test_when_finished "rm -rf repo" &&
git init repo &&
(
cd repo &&
test_commit initial &&
git worktree add --detach ./worktree &&

(
cd worktree &&
worktree_refdir="$(git rev-parse --git-dir)/refs" &&
# Simulate old directory layout
rmdir "$worktree_refdir" &&
git refs verify 2>err &&
test_must_be_empty err
)
)
'

test_expect_success 'ref name check should work for multiple worktrees' '
test_when_finished "rm -rf repo" &&
git init repo &&
Expand Down
8 changes: 4 additions & 4 deletions thread-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ int online_cpus(void)
mib[0] = CTL_HW;
# ifdef HW_AVAILCPU
mib[1] = HW_AVAILCPU;
len = sizeof(cpucount);
if (!sysctl(mib, 2, &cpucount, &len, NULL, 0))
return cpucount;
# endif /* HW_AVAILCPU */
# elif defined(HW_NCPUONLINE)
mib[1] = HW_NCPUONLINE;
# else
mib[1] = HW_NCPU;
# endif /* HW_AVAILCPU */
len = sizeof(cpucount);
if (!sysctl(mib, 2, &cpucount, &len, NULL, 0))
return cpucount;
Expand Down