Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
93f894c
checkout: quote invalid treeish in error message
bk2204 Dec 24, 2025
363837a
macOS: make Homebrew use configurable
rscharfe Dec 24, 2025
cee341e
macOS: use iconv from Homebrew if needed and present
rscharfe Dec 24, 2025
abf05d8
show-branch: use prio_queue
rscharfe Dec 26, 2025
56cef1e
run-command: add first helper for pp child states
10ne1 Dec 26, 2025
23a720e
run-command: add stdin callback for parallelization
nasamuffin Dec 26, 2025
2623849
hook: provide stdin via callback
nasamuffin Dec 26, 2025
05eccff
hook: convert 'post-rewrite' hook in sequencer.c to hook API
nasamuffin Dec 26, 2025
3e2836a
transport: convert pre-push to hook API
nasamuffin Dec 26, 2025
7a77174
reference-transaction: use hook API instead of run-command
10ne1 Dec 26, 2025
857f047
hook: allow overriding the ungroup option
10ne1 Dec 26, 2025
5ab5872
run-command: allow capturing of collated output
nasamuffin Dec 26, 2025
53254bf
hooks: allow callers to capture output
nasamuffin Dec 26, 2025
0bbaf36
receive-pack: convert update hooks to new API
nasamuffin Dec 26, 2025
c65f26f
receive-pack: convert receive hooks to hook API
nasamuffin Dec 26, 2025
06188ea
config: use git_parse_int() in git_config_get_expiry_in_days()
rscharfe Dec 27, 2025
8fb86e1
Merge branch 'bc/checkout-error-message-fix'
gitster Jan 6, 2026
b39aad0
Merge branch 'rs/macos-iconv-workaround'
gitster Jan 6, 2026
1627809
Merge branch 'rs/show-branch-prio-queue'
gitster Jan 6, 2026
f406b89
Merge branch 'ar/run-command-hook'
gitster Jan 6, 2026
d39e3ed
Merge branch 'rs/parse-config-expiry-simplify'
gitster Jan 6, 2026
e0bfec3
The 15th batch
gitster Jan 6, 2026
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
10 changes: 10 additions & 0 deletions Documentation/RelNotes/2.53.0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ Performance, Internal Implementation, Development Support etc.
* Prepare test suite for Git for Windows that supports symbolic
links.

* Use hook API to replace ad-hoc invocation of hook scripts with the
run_command() API.


Fixes since v2.52
-----------------
Expand Down Expand Up @@ -221,6 +224,10 @@ Fixes since v2.52
* Update HTTP tests to adjust for changes in curl 8.18.0
(merge 17f4b01da7 jk/test-curl-updates later to maint).

* Workaround the "iconv" shipped as part of macOS, which is broken
handling stateful ISO/IEC 2022 encoded strings.
(merge cee341e9dd rs/macos-iconv-workaround later to maint).

* Other code cleanup, docfix, build fix, etc.
(merge 46207a54cc qj/doc-http-bad-want-response later to maint).
(merge df90eccd93 kh/doc-commit-extra-references later to maint).
Expand All @@ -242,3 +249,6 @@ Fixes since v2.52
(merge c469ca26c5 dk/ci-rust-fix later to maint).
(merge 12f0be0857 gf/clear-path-cache-cleanup later to maint).
(merge 949df6ed6b js/test-func-comment-fix later to maint).
(merge 93f894c001 bc/checkout-error-message-fix later to maint).
(merge abf05d856f rs/show-branch-prio-queue later to maint).
(merge 06188ea5f3 rs/parse-config-expiry-simplify later to maint).
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ include shared.mak
# specify your own (or DarwinPort's) include directories and
# library directories by defining CFLAGS and LDFLAGS appropriately.
#
# Define NO_HOMEBREW if you don't want to use gettext, libiconv and
# msgfmt installed by Homebrew.
#
# Define HOMEBREW_PREFIX if you have Homebrew installed in a non-default
# location on macOS or on Linux and want to use it.
#
# Define USE_HOMEBREW_LIBICONV to link against libiconv installed by
# Homebrew, if present.
#
# Define NO_APPLE_COMMON_CRYPTO if you are building on Darwin/Mac OS X
# and do not want to use Apple's CommonCrypto library. This allows you
# to provide your own OpenSSL library, for example from MacPorts.
Expand Down Expand Up @@ -1693,6 +1702,23 @@ ifeq ($(uname_S),Darwin)
PTHREAD_LIBS =
endif

ifndef NO_HOMEBREW
ifdef HOMEBREW_PREFIX
ifeq ($(shell test -d $(HOMEBREW_PREFIX)/opt/gettext && echo y),y)
BASIC_CFLAGS += -I$(HOMEBREW_PREFIX)/opt/gettext/include
BASIC_LDFLAGS += -L$(HOMEBREW_PREFIX)/opt/gettext/lib
endif
ifeq ($(shell test -x $(HOMEBREW_PREFIX)/opt/gettext/msgfmt && echo y),y)
MSGFMT = $(HOMEBREW_PREFIX)/opt/gettext/msgfmt
endif
ifdef USE_HOMEBREW_LIBICONV
ifeq ($(shell test -d $(HOMEBREW_PREFIX)/opt/libiconv && echo y),y)
ICONVDIR ?= $(HOMEBREW_PREFIX)/opt/libiconv
endif
endif
endif
endif

ifdef NO_LIBGEN_H
COMPAT_CFLAGS += -DNO_LIBGEN_H
COMPAT_OBJS += compat/basename.o
Expand Down
2 changes: 1 addition & 1 deletion builtin/checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -1899,7 +1899,7 @@ static int checkout_main(int argc, const char **argv, const char *prefix,
struct object_id rev;

if (repo_get_oid_mb(the_repository, opts->from_treeish, &rev))
die(_("could not resolve %s"), opts->from_treeish);
die(_("could not resolve '%s'"), opts->from_treeish);

setup_new_branch_info_and_source_tree(&new_branch_info,
opts, &rev,
Expand Down
6 changes: 6 additions & 0 deletions builtin/hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ static int run(int argc, const char **argv, const char *prefix,
if (!argc)
goto usage;

/*
* All current "hook run" use-cases require ungrouped child output.
* If this changes, a hook run argument can be added to toggle it.
*/
opt.ungroup = 1;

/*
* Having a -- for "run" when providing <hook-args> is
* mandatory.
Expand Down
Loading