All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zenaan Harkness <zen@freedbms.net>
To: git <git@vger.kernel.org>
Subject: Re: git rm --cached should be git rm --cache or git rm --stage
Date: Sat, 20 Aug 2016 17:25:00 +1000	[thread overview]
Message-ID: <20160820072500.GC24992@x220-a02> (raw)
In-Reply-To: <20160820072214.GB24992@x220-a02>

   Please CC me :)

> From man git-rm:
> 
> --cached
>   Use this option to unstage and remove paths only from the index.
>   Working tree files, whether modified or not, will be left alone.
> 
> 
> This wording is unclear and dangerous, and ought be cleaned up somehow.
> 
> Probably also the option name should change.
> 
> See here for examples of community self-help compensating for git-rm man
> page's particularly bad wording:
> http://stackoverflow.com/questions/6919121/why-are-there-2-ways-to-unstage-a-file-in-git


Also, perhaps a git porcelain command "git unstage" to unstage staged
changes.  Something small like this might make a huge difference for git
newbies.

  reply	other threads:[~2016-08-20  8:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-20  7:22 git rm --cached should be git rm --cache or git rm --stage Zenaan Harkness
2016-08-20  7:25 ` Zenaan Harkness [this message]
2016-08-20 17:48 ` Junio C Hamano
2016-08-20 19:14 ` Philip Oakley
2016-08-20 22:25   ` Zenaan Harkness
2016-08-20 23:06     ` Philip Oakley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160820072500.GC24992@x220-a02 \
    --to=zen@freedbms.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.