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

Re: [PATCH] command-list.txt: remove 'sparse-index' from main help

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 25, 2021, 16:10 UTC
Message-ID
<xmqqmtmx2iht.fsf@gitster.g>
In-Reply-To
<20211024170730.3428123-1-szeder.dev@gmail.com>
SZEDER Gábor <szeder.dev@gmail.com> writes:
Show 14 quoted lines
> 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)
>
> Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
> ---
>  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.
Show 13 quoted lines
> diff --git a/command-list.txt b/command-list.txt
> index a289f09ed6..eb9cee8dee 100644
> --- a/command-list.txt
> +++ b/command-list.txt
> @@ -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
Previous: Derrick Stolee
Message 4 of 4 in “command-list.txt: remove 'sparse-index' from main help”
  1. command-list.txt: remove 'sparse-index' from main helpSZEDER Gábor, Oct 24, 2021
  2. Martin ÅgrenOct 24, 2021
  3. Derrick StoleeOct 25, 2021
  4. Junio C HamanoOct 25, 2021

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.