From patchwork Mon Sep 5 08:26:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= X-Patchwork-Id: 12965795 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24A5AC6FA86 for ; Mon, 5 Sep 2022 08:27:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237670AbiIEI1l (ORCPT ); Mon, 5 Sep 2022 04:27:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237622AbiIEI1S (ORCPT ); Mon, 5 Sep 2022 04:27:18 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2362712775 for ; Mon, 5 Sep 2022 01:27:07 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id b16so10278231wru.7 for ; Mon, 05 Sep 2022 01:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=otZe8EhGhPEh/fzuhcfw6OHOoCIKrQBIiYv1nc4qb7k=; b=WGylKSQ1LGwbJshnAxrOtVjxpI1ikA9v60Pg860YmKMx5c6pqodwKSA47AcLODwtBC BiBLV8dL5OQQNkF6VMLqogYFTU4CMNxyDvo7WqVo5CysUg7aP0Ypgp3ldqZdblIVy4IO tZrRP37gHFM/Eb9UGCHSafqLfaDnc8xcpkSb0voAudKaipN/T5Sz2WTY1hOP4OGHiJww dx2naIyYCLuipRDlcci8YRKu3fxURU+eQTQJDr/Wjt6rDAqdoeKh+vs1dKwLxazU42sy ZZ8eYYW8B4Gn9FednlPTiGwKbydi9U6UwManYXx8MS14uRFRDXdUc5RczvMi3T6OK/PC lUOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=otZe8EhGhPEh/fzuhcfw6OHOoCIKrQBIiYv1nc4qb7k=; b=lVIptJG6Barlv6tZkOnj0qw2/N3PflIKE939SaCazyLp/1oiKRD3mQpOcvFyvnSAZn AyUkIE/GOYt4/FmHgTPrr0t+dRKShHfhS1aEkBLVG/TLYjR19jAtO4D6EFDCZsdOe3HN /onbTggEiTcXvQqM3dz3FXqQg80gvcnU5mAU7+zYEczq6eGcuvdmQz4aM7WktNk3dpq+ 3dfgZHE7/WPUZ1UpU2Ij35Yi/x/mKxYQ/MPgG5dXec13JjwTqhRr/eWUQKJNRz2bqyhg vn3reYzB1cLIDAfo9n/JH6ZmbpDLRnrTPs1uzBxgwp/HVDNYURtIR5ewRsotLXIagvX3 qHEQ== X-Gm-Message-State: ACgBeo1VZyLH6nvoxD/4iLS2RQFo2esXh6VRAh1ij+cAbJAXCjI9PUQt nro5MhwUfCk4GY6C7uvE26p62NYb+BvsPA== X-Google-Smtp-Source: AA6agR5f7PTSGRNRCEn0p8qvrV7oiFHgGvNVNgJhmMxf1On7MQM6cEtjKhb3T/FUYFSGFFS8+30vrg== X-Received: by 2002:a5d:4882:0:b0:225:3148:9f85 with SMTP id g2-20020a5d4882000000b0022531489f85mr23277592wrq.224.1662366424957; Mon, 05 Sep 2022 01:27:04 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003a2f6367049sm10564258wmq.48.2022.09.05.01.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 01:27:04 -0700 (PDT) From: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= To: git@vger.kernel.org Cc: Junio C Hamano , Victoria Dye , Taylor Blau , Emily Shaffer , Jonathan Nieder , John Cai , =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= Subject: [PATCH 14/34] stash doc SYNOPSIS & -h: correct padding around "[]()" Date: Mon, 5 Sep 2022 10:26:25 +0200 Message-Id: X-Mailer: git-send-email 2.37.3.1425.g73df845bcb2 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org The whitespace padding of alternatives should be of the form "[-f | --force]" not "[-f|--force]". Likewise we should not have padding before the first option, so "(--all | ...)" is correct, not "( --all | ... )". Signed-off-by: Ævar Arnfjörð Bjarmason --- Documentation/git-stash.txt | 12 ++++++------ builtin/stash.c | 28 ++++++++++++++-------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt index 0df21321e50..379bea645db 100644 --- a/Documentation/git-stash.txt +++ b/Documentation/git-stash.txt @@ -9,17 +9,17 @@ SYNOPSIS -------- [verse] 'git stash' list [] -'git stash' show [-u|--include-untracked|--only-untracked] [] [] -'git stash' drop [-q|--quiet] [] -'git stash' ( pop | apply ) [--index] [-q|--quiet] [] +'git stash' show [-u | --include-untracked | --only-untracked] [] [] +'git stash' drop [-q | --quiet] [] +'git stash' (pop | apply) [--index] [-q | --quiet] [] 'git stash' branch [] -'git stash' [push [-p|--patch] [-S|--staged] [-k|--[no-]keep-index] [-q|--quiet] - [-u|--include-untracked] [-a|--all] [(-m|--message) ] +'git stash' [push [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet] + [-u | --include-untracked] [-a | --all] [(-m | --message) ] [--pathspec-from-file= [--pathspec-file-nul]] [--] [...]] 'git stash' clear 'git stash' create [] -'git stash' store [(-m|--message) ] [-q|--quiet] +'git stash' store [(-m | --message) ] [-q | --quiet] DESCRIPTION ----------- diff --git a/builtin/stash.c b/builtin/stash.c index 0fc359e9d39..7d82ead6760 100644 --- a/builtin/stash.c +++ b/builtin/stash.c @@ -24,16 +24,16 @@ static const char * const git_stash_usage[] = { N_("git stash list []"), N_("git stash show [] []"), - N_("git stash drop [-q|--quiet] []"), - N_("git stash ( pop | apply ) [--index] [-q|--quiet] []"), + N_("git stash drop [-q | --quiet] []"), + N_("git stash (pop | apply) [--index] [-q | --quiet] []"), N_("git stash branch []"), "git stash clear", - N_("git stash [push [-p|--patch] [-S|--staged] [-k|--[no-]keep-index] [-q|--quiet]\n" - " [-u|--include-untracked] [-a|--all] [(-m|--message) ]\n" + N_("git stash [push [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" + " [-u | --include-untracked] [-a | --all] [(-m | --message) ]\n" " [--pathspec-from-file= [--pathspec-file-nul]]\n" " [--] [...]]"), - N_("git stash save [-p|--patch] [-S|--staged] [-k|--[no-]keep-index] [-q|--quiet]\n" - " [-u|--include-untracked] [-a|--all] []"), + N_("git stash save [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" + " [-u | --include-untracked] [-a | --all] []"), NULL }; @@ -48,17 +48,17 @@ static const char * const git_stash_show_usage[] = { }; static const char * const git_stash_drop_usage[] = { - N_("git stash drop [-q|--quiet] []"), + N_("git stash drop [-q | --quiet] []"), NULL }; static const char * const git_stash_pop_usage[] = { - N_("git stash pop [--index] [-q|--quiet] []"), + N_("git stash pop [--index] [-q | --quiet] []"), NULL }; static const char * const git_stash_apply_usage[] = { - N_("git stash apply [--index] [-q|--quiet] []"), + N_("git stash apply [--index] [-q | --quiet] []"), NULL }; @@ -73,20 +73,20 @@ static const char * const git_stash_clear_usage[] = { }; static const char * const git_stash_store_usage[] = { - N_("git stash store [(-m|--message) ] [-q|--quiet] "), + N_("git stash store [(-m | --message) ] [-q | --quiet] "), NULL }; static const char * const git_stash_push_usage[] = { - N_("git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]\n" - " [-u|--include-untracked] [-a|--all] [(-m|--message) ]\n" + N_("git stash [push [-p | --patch] [-k | --[no-]keep-index] [-q | --quiet]\n" + " [-u | --include-untracked] [-a | --all] [(-m | --message) ]\n" " [--] [...]]"), NULL }; static const char * const git_stash_save_usage[] = { - N_("git stash save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]\n" - " [-u|--include-untracked] [-a|--all] []"), + N_("git stash save [-p | --patch] [-k | --[no-]keep-index] [-q | --quiet]\n" + " [-u | --include-untracked] [-a | --all] []"), NULL };