From patchwork Sat Sep 7 14:12:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_=C3=85gren?= X-Patchwork-Id: 11136493 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 0764D1398 for ; Sat, 7 Sep 2019 14:13:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D311E2178F for ; Sat, 7 Sep 2019 14:13:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sLrVdGCh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404416AbfIGON0 (ORCPT ); Sat, 7 Sep 2019 10:13:26 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46289 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388202AbfIGONZ (ORCPT ); Sat, 7 Sep 2019 10:13:25 -0400 Received: by mail-lf1-f66.google.com with SMTP id t8so7230667lfc.13 for ; Sat, 07 Sep 2019 07:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BlclNzxkxAlmmQptdiIu+G7fa5HeYegZeaLjXk1IMVw=; b=sLrVdGChuop+42Qmqea35G6rYgBV8bFh9GL/DDEJE+tzPNgP3el/1YGAKhEdB7wwsf HSZ4SPXkXsQiHfE1UmBhF5g4AtP1tZA/ijIMKWPJqshNU4jTVwfrlP1ZenvP9VdNqu7F tWwMZSkZUonbacGdwbZZvQWOK5AEukQegD+EeHxQjpslmlHKQm8XGl7jrMo/TGOKDyzD wPdxNbHrLXYTefaiwRbyFl0yxXrZ9DimBP4rqGz/FesIaQP4uz1i1fs7slwpQOQhVFhM olfWEtX67HKQzce08pRtSXV1/HWFiDwtWc1AXR6XUQ2uRR4R61/2Vbxr/TsiQaCI48mx wCuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BlclNzxkxAlmmQptdiIu+G7fa5HeYegZeaLjXk1IMVw=; b=piTHJJw96hYgtts3MQDnrkfIDD2v01Gs3AXzfMk7H4axm6DV7AOr+JuvmwOWNfztTi mnPy4mWoyK3NGxWWSySrytzpvtlmIvN97lM2flEfQaJuELgRBEaGKdNhlNMFElkS20wK UFlJwKmn6h3zBBqNE1hzuWVgouYMkBqSmjmG7uThFmFz7eT7R7iHaIX24Mf7wwYD6BZo M+em9oZRNy1cDgOebZ4WU+8JcXv3SqmUZGxsUDcebS47zds0j4+fvCM7Vu8KsFuUUCJ/ /xiX8rmPvG0XJ2XHfyJE63BIsvhM9gY9fCanZvoIvqj3Qev8PpMnPDP5B7bAtROlmdeh +EtA== X-Gm-Message-State: APjAAAVWDu6W/R/u3IfpK5obhZ0p/mjPJQzvdUqlBl9WJPFimn3HEakQ qP6yHgsr+6p2tDmt59c+Tbj/YKzf X-Google-Smtp-Source: APXvYqztAVr93mMijt8ryrx4pj9F4HIvTulhMY+l28kSalDlQnW/UN4TpkaatSYthlBD27WspW0SeQ== X-Received: by 2002:a19:428f:: with SMTP id p137mr10246789lfa.149.1567865603510; Sat, 07 Sep 2019 07:13:23 -0700 (PDT) Received: from localhost.localdomain (31-211-229-121.customers.ownit.se. [31.211.229.121]) by smtp.gmail.com with ESMTPSA id u10sm1741316lfk.34.2019.09.07.07.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2019 07:13:22 -0700 (PDT) From: =?utf-8?q?Martin_=C3=85gren?= To: git@vger.kernel.org Cc: Jeff King Subject: [PATCH 6/7] git-merge-index.txt: wrap shell listing in "----" Date: Sat, 7 Sep 2019 16:12:52 +0200 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org The example output of `git merge-index` has been enriched by a second "column" of helpful comments. When Asciidoctor renders this, the cells in that second column aren't aligned. Fix this by marking the example shell session as a code listing by wrapping it in "----". Also drop some of the horizontal space between the two columns so that we fit into 80 columns. This changes the rendering with both AsciiDoc and Asciidoctor. They now render this identically, nicely aligned, and within 80 columns. Signed-off-by: Martin Ă…gren --- Documentation/git-merge-index.txt | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/Documentation/git-merge-index.txt b/Documentation/git-merge-index.txt index 02676fb391..2ab84a91e5 100644 --- a/Documentation/git-merge-index.txt +++ b/Documentation/git-merge-index.txt @@ -54,20 +54,24 @@ original is first. But the argument order to the 3-way merge program Examples: - torvalds@ppc970:~/merge-test> git merge-index cat MM - This is MM from the original tree. # original - This is modified MM in the branch A. # merge1 - This is modified MM in the branch B. # merge2 - This is modified MM in the branch B. # current contents +---- +torvalds@ppc970:~/merge-test> git merge-index cat MM +This is MM from the original tree. # original +This is modified MM in the branch A. # merge1 +This is modified MM in the branch B. # merge2 +This is modified MM in the branch B. # current contents +---- or - torvalds@ppc970:~/merge-test> git merge-index cat AA MM - cat: : No such file or directory - This is added AA in the branch A. - This is added AA in the branch B. - This is added AA in the branch B. - fatal: merge program failed +---- +torvalds@ppc970:~/merge-test> git merge-index cat AA MM +cat: : No such file or directory +This is added AA in the branch A. +This is added AA in the branch B. +This is added AA in the branch B. +fatal: merge program failed +---- where the latter example shows how 'git merge-index' will stop trying to merge once anything has returned an error (i.e., `cat` returned an error