# [PATCH 3/3] Group common commands into for groups for easier navigation

2 messages from 2006-12-01 to 2006-12-01. Participants: pclouds@gmail.com.
Thread: https://gitlist.dev/t/43584

## pclouds@gmail.com, 2006-12-01 15:08

Subject: [PATCH 2/3] Prepare for grouped common command list generation
Message-ID: <11649857203869-git-send-email-pclouds@gmail.com>
URL: https://gitlist.dev/e/11649857203869-git-send-email-pclouds%40gmail.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

```

## pclouds@gmail.com, 2006-12-01 15:08

Subject: [PATCH 3/3] Group common commands into for groups for easier navigation
Message-ID: <11649857351377-git-send-email-pclouds@gmail.com>
URL: https://gitlist.dev/e/11649857351377-git-send-email-pclouds%40gmail.com
In-Reply-To: <11649857203869-git-send-email-pclouds@gmail.com>

```
Repository/Branch level commands are grouped into group Repository
File manipulation commands are in group Manipulation
Other status commands are in group Status
The rest is in group Other

Signed-off-by: Nguyá»n ThÃ¡i Ngá»c Duy <pclouds@gmail.com>
---
This is a suggestion. Someone may have better layout than me.

 generate-cmdlist.sh |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index b45495d..f385854 100755
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
@@ -10,33 +10,40 @@ struct cmdname_help
 struct cmdname_help common_cmds[] = {"
 
 cat <<\EOF |
-add
-apply
-archive
-bisect
+G:Repository
+init-db
 branch
-checkout
-cherry-pick
 clone
-commit
-diff
 fetch
-grep
-init-db
-log
 merge
-mv
 prune
 pull
 push
-rebase
 reset
+tag
+
+G:Manipulation
+add
+apply
+checkout
+commit
+mv
 revert
 rm
+
+G:Status
+diff
+log
 show
 show-branch
 status
-tag
+
+G:Other
+archive
+bisect
+cherry-pick
+grep
+rebase
 verify-tag
 EOF
 while read cmd
-- 
1.4.4.rc1.g9124

```
