From patchwork Fri Aug 21 21:48:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Keller X-Patchwork-Id: 11730613 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DC4361392 for ; Fri, 21 Aug 2020 21:48:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CA4D3207CD for ; Fri, 21 Aug 2020 21:48:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726672AbgHUVsk (ORCPT ); Fri, 21 Aug 2020 17:48:40 -0400 Received: from mga12.intel.com ([192.55.52.136]:19358 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbgHUVsj (ORCPT ); Fri, 21 Aug 2020 17:48:39 -0400 IronPort-SDR: lZZ4qjzmphtItJ87AuGKDJxKvRvB8n6g+EhgHmLr7RcTvQg/k5JMUpXDs3kZWZbhltlpZaMgGr 97yID9g18nAA== X-IronPort-AV: E=McAfee;i="6000,8403,9720"; a="135171193" X-IronPort-AV: E=Sophos;i="5.76,338,1592895600"; d="scan'208";a="135171193" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 14:48:39 -0700 IronPort-SDR: B6Den7pWSJbG/uGKJCN3Pwo2Uma6TwBmHEWsAA0S3C+ihFAk5VfnbIYbnZgktaZhVIqybDn5fm 0/LiHiMZe6OA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,338,1592895600"; d="scan'208";a="498106699" Received: from jekeller-desk.amr.corp.intel.com ([10.166.241.33]) by fmsmga006.fm.intel.com with ESMTP; 21 Aug 2020 14:48:39 -0700 From: Jacob Keller To: git@vger.kernel.org, Junio C Hamano Cc: Jacob Keller Subject: [PATCH 0/2] minor refspec cleanups Date: Fri, 21 Aug 2020 14:48:18 -0700 Message-Id: <20200821214820.757222-1-jacob.e.keller@intel.com> X-Mailer: git-send-email 2.28.0.218.ge27853923b9d.dirty MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Jacob Keller While preparing some patches for implementing support for negative refspecs, I found a couple of minor nits. The first patch fixes the documentation in refspec.h to refer to the correct structures. The second patch cleans up a potential issue with refspec_item structures that weren't initialized properly. While nothing breaks today, future extensions to refspec_item would break if the structure wasn't properly initialized to zero. Jacob Keller (2): refspec: fix documentation referring to refspec_item refspec: make sure stack refspec_item variables are zeroed builtin/remote.c | 1 + refspec.h | 27 ++++++++++++++------------- transport.c | 1 + 3 files changed, 16 insertions(+), 13 deletions(-) base-commit: 878e727637ec5815ccb3301eb994a54df95b21b8