git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unclear description of git-rm on kernel.org
@ 2009-01-04 22:10 alec resnick
  2009-01-04 22:35 ` Miklos Vajna
  0 siblings, 1 reply; 2+ messages in thread
From: alec resnick @ 2009-01-04 22:10 UTC (permalink / raw)
  To: git

Hi!

I was trying to remove a number of files from a git repo I had.  I
read http://kernel.org/pub/software/scm/git/docs/v1.4.4.4/git-rm.html
which I interpreted to mean that git-rm removed only from the index,
and not from the working tree.  In retrospect, the short description
is clear: "git-rm - Remove files from the working tree and from the
index," but I was confused by the language:
"<file>…

    Files to remove from the index and optionally, from the working
tree as well.
-f

    Remove files from the working tree as well as from the index."

Because of "optionally" and the very existence of the "-f" option
suggests that you have to do something extra to ask git-rm to mess
with the working tree.

The manpage is much clearer, and while I recovered the files I
accidentally removed simply with git checkout, I suggest that the
webpage be made a bit clearer.  In particular, adding info about how
to _only_ remove files from the index would be helpful.

I'd be happy to make the changes to the webpage; I don't know how to
do that or if it's appropriate.

Thanks!


-a.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unclear description of git-rm on kernel.org
  2009-01-04 22:10 unclear description of git-rm on kernel.org alec resnick
@ 2009-01-04 22:35 ` Miklos Vajna
  0 siblings, 0 replies; 2+ messages in thread
From: Miklos Vajna @ 2009-01-04 22:35 UTC (permalink / raw)
  To: alec resnick; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

On Sun, Jan 04, 2009 at 05:10:11PM -0500, alec resnick <alec@sproutward.org> wrote:
> I was trying to remove a number of files from a git repo I had.  I
> read http://kernel.org/pub/software/scm/git/docs/v1.4.4.4/git-rm.html

Ugh, why are you reading that ancient version?

I would try:

http://www.kernel.org/pub/software/scm/git/docs/git-rm.html

> I'd be happy to make the changes to the webpage; I don't know how to
> do that or if it's appropriate.

They are generated from asciidoc files from the Documentation/ dir, but
documentation fixes are welcome against 1.6.1.x or master only, I'm
afraid.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-04 22:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-04 22:10 unclear description of git-rm on kernel.org alec resnick
2009-01-04 22:35 ` Miklos Vajna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).