Subject: Re: How-to revert a locally modified file

From: Wink Saville <[email-masked]>
Date: Thu, 30 Nov 2006 22:20:52 -0800

Junio C Hamano wrote:
> Wink Saville <[email-masked]> 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,