All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wink Saville <wink@saville.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: How-to revert a locally modified file
Date: Thu, 30 Nov 2006 22:20:52 -0800	[thread overview]
Message-ID: <456FC9C4.5040405@saville.com> (raw)
In-Reply-To: <7v4psgduzg.fsf@assigned-by-dhcp.cox.net>

Junio C Hamano wrote:
> Wink Saville <wink@saville.com> writes:
> 
> 
> Where did you find 0.99.7 ToDo?  I am curious...

here: http://kerneltrap.org/node/5678

> 
>     git-checkout: revert specific paths to either index or a given tree-ish.
>     
>     When extra paths arguments are given, git-checkout reverts only those
>     paths to either the version recorded in the index or the version
>     recorded in the given tree-ish.
>     

FYI the above seems more obvious then what's in the man page:

"It updates the named paths in the working tree from the
index file (i.e. it runs git-checkout-index -f -u)."

But for me saying something like;

"It reverts the paths in the working tree to the most recent version stored in git."

would even be better. It may not be as precise as the current sentence,
but more obvious to this neophyte. Finally, in the EXAMPLES you
might add another example of reverting a "modified the file" as
well as recovering a deleted file.

In any case thanks,


      reply	other threads:[~2006-12-01  6:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-01  5:23 How-to revert a locally modified file Wink Saville
2006-12-01  5:51 ` Junio C Hamano
2006-12-01  6:20   ` Wink Saville [this message]

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=456FC9C4.5040405@saville.com \
    --to=wink@saville.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /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.