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

Re: [PATCH 0/2] Documentation: git-clean: description updates

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 26, 2009, 00:10 UTC
Message-ID
<7vhc0cxok0.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1240672421-10309-1-git-send-email-wjl@icecavern.net>
"Wesley J. Landaker" <wjl@icecavern.net> writes:
Show 11 quoted lines
> I stumbled over the git-clean documentation when I was first learning
> git, and ran into this again when a colleage was asking for help. So
> here are two fixes.
>
> The first patch fixes some minor grammatical errors in very
> non-intrusive manner. This should be completely uncontroversial.
>
> The second patch rewrites the first paragraph in the description
> section to make it more readable and friendly. I think this change
> is a very good one, but I split it into a separate patch since it is
> a more intrusive change.
Thanks, will queue for 1.6.3, as I think both are clearly improvements.

One could argue that the second one could be further improved, but I do not see anything controversial in it.

    This allows cleaning the working tree by removing files that are not
    under version control.
    Normally, only files unknown to git are removed, but if the '-x'
    option is specified, ignored files are also removed. This can, for
    example, be useful to remove all build products.

The only iffy point I can see is that "unknown" is a bit fuzzy phrase in this context. I know what you mean, but you are not writing for people who know what "git clean" does ;-)

In the above, "unknown" refers to a set of files that is a strict subset of "untracked" files, excluding the "ignored" set. But that is not defined anywhere in the glossary.

Sometimes we colloquially say "files _known_ to git" to refer to "tracked" files (paths that appear in the index). But your "files _unknown_ to git" is different from the complement of it.

The saddest part is that "untracked files" is not defined in the glossary either.

    Normally, the command removes files that are not in the index, but
    ignored (see linkgit:gitignore[5]) files are kept.  With the '-x'
    option, the command removes the ignored files as well.
Previous: Stephen BoydNext: Wesley J. Landaker
Message 7 of 8 in “Documentation: git-clean: description updates”
  1. 0/2 Documentation: git-clean: description updatesWesley J. Landaker, Apr 25, 2009
  2. 1/2 Documentation: git-clean: fix minor grammatical errorsWesley J. Landaker, Apr 25, 2009
  3. 2/2 Documentation: git-clean: make description more readableWesley J. Landaker, Apr 25, 2009
  4. Stephen BoydApr 25, 2009
  5. Wesley J. LandakerApr 26, 2009
  6. Stephen BoydApr 26, 2009
  7. Junio C HamanoApr 26, 2009
  8. Wesley J. LandakerApr 26, 2009

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.