git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH/RFC 6/6] adjust the command lists (by category) to the new doc link macros

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Sep 12, 2008, 10:55 UTC
Message-ID
<1221216926-20435-8-git-send-email-git@drmicha.warpmail.net>
In-Reply-To
<1221216926-20435-7-git-send-email-git@drmicha.warpmail.net>

This patch introduces a new attribute "dashed" to be used in the master command list. Server type commands are marked as "dashed", and "cmd-list.perl" is taught to use this attributes when writing out links in the command lists by category:

git-cvsserver git-daemon git-receive-pack git-shell git-upload-archive git-upload-pack

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 Documentation/cmd-list.perl |    7 ++++++-
 command-list.txt            |   12 ++++++------
 2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/Documentation/cmd-list.perl b/Documentation/cmd-list.perl
index 04f9977..dd24b29 100755
--- a/Documentation/cmd-list.perl
+++ b/Documentation/cmd-list.perl
@@ -27,7 +27,12 @@ sub format_one {
 		die "No description found in $name.txt";
 	}
 	if (my ($verify_name, $text) = ($description =~ /^($name) - (.*)/)) {
-		print $out "linkgit:$name\[1\]::\n\t";
+		if ($attr =~ / dashed /) {
+			print $out "linkgitasis:$name\[1\]::\n\t";
+		} else {
+			$name =~ /^git-(.*)$/;
+			print $out "link-git:$1\[1\]::\n\t";
+		}
 		if ($attr =~ / deprecated /) {
 			print $out "(deprecated) ";
 		}
diff --git a/command-list.txt b/command-list.txt
index 3583a33..02bc251 100644
--- a/command-list.txt
+++ b/command-list.txt
@@ -26,8 +26,8 @@ git-config                              ancillarymanipulators
 git-count-objects                       ancillaryinterrogators
 git-cvsexportcommit                     foreignscminterface
 git-cvsimport                           foreignscminterface
-git-cvsserver                           foreignscminterface
-git-daemon                              synchingrepositories
+git-cvsserver                           foreignscminterface dashed
+git-daemon                              synchingrepositories dashed
 git-describe                            mainporcelain
 git-diff                                mainporcelain common
 git-diff-files                          plumbinginterrogators
@@ -86,7 +86,7 @@ git-push                                mainporcelain common
 git-quiltimport                         foreignscminterface
 git-read-tree                           plumbingmanipulators
 git-rebase                              mainporcelain common
-git-receive-pack                        synchelpers
+git-receive-pack                        synchelpers dashed
 git-reflog                              ancillarymanipulators
 git-relink                              ancillarymanipulators
 git-remote                              ancillarymanipulators
@@ -101,7 +101,7 @@ git-rev-parse                           ancillaryinterrogators
 git-rm                                  mainporcelain common
 git-send-email                          foreignscminterface
 git-send-pack                           synchingrepositories
-git-shell                               synchelpers
+git-shell                               synchelpers dashed
 git-shortlog                            mainporcelain
 git-show                                mainporcelain common
 git-show-branch                         ancillaryinterrogators
@@ -121,8 +121,8 @@ git-unpack-objects                      plumbingmanipulators
 git-update-index                        plumbingmanipulators
 git-update-ref                          plumbingmanipulators
 git-update-server-info                  synchingrepositories
-git-upload-archive                      synchelpers
-git-upload-pack                         synchelpers
+git-upload-archive                      synchelpers dashed
+git-upload-pack                         synchelpers dashed
 git-var                                 plumbinginterrogators
 git-verify-pack                         plumbinginterrogators
 git-verify-tag                          ancillaryinterrogators
-- 
1.6.0.1.308.gede4c
Previous: Michael J Gruber
Message 8 of 8 in “Documentation: use dashless links”
  1. 0/6 Documentation: use dashless linksMichael J Gruber, Sep 12, 2008
  2. 1/6 modified asciidoc macros for dashless git docMichael J Gruber, Sep 12, 2008
  3. 2/6 convert doc links for server type programmes from linkgit to gitlinkMichael J Gruber, Sep 12, 2008
  4. 2/6 convert doc links for server type programmesMichael J Gruber, Sep 12, 2008
  5. 3/6 convert doc links for non-dashed git commandsMichael J Gruber, Sep 12, 2008
  6. 4/6 convert doc links for other pagesMichael J Gruber, Sep 12, 2008
  7. Michael J GruberSep 12, 2008
  8. 6/6 adjust the command lists (by category) to the new doc link macrosMichael J Gruber, Sep 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.