From patchwork Wed Apr 17 06:16:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 13632888 Received: from wfhigh6-smtp.messagingengine.com (wfhigh6-smtp.messagingengine.com [64.147.123.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA8EF53387 for ; Wed, 17 Apr 2024 06:16:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713334597; cv=none; b=bBe5XPTUW7tRWjHCmtuTdVUXMjMfCfmAPHE0RMwiQ+OTypTChktfdZ4DH/3SaTEVBGvv30tFm/8nvTiZC77mpE1tB1v863lYr66ERfIY/AGfKBJG27CEUw9R1jF3NHIhw0091VIvDPOjhpB/NEqi//OKEO+xS4hkfOucxJ06cDQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713334597; c=relaxed/simple; bh=8qbRhm/YgHegivVhWvxm5q49nv5h9eAPrcoJ5eClUig=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=cYmypBna47MX848DChHunoz63e8EQkL5I78nYaQoSkUO8D9HyixJY+2qkvX94sU66x+Co7BLPtNZq+CEaYXW4ModQfKdAqSE9ltup3W1XEKHU0kwVpdxpRJ5U68oeMGECdDWtUWJOiTy0FYvhJYHD85sdTTn3GTcWhwIHij0sI0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b=S9DE5ifQ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=MNXpbvTL; arc=none smtp.client-ip=64.147.123.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="S9DE5ifQ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="MNXpbvTL" Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.west.internal (Postfix) with ESMTP id 80EAC18000F4; Wed, 17 Apr 2024 02:16:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 17 Apr 2024 02:16:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1713334592; x=1713420992; bh=7htdZ8zlljkDQQ8Y4v+OjMhyzOwWbi6b Xoeb6CNxNVM=; b=S9DE5ifQZQMEfJg4Uauc0j5HlJEBMSUoW15wCvkGtlvBCCBD JEtUJWPUiXcD6Ro7fKUBufnlnnfx/Db9ta0IFsnQvVnJMWF+m7zLPzblcH9KFNQo QZqljurZi8PiLSPZJM5wSJOkLV/7dqZFki4GNh5DyOr4LNR6J4KLmpxpGl+yPHWZ Rvc2gF559VjxkMsJPZWtwqqaX2swBPHnA9wOKW5nlS8QglDxYsuAw/cKpCszySiA Hq+ujis3nUWp7zHmpAVRIcs9Wx5uORIA4M+pSvV6Lia3WYqSTjlWA7QMZZxI+1lB fPzOek/I3PiPKCyEn4LFGJ1SXYr9OXMLtt6AIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1713334592; x=1713420992; bh=7htdZ8zlljkDQQ8Y4v+OjMhyzOwWbi6bXoe b6CNxNVM=; b=MNXpbvTLK3f/dWYsM2sdXhCb3NnsaaQij7mo9My1Dio/BiI43NR 5yZTfEYSqI7t6F1w9f4hSpd0RsnD4QeR0cgf06QLBrk3csExNIRbTxIqGjudEmzy OIN5pEU8qFY9UZYQfp7PyXQFdxqn5Ombh/Txju3PZR8/iy8gmOTJx+u8/JXhr/JV xemr/2Mz6cg+XI/Q0ccBD5ugurDV558PU41zre8SOHevqeku2TgUlsKYqcmAuLe9 2cuSpaM0no/lGgmCNZpqzX8SWFtVkdWiNMiPggPvmPThFfxUw8Wb3R0E9gSnx2Gb PsMGL+U8N7yoaSjyctGSsHouWbXVRapEIhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejjedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugesghdtreertddtvdenucfhrhhomheprfgrthhrihgt khcuufhtvghinhhhrghrughtuceophhssehpkhhsrdhimheqnecuggftrfgrthhtvghrnh epuefguedtueeiheetleevgedujeekjeehleejjefhhffghfevgfekueekjedtieejnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhssehpkh hsrdhimh X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Apr 2024 02:16:31 -0400 (EDT) Received: by localhost (OpenSMTPD) with ESMTPSA id 40764339 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 17 Apr 2024 06:16:04 +0000 (UTC) Date: Wed, 17 Apr 2024 08:16:26 +0200 From: Patrick Steinhardt To: git@vger.kernel.org Cc: Derrick Stolee , Junio C Hamano Subject: [PATCH 0/2] builtin/receive-pack: convert to use git-maintenance(1) Message-ID: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Hi, this small patch series adapts git-receive-pack(1) to spawn `git maintenance run --auto` instead of `git gc --auto` like all the other parts of our codebase do nowadays. This removes the last internal user of `git gc --auto`. Patrick Patrick Steinhardt (2): run-command: introduce function to prepare auto-maintenance process builtin/receive-pack: convert to use git-maintenance(1) Documentation/config/receive.txt | 2 +- builtin/receive-pack.c | 21 ++++++++++----------- run-command.c | 19 +++++++++++++------ run-command.h | 7 +++++++ 4 files changed, 31 insertions(+), 18 deletions(-)