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

[PATCH 2/3] Prepare for grouped common command list generation

From
pclouds@gmail.com <pclouds@gmail.com>
Date
Dec 1, 2006, 15:08 UTC
Message-ID
<11649857203869-git-send-email-pclouds@gmail.com>
In-Reply-To
<1164985711791-git-send-email-pclouds@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 generate-cmdlist.sh |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index 5450918..b45495d 100755
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
@@ -9,7 +9,7 @@ struct cmdname_help
 
 struct cmdname_help common_cmds[] = {"
 
-sort <<\EOF |
+cat <<\EOF |
 add
 apply
 archive
@@ -41,6 +41,11 @@ verify-tag
 EOF
 while read cmd
 do
+     [ -z "$cmd" ] && continue
+     if echo $cmd|grep -q '^G:'; then
+       echo '  {"'$(echo -n $cmd|sed 's/^G://')'",""},'
+       continue
+     fi
      sed -n '
      /NAME/,/git-'"$cmd"'/H
      ${
-- 
1.4.4.rc1.g9124
Next: pclouds@gmail.com
Message 1 of 2 in “Prepare for grouped common command list generation”
  1. 2/3 Prepare for grouped common command list generationpclouds@gmail.com, Dec 1, 2006
  2. 3/3 Group common commands into for groups for easier navigationpclouds@gmail.com, Dec 1, 2006

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.