Skip to contentSkip to conversation

command-list.txt: remove 'sparse-index' from main help

PATCH In review SZEDER Gábor 4 participants 4 messages Oct 24, 2021 – Oct 25, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 command-list.txt: remove 'sparse-index' from main help

Ever since 'git sparse-checkout' was introduced [1] it is included in 'git --help' in the section "work on the current change" along with the commands 'add', 'mv', 'restore', and 'rm'. It clearly doesn't belong to that group, moreover it can't be considered such a common command to belong to 'git --help' in the first place, so remove it from there.

[1] 94c0956b60 (sparse-checkout: create builtin with 'list'

                subcommand, 2019-11-21)
---
 command-list.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
command-list.txt +1 -1
index a289f09ed6..eb9cee8dee 100644
@@ -168,7 +168,7 @@ git-show-index                          plumbinginterrogators
 git-show-ref                            plumbinginterrogators
 git-sh-i18n                             purehelpers
 git-sh-setup                            purehelpers
-git-sparse-checkout                     mainporcelain           worktree
+git-sparse-checkout                     mainporcelain
 git-stash                               mainporcelain
 git-stage                                                               complete
 git-status                              mainporcelain           info
Signature · 1 line
2.33.1.1176.g03b4fe3d2b
#1 lore raw
Quoted 7 lines · SZEDER Gábor

Ever since 'git sparse-checkout' was introduced [1] it is included in 'git --help' in the section "work on the current change" along with the commands 'add', 'mv', 'restore', and 'rm'. It clearly doesn't belong to that group, moreover it can't be considered such a common command to belong to 'git --help' in the first place, so remove it from there.

I actually spotted this in git --help just the other day and reacted along the same line. So for what it's worth, this patch makes sense to me.

Incidentally, this drops quite some indentation in git --help (because "sparse-checkout" is by far the longest subcommand listed there). After this patch, we're back within 80 columns again.

Martin

#2 lore raw
In reply to SZEDER Gábor

command-list.txt git-show-index plumbinginterrogators · line 171

Quoted 11 lines · SZEDER Gábor

Ever since 'git sparse-checkout' was introduced [1] it is included in 'git --help' in the section "work on the current change" along with the commands 'add', 'mv', 'restore', and 'rm'. It clearly doesn't belong to that group, moreover it can't be considered such a common command to belong to 'git --help' in the first place, so remove it from there.

[1] 94c0956b60 (sparse-checkout: create builtin with 'list'

                subcommand, 2019-11-21)
command-list.txt +1 -1
-git-sparse-checkout                     mainporcelain           worktree
+git-sparse-checkout                     mainporcelain

Thanks! I didn't realize what a pain it would be to include the 'worktree' grouping here.

-Stolee

#3 lore raw
In reply to SZEDER Gábor
Quoted 7 lines · SZEDER Gábor

Ever since 'git sparse-checkout' was introduced [1] it is included in 'git --help' in the section "work on the current change" along with the commands 'add', 'mv', 'restore', and 'rm'. It clearly doesn't belong to that group, moreover it can't be considered such a common command to belong to 'git --help' in the first place, so remove it from there.

Quoted 7 lines

[1] 94c0956b60 (sparse-checkout: create builtin with 'list'

                subcommand, 2019-11-21)
---
 command-list.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Redirecting to Stolee just in case for an Ack.

I tend to agree that this is a housekeeping command for a local repository to control what are and what are not materialized in the working tree. It does not directly affect the history produced from there, similar to "git gc" is, so in that sense, I do not think we would miss it in the "list of usual commands".

If I had to have it in some category, I do agree with the current code that it belongs to the "worktree" family, though.

Thanks, will queue.

Quoted 13 lines
command-list.txt +1 -1
index a289f09ed6..eb9cee8dee 100644
@@ -168,7 +168,7 @@ git-show-index                          plumbinginterrogators
 git-show-ref                            plumbinginterrogators
 git-sh-i18n                             purehelpers
 git-sh-setup                            purehelpers
-git-sparse-checkout                     mainporcelain           worktree
+git-sparse-checkout                     mainporcelain
 git-stash                               mainporcelain
 git-stage                                                               complete
 git-status                              mainporcelain           info