Skip to content

Commit 8a42c5b

Browse files
committed
Sync with 'master'
2 parents 9eebe11 + 1adf5bc commit 8a42c5b

7 files changed

Lines changed: 31 additions & 38 deletions

File tree

Documentation/RelNotes/2.54.0.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ UI, Workflows & Features
119119
* "git replay" (experimental) learns, in addition to "pick" and
120120
"replay", a new operating mode "revert".
121121

122+
* git replay now supports replaying down to the root commit.
123+
122124

123125
Performance, Internal Implementation, Development Support etc.
124126
--------------------------------------------------------------
@@ -283,6 +285,21 @@ Performance, Internal Implementation, Development Support etc.
283285
is buggy and breaks our existing tests, which unfortunately
284286
have been rewritten to avoid triggering the bug.
285287
288+
* Object name handling (disambiguation and abbreviation) has been
289+
refactored to be backend-generic, moving logic into the respective
290+
object database backends.
291+
292+
* pack-objects's --stdin-packs=follow mode learns to handle
293+
excluded-but-open packs.
294+
295+
* A few code paths that spawned child processes for network
296+
connection weren't wait(2)ing for their children and letting "init"
297+
reap them instead; they have been tightened.
298+
299+
* Adjust the codebase for C23 that changes functions like strchr()
300+
that discarded constness when they return a pointer into a const
301+
string to preserve constness.
302+
286303
287304
Fixes since v2.53
288305
-----------------
@@ -512,3 +529,6 @@ Fixes since v2.53
512529
(merge 37182267a0 kh/doc-interpret-trailers-1 later to maint).
513530
(merge f64c50e768 jc/rerere-modern-strbuf-handling later to maint).
514531
(merge 699248d89e th/t8003-unhide-git-failures later to maint).
532+
(merge d8e34f971b za/t2000-modernise later to maint).
533+
(merge 849988bc74 th/t6101-unhide-git-failures later to maint).
534+
(merge 0f0ce07625 sp/doc-gitignore-oowt later to maint).

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2464,7 +2464,7 @@ int mingw_rename(const char *pold, const char *pnew)
24642464
if (supports_file_rename_info_ex) {
24652465
/*
24662466
* Our minimum required Windows version is still set to Windows
2467-
* Vista. We thus have to declare required infrastructure for
2467+
* 8.1. We thus have to declare required infrastructure for
24682468
* FileRenameInfoEx ourselves until we bump _WIN32_WINNT to
24692469
* 0x0A00. Furthermore, we have to handle cases where the
24702470
* FileRenameInfoEx call isn't supported yet.

compat/nedmalloc/malloc.c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
500500
#ifdef WIN32
501501
#define WIN32_LEAN_AND_MEAN
502502
#ifndef _WIN32_WINNT
503-
#define _WIN32_WINNT 0x403
503+
#define _WIN32_WINNT 0x603
504504
#endif
505505
#include <windows.h>
506506
#define HAVE_MMAP 1

compat/poll/poll.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#define DISABLE_SIGN_COMPARE_WARNINGS
2222

23-
/* To bump the minimum Windows version to Windows Vista */
23+
/* To bump the minimum Windows version to Windows 8.1 */
2424
#include "git-compat-util.h"
2525

2626
/* Tell gcc not to warn about the (nfd < 0) tests, below. */
@@ -41,7 +41,7 @@
4141
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
4242
# define WIN32_NATIVE
4343
# if defined (_MSC_VER) && !defined(_WIN32_WINNT)
44-
# define _WIN32_WINNT 0x0502
44+
# define _WIN32_WINNT 0x0603
4545
# endif
4646
# include <winsock2.h>
4747
# include <windows.h>

compat/posix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
#if defined(WIN32) && !defined(__CYGWIN__) /* Both MinGW and MSVC */
7878
# if !defined(_WIN32_WINNT)
79-
# define _WIN32_WINNT 0x0600
79+
# define _WIN32_WINNT 0x0603
8080
# endif
8181
#define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */
8282
#include <winsock2.h>

compat/win32/flush.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ int win32_fsync_no_flush(int fd)
66
{
77
IO_STATUS_BLOCK io_status;
88

9+
#ifndef FLUSH_FLAGS_FILE_DATA_ONLY
910
#define FLUSH_FLAGS_FILE_DATA_ONLY 1
11+
#endif
1012

1113
DECLARE_PROC_ADDR(ntdll.dll, NTSTATUS, NTAPI, NtFlushBuffersFileEx,
1214
HANDLE FileHandle, ULONG Flags, PVOID Parameters, ULONG ParameterSize,

compat/winansi.c

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,47 +32,18 @@ static int non_ascii_used = 0;
3232
static HANDLE hthread, hread, hwrite;
3333
static HANDLE hconsole1, hconsole2;
3434

35-
#ifdef __MINGW32__
36-
#if !defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 5
37-
typedef struct _CONSOLE_FONT_INFOEX {
38-
ULONG cbSize;
39-
DWORD nFont;
40-
COORD dwFontSize;
41-
UINT FontFamily;
42-
UINT FontWeight;
43-
WCHAR FaceName[LF_FACESIZE];
44-
} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX;
45-
#endif
46-
#endif
47-
4835
static void warn_if_raster_font(void)
4936
{
5037
DWORD fontFamily = 0;
51-
DECLARE_PROC_ADDR(kernel32.dll, BOOL, WINAPI,
52-
GetCurrentConsoleFontEx, HANDLE, BOOL,
53-
PCONSOLE_FONT_INFOEX);
38+
CONSOLE_FONT_INFOEX cfi;
5439

5540
/* don't bother if output was ascii only */
5641
if (!non_ascii_used)
5742
return;
5843

59-
/* GetCurrentConsoleFontEx is available since Vista */
60-
if (INIT_PROC_ADDR(GetCurrentConsoleFontEx)) {
61-
CONSOLE_FONT_INFOEX cfi;
62-
cfi.cbSize = sizeof(cfi);
63-
if (GetCurrentConsoleFontEx(console, 0, &cfi))
64-
fontFamily = cfi.FontFamily;
65-
} else {
66-
/* pre-Vista: check default console font in registry */
67-
HKEY hkey;
68-
if (ERROR_SUCCESS == RegOpenKeyExA(HKEY_CURRENT_USER, "Console",
69-
0, KEY_READ, &hkey)) {
70-
DWORD size = sizeof(fontFamily);
71-
RegQueryValueExA(hkey, "FontFamily", NULL, NULL,
72-
(LPVOID) &fontFamily, &size);
73-
RegCloseKey(hkey);
74-
}
75-
}
44+
cfi.cbSize = sizeof(cfi);
45+
if (GetCurrentConsoleFontEx(console, 0, &cfi))
46+
fontFamily = cfi.FontFamily;
7647

7748
if (!(fontFamily & TMPF_TRUETYPE)) {
7849
const wchar_t *msg = L"\nWarning: Your console font probably "

0 commit comments

Comments
 (0)