From: Ralf Ebert Date: Sun, 15 Aug 2010 21:05:04 GMT Subject: Re: [PATCH] reset: Better warning message on git reset --mixed Message-ID: <1281906304.32195.26.camel@lucy.SSG5-Serial-WLAN> In-Reply-To: <7vr5hzg1u1.fsf@alter.siamese.dyndns.org> > Regarding the various modes that are forbidden with "reset", I've been > wondering if we can do things differently. After being very happy about finding the 'soft-mixed-hard-path-cheat-sheet' table in 0e5a7fa (mentioned in Ævars message that triggered the discussion) reset: --soft --mixed --hard -- HEAD X X X - index - X X X files - - X - I was wondering: Wouldn't the common reset soft/mixed/hard with path/commit operations become a lot more intuitive by separating the "(1) copy [partially] from HEAD to index [to working tree]" operation and the "(2) change HEAD and do (1)" operation? Just as a very rough scribble of what I mean, like this: git wipe [] # git reset []; git checkout [] git wipe [] --index-only # git reset [--mixed] [] git set-head # git reset --soft [] git set-head --wipe # git reset --hard [] git set-head --wipe-index-only # git reset --mixed [] (I know that git reset can do more than that, but this is everything I ever wanted as porcelain-only user from git reset, thought maybe the idea could be of use without being fully elaborated) -- Ralf