On Sun, Jan 17, 2016 at 12:37 PM, Yannick Duchêne <yannick_duch...@yahoo.fr>
wrote:

> Except `checkout` fails if there are edited files, is there any big
> difference between `revert` and `checkout`?
>

They can be used for purposes of backing out changes irrevocably,


> Also, what is the purpose of `checkout --keep`? What would be an example
> use‑case?
>

For example:

Bob downloads a zip file of a repo, but doesn't have a true clone. He
begins to hack. Later, Alice gives him access to clone and commit. Bob then
clones the repo and does, from his current working dir (from the zip file):

f open --keep /the/new/clone

okay, that's 'open --keep', but a checkout use case would be similar.

IIRC --keep comes from the days before 'stash', and stash makes some of the
older uses of --keep obsolete.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to