From patchwork Sun Aug 11 15:20:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jean-No=C3=ABl_Avila?= X-Patchwork-Id: 13759769 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64D5714A4ED for ; Sun, 11 Aug 2024 15:20:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723389621; cv=none; b=cRfLn6EgnSAPyq7najhfv8MzDX7IDlErXiHMTQAbNcbGxTP8PA0KA4t7pINNi+FJTrm9r2FgqWrYODrWOQsVrIGInImKju56Q/uXAbsseJi6/VYP9kJcOde+xfzmbdm9aFJE8nEbDxgt9Fsj+fn6G31vC4z+4T/2HgVf73HhoFo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723389621; c=relaxed/simple; bh=hSMXBBH0TBk/lNUe2k41G/KGXz8Qh0+A4PwqQE20FFI=; h=Message-Id:In-Reply-To:References:From:Date:Subject:MIME-Version: Content-Type:To:Cc; b=NWf0N2mABFFVcqAjqRK8p/WNmHLWVs4jNVPkiSIvlkEEaLfgvBTE6J4P/Z1jq1l8XzStbf/3lq9IDeRQzNwO+mfmhMmHLdNmIwrYAvEH+6X98GXGqim4mkzkPLZDvoYflBXMwUQoSCL7BNL6BPx52gdnGYkiHSs5f8t95OCq4hk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SS3tQrRl; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SS3tQrRl" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-428fb103724so25657585e9.1 for ; Sun, 11 Aug 2024 08:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723389617; x=1723994417; darn=vger.kernel.org; h=cc:to:fcc:content-transfer-encoding:mime-version:subject:date:from :references:in-reply-to:message-id:from:to:cc:subject:date :message-id:reply-to; bh=zH8dZcHL43vGEGECx6mvn9kc0gCRdmf0wxxm7RDUq30=; b=SS3tQrRlXDClHrz+kJY448rf4YdXPCEtuggx+H/YturOYXqTxcDSjuBUd/gm/5hn7+ kEe7b26vC06xiaIdH9WF97Af++aiYzuMFErOCKq2tyeqluQ3H3Xy+c+keq4PsNhzlFaH 0y500BSyqtPQJXRGVXynxtPd/cH4b95Q9vnfLzqUAumqvCpCz+C792SpyByJLJVoNMgZ y4CtOIGWmLzHoh3o3LEJ1esCt+0WQyGpzMJkggU418i36ehiF+tioER5qlYy8W0Odpjp Glu40epsEy0wHjkcS1cCoLVyYThx3j21yYCVdAn+jGW/oPh58bCUa3gJdcmGSJKKio3S J7bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723389617; x=1723994417; h=cc:to:fcc:content-transfer-encoding:mime-version:subject:date:from :references:in-reply-to:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zH8dZcHL43vGEGECx6mvn9kc0gCRdmf0wxxm7RDUq30=; b=MWsQgP/PFx2Bn5wVEdVJSA4QAAVNPvGDf2At4cejjv9WRlQ3UXAtFDRcR9d5dmSMnx zVVyZQ3TGPek0NBvom+GDs4Hwiz7qGQSmsHO+jhtTdjv/qJBmwjhqpw3cj8YDAp2sdSR P26HoGED0kV6Ft1ndSuJq3Dvr9l8vNVHRiDY62VvPBS9RYUqjMJP6TWgGDQMzmtq/VZR 1KxKHpwUmCkCxjw+I54uiOPB3DiXckFJXHcqWifLMIadFQlob0dSULAbQXWt1pRzymTw Z1Zk/liEy8o8k1mzfrMfARckf2GyoPS8xm/wbQrzB04Wv4EV4MewY3Bstllij+m7+6bH XAFg== X-Gm-Message-State: AOJu0YzOUoPho2lJ0KpPBTM6ZJzeN76YPZYINOuVofxXxHISIpDu3TSx uw7o65zNBRCZBNA3R1kh5nF9bvB+iGfPBKCmNyKil1xXR7dIdPKRagsUTg== X-Google-Smtp-Source: AGHT+IG3AFwDSTyr/tyxj6RV3NUOvNESnifSKMaR2ilsKALt8fZP0r7QUomPrh6CW4eDcV4wbxWIPA== X-Received: by 2002:a05:600c:314c:b0:426:5fa7:b495 with SMTP id 5b1f17b1804b1-429c3b11b53mr53169685e9.15.1723389616777; Sun, 11 Aug 2024 08:20:16 -0700 (PDT) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4290c738947sm151730505e9.10.2024.08.11.08.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 08:20:16 -0700 (PDT) Message-Id: <02406b9189455cd376c1a9dd065760759b7a02e1.1723389612.git.gitgitgadget@gmail.com> In-Reply-To: References: Date: Sun, 11 Aug 2024 15:20:12 +0000 Subject: [PATCH v3 3/3] doc: apply synopsis simplification on git-clone and git-init Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Fcc: Sent To: git@vger.kernel.org Cc: =?utf-8?q?Jean-No=C3=ABl?= Avila , =?utf-8?q?Jean-No?= =?utf-8?q?=C3=ABl_Avila?= From: =?utf-8?q?Jean-No=C3=ABl_Avila?= From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= With the new synopsis formatting backend, no special asciidoc markup is needed. Signed-off-by: Jean-Noël Avila --- Documentation/git-clone.txt | 76 ++++++++++++++++++------------------- Documentation/git-init.txt | 33 +++++++--------- Documentation/urls.txt | 26 ++++++------- 3 files changed, 65 insertions(+), 70 deletions(-) diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 8e925db7e9c..f0d508ebf51 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -8,16 +8,16 @@ git-clone - Clone a repository into a new directory SYNOPSIS -------- -[verse] -`git clone` [++--template=++____] - [`-l`] [`-s`] [`--no-hardlinks`] [`-q`] [`-n`] [`--bare`] [`--mirror`] - [`-o` __] [`-b` __] [`-u` __] [`--reference` __] - [`--dissociate`] [`--separate-git-dir` __] - [`--depth` __] [`--`[`no-`]{empty}`single-branch`] [`--no-tags`] - [++--recurse-submodules++[++=++____]] [++--++[++no-++]{empty}++shallow-submodules++] - [`--`[`no-`]{empty}`remote-submodules`] [`--jobs` __] [`--sparse`] [`--`[`no-`]{empty}`reject-shallow`] - [++--filter=++____] [`--also-filter-submodules`]] [`--`] __ - [__] +[synopsis] +git clone [--template=] + [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] + [-o ] [-b ] [-u ] [--reference ] + [--dissociate] [--separate-git-dir ] + [--depth ] [--[no-]single-branch] [--no-tags] + [--recurse-submodules[=]] [--[no-]shallow-submodules] + [--[no-]remote-submodules] [--jobs ] [--sparse] [--[no-]reject-shallow] + [--filter=] [--also-filter-submodules]] [--] + [] DESCRIPTION ----------- @@ -64,8 +64,8 @@ prevent the unintentional copying of files by dereferencing the symbolic links. + *NOTE*: this operation can race with concurrent modification to the -source repository, similar to running `cp -r src dst` while modifying -`src`. +source repository, similar to running s:["cp -r "] while modifying +__. `--no-hardlinks`:: Force the cloning process from a repository on a local @@ -101,7 +101,7 @@ If you want to break the dependency of a repository cloned with `--shared` on its source repository, you can simply run `git repack -a` to copy all objects from the source repository into a pack in the cloned repository. -`--reference`[`-if-able`] __:: +s:["--reference[-if-able] "]:: If the reference __ is on the local machine, automatically setup `.git/objects/info/alternates` to obtain objects from the reference __. Using @@ -142,17 +142,17 @@ objects from the source repository into a pack in the cloned repository. is specified. This flag forces progress status even if the standard error stream is not directed to a terminal. -++--server-option=++__