Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andreas Ericsson wrote:

There is a "--hard" after one of them. It reads like this:

git reset --hard  ;# move current branch to random point in history
                  # discarding working tree and index state

git reset --mixed ;# move current branch to random point in history
                  # discard the index but keep the working tree

git reset --soft  ;# move current branch to random point in history,
                  # leaving index and working tree intact

I always thought that these would be best presented in
a linear ordering so that the effects were clearly
shown in an "increasing" way:

--soft
   - touches one thing

--mixed
   - touches one thing and a second
   - this is the default

--hard
   - touches one thing, a second and a third

Want a patch down that line?

jdl

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux