From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id A4C031F46C for ; Fri, 24 Jan 2020 00:21:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729402AbgAXAVL (ORCPT ); Thu, 23 Jan 2020 19:21:11 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45017 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729017AbgAXAVL (ORCPT ); Thu, 23 Jan 2020 19:21:11 -0500 Received: by mail-wr1-f65.google.com with SMTP id q10so5328181wrm.11 for ; Thu, 23 Jan 2020 16:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:in-reply-to:references:from:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=saMlTNkKEqcBRL5aUOy1TDYQZGXm7gjU9li+Opxvdcs=; b=ZsOmGnYLhw54PL2kwNVvhW7UWETFMjS64bMk9QrFrUqIqfbm4ied0NzW/u7SXtE+uO wNLoVsvSn7kv+frRBeEfrwAMczHmdOlCcF77rDtF9Xg0Q1cYgvk6DSOMBAyJLQbXTn6a 7HA+8xyx6VXibggjf2FNuKLySWq88upcs15Y5cj4MvNP6PLxHZMa0tSxLhUnbXAtHgR4 LbWY5YDFVb6X5WpKtyXLHUh+PbPPkS5gu1hB3B5jeH6yHPSH9PIo7DeM8NCn3VgMsldY wbFBrAi8Cwr/zisNM3sdJvS5OPRr4zoCKb7NG/S6psxphJoNxiL8WWxzOwcXXeS61sA8 dPug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=saMlTNkKEqcBRL5aUOy1TDYQZGXm7gjU9li+Opxvdcs=; b=l2bmZnb6HYAD3NtQArv6Le2FhyjSkRuKIz5tBY3GP0cnGx5Zu8Q3l1wLvNmpyKSOU6 lHvgNWQK6rmjWaBw7tHGeVqmo2yIC+6uZAY8XdaOkddNs0SO4Pz0wUEUGfJZiXvssBdw zOAvZr3zqTVRWp9WR8FCIYzpdMa7FJ/qqVySi0kQAbDJNh4EdP1eVKiEJDpHtZwWPpL1 RH7GX9ZHhQtMb+R0UcssEVgXH5BwQaFfOVu/QTuAk7Dq2ZPNrkipuDiP7ySZvLpLInLY M/L10a+UCgEXkVi6N2LRPCLRoqKzxibiK1s51+3khRQZxucVl7kfuD9A5KCEzRwAFjy9 9Kpw== X-Gm-Message-State: APjAAAXvfYBzh60bPlRkcNiClzCXr+i4SCWF+w2ADzJslyrY1U4NnMBz tXqGZiw+roGmTa5nWUbXDnsr9nJZ X-Google-Smtp-Source: APXvYqzxupyGKEc+reyOBQ6z6VR0oXqSZNAhQxd+lwDA19MU1O5nR10Zfc2or8ssUQv15p7PFE2yIw== X-Received: by 2002:a05:6000:cf:: with SMTP id q15mr675326wrx.393.1579825269428; Thu, 23 Jan 2020 16:21:09 -0800 (PST) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id s10sm5051989wrw.12.2020.01.23.16.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 16:21:08 -0800 (PST) Message-Id: In-Reply-To: References: From: "Matthew Rogers via GitGitGadget" Date: Fri, 24 Jan 2020 00:21:01 +0000 Subject: [PATCH v4 1/6] config: fix typo in variable name Fcc: Sent Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 To: git@vger.kernel.org Cc: Matthew Rogers , Matthew Rogers Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Matthew Rogers In git config use of the end_null variable to determine if we should be null terminating our output. While it is correct to say a string is "null terminated" the character is actually the "nul" character, so this malapropism is being fixed. Signed-off-by: Matthew Rogers --- builtin/config.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/builtin/config.c b/builtin/config.c index 98d65bc0ad..52a904cfb1 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -29,7 +29,7 @@ static int use_worktree_config; static struct git_config_source given_config_source; static int actions, type; static char *default_value; -static int end_null; +static int end_nul; static int respect_includes_opt = -1; static struct config_options config_options; static int show_origin; @@ -151,7 +151,7 @@ static struct option builtin_config_options[] = { OPT_CALLBACK_VALUE(0, "path", &type, N_("value is a path (file or directory name)"), TYPE_PATH), OPT_CALLBACK_VALUE(0, "expiry-date", &type, N_("value is an expiry date"), TYPE_EXPIRY_DATE), OPT_GROUP(N_("Other")), - OPT_BOOL('z', "null", &end_null, N_("terminate values with NUL byte")), + OPT_BOOL('z', "null", &end_nul, N_("terminate values with NUL byte")), OPT_BOOL(0, "name-only", &omit_values, N_("show variable names only")), OPT_BOOL(0, "includes", &respect_includes_opt, N_("respect include directives on lookup")), OPT_BOOL(0, "show-origin", &show_origin, N_("show origin of config (file, standard input, blob, command line)")), @@ -178,11 +178,11 @@ static void check_argc(int argc, int min, int max) static void show_config_origin(struct strbuf *buf) { - const char term = end_null ? '\0' : '\t'; + const char term = end_nul ? '\0' : '\t'; strbuf_addstr(buf, current_config_origin_type()); strbuf_addch(buf, ':'); - if (end_null) + if (end_nul) strbuf_addstr(buf, current_config_name()); else quote_c_style(current_config_name(), buf, NULL, 0); @@ -678,7 +678,7 @@ int cmd_config(int argc, const char **argv, const char *prefix) config_options.git_dir = get_git_dir(); } - if (end_null) { + if (end_nul) { term = '\0'; delim = '\n'; key_delim = '\n'; -- gitgitgadget