Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: [PATCH] Documentation: reset: describe new "--keep" option

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:48:24

Peter Baumann [off-list ref] writes:
On Fri, Mar 05, 2010 at 09:25:36PM +0100, Christian Couder wrote:
quoted
and give an example to show how it can be used.

+--keep::
+	Resets the index to match the tree recorded by the named commit,
+	but keep changes in the working tree. Aborts if the reset would
+	change files that are already modified in the working tree.
+
 
Huh? Keep changes (by not touching the worktree) and then aborting if we
touch the worktree. Seems like a contradiction to me.
Here is my try...

    Reset the index to the given commit, keeping local changes in the working
    tree since the current commit, while updating working tree files without
    local changes to what appears in the given commit.  If a file that is
    different between the current commit and the given commit has local
    changes, reset is aborted.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help