From patchwork Wed Nov 11 06:58:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 11896535 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04C2FC388F9 for ; Wed, 11 Nov 2020 07:05:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F133C206F1 for ; Wed, 11 Nov 2020 07:05:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="cJ9PhSrt"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="aJ1lIlGq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725925AbgKKHFW (ORCPT ); Wed, 11 Nov 2020 02:05:22 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42111 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbgKKHFV (ORCPT ); Wed, 11 Nov 2020 02:05:21 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E636A5C03F9; Wed, 11 Nov 2020 02:05:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 11 Nov 2020 02:05:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=ZQW5xT7PH5RsR4oSUL5OiXg1PDC ec3RWrdOxmebE4vY=; b=cJ9PhSrtVgKunj56PKSbq6l7A9LYXfoAhLT8Ve/RKaK utgkLV9utw+cVBMechGKqQPpFIAY9lPyVyx2OJhDLK7LpoRXbwPqFeM0+5PSOSgi WpfDEul0jGg2VY88btkbmmpCP4w6jEY5JyWe7Yk8lP0JMzgb/7BrfNJb/Ytpmv36 LY4urWi90GvKLV34IoEAWJsXKOzQ9Gv39Y+BEw9wnIfmrT9aW2aIpiYfdG51NNV6 CSvOSZZIk9xQJyTurffzKQcXr74OGNs/Aqb6B3KRGQ112NBuCGwKxft2uaA6C/Ci mikZFksA+pBmVWWOcTICT30mMle7P+X3jNqtwlrwwUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ZQW5xT 7PH5RsR4oSUL5OiXg1PDCec3RWrdOxmebE4vY=; b=aJ1lIlGqWWcac9oS0i7d/J EhCpe0AgNDgWKJHjaNII8UdfBD7b+7HiuLL8JA8tok+ulyRSd4x2t3W5v+XvUw4N Ywtq0lGjEPP327DRTNyXEKFsfInCoW/FtPmpsusyopj66x9t9+DIiGyNuyOstjTJ 2M/FeeybeVAEo07wVMMoxEqgXXBPkXFDYWW4afKo1QvenIAVb7yHzeUaKt5unuY6 M1f9Ki+40JMy85MlZW3jluIUz/Dr+T/+2dGHBhYj2oWyKCUppdlidWR9aUSMMCS3 N4p4lpUnpfotlmaRtgmT8DewaCNC4xvTnDA1nIccfei8b6hqtyTcuUI/08R1RBSg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudduledgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtvdenucfhrhhomheprfgrthhrihgtkhcuufhtvghinhhhrghrughtuceophhssehp khhsrdhimheqnecuggftrfgrthhtvghrnhepheeghfdtfeeuffehkefgffduleffjedthf dvjeektdfhhedvlefgtefgvdettdfhnecukfhppeekledrudegrdeivddrkeeknecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhssehpkhhsrd himh X-ME-Proxy: Received: from vm-mail.pks.im (dynamic-089-014-062-088.89.14.pool.telefonica.de [89.14.62.88]) by mail.messagingengine.com (Postfix) with ESMTPA id E49063063080; Wed, 11 Nov 2020 02:05:18 -0500 (EST) Received: from localhost (ncase [10.192.0.11]) by vm-mail.pks.im (OpenSMTPD) with ESMTPSA id fe96259c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 11 Nov 2020 06:58:34 +0000 (UTC) Date: Wed, 11 Nov 2020 07:58:34 +0100 From: Patrick Steinhardt To: git@vger.kernel.org Cc: peff@peff.net, gitster@pobox.com Subject: [PATCH v3 0/4] update-ref: allow creation of multiple transactions Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hi, this is the third version of this patch series implementing support for creation of multiple reference transactions in a single git-update-ref process. There's three changes compared to v2: - Commit subjects have been changed to start with a lowercase. - The commit message in patch 4 has been improved. - t1400 has been changed to not delete HEAD anymore. Patrick Patrick Steinhardt (4): t1400: avoid touching refs on filesystem update-ref: allow creation of multiple transactions p1400: use `git-update-ref --stdin` to test multiple transactions update-ref: disallow "start" for ongoing transactions Documentation/git-update-ref.txt | 3 +- builtin/update-ref.c | 15 +++- t/perf/p1400-update-ref.sh | 20 ++--- t/t1400-update-ref.sh | 133 +++++++++++++++++++++++-------- 4 files changed, 123 insertions(+), 48 deletions(-)