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

Re: [PATCH 2/2] Documentation: point to related commands from gitignore

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 11, 2010, 19:05 UTC
Message-ID
<7vwrojfzq3.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20101110190048.GC12365@burratino>
Jonathan Nieder <jrnieder@gmail.com> writes:
> While at it, move a reference to update-index --assume-unchanged from
> the DESCRIPTION to lower down on the page.  This way, the methodical
> reader can benefit from first learning what excludes files do, then
> how they relate to other git facilities.
Looks sensible.
Show 5 quoted lines
> +To ignore uncommitted changes in a file that is already tracked,
> +use 'git update-index {litdd}assume-unchanged'.
> +
> +To stop tracking a file that is currently tracked, use
> +'git rm --cached'.

I am not very happy with the wording "to do X, use Y" above, though. For example, "rm --cached" is a good starting point, but that needs to be followed by a commit some time in the future to take permanent effect. The realization that "rm --cached" is a good starting point would come only with an understanding of what "rm --cached" does (i.e. it removes the path from the index, preparing for its removal from the future history).

"to do X, see Y" might be a good compromise, because what I am suggesting by the above is that ideally to say "to do X means doing Z so using Y is a good way to achieve it", but "... means doing Z" part is explained in the manual page of Y.

In any case, will queue.  Thanks.
Previous: Jonathan NiederNext: Sitaram Chamarty
Message 4 of 5 in “Re: [PATCH] gitignore(5): explain how to stop tracking a file”
  1. Jonathan NiederNov 10, 2010
  2. 1/2 Documentation: split gitignore page into sectionsJonathan Nieder, Nov 10, 2010
  3. 2/2 Documentation: point to related commands from gitignoreJonathan Nieder, Nov 10, 2010
  4. Junio C HamanoNov 11, 2010
  5. Sitaram ChamartyNov 11, 2010

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.