diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-06-25 14:07:36 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-25 14:07:36 -0700 |
| commit | 4c9a5d772944ccf01dcc8604c90cbc6780317849 (patch) | |
| tree | 05d9709caace2f474a040d3f09f19df49a8ebafa /usage.c | |
| parent | a5cc6a2bc526f5ffb427f8d8bb987af6e591c4e4 (diff) | |
| parent | 1b5074e614d9b32bd760d2583e7435685ca4faab (diff) | |
| download | git-4c9a5d772944ccf01dcc8604c90cbc6780317849.tar.gz | |
Merge branch 'ps/maintenance-ref-lock'
"git maintenance" lacked the care "git gc" had to avoid holding
onto the repository lock for too long during packing refs, which
has been remedied.
* ps/maintenance-ref-lock:
builtin/maintenance: fix locking race when handling "gc" task
builtin/gc: avoid global state in `gc_before_repack()`
usage: allow dying without writing an error message
builtin/maintenance: fix locking race with refs and reflogs tasks
builtin/maintenance: split into foreground and background tasks
builtin/maintenance: fix typedef for function pointers
builtin/maintenance: extract function to run tasks
builtin/maintenance: stop modifying global array of tasks
builtin/maintenance: mark "--task=" and "--schedule=" as incompatible
builtin/maintenance: centralize configuration of explicit tasks
builtin/gc: drop redundant local variable
builtin/gc: use designated field initializers for maintenance tasks
Diffstat (limited to 'usage.c')
| -rw-r--r-- | usage.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -67,6 +67,8 @@ static NORETURN void usage_builtin(const char *err, va_list params) static void die_message_builtin(const char *err, va_list params) { + if (!err) + return; trace2_cmd_error_va(err, params); vreportf(_("fatal: "), err, params); } |
