Re: EasyGit Integration

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

 



On Tue, Jun 09, 2009 at 03:40:35PM -0700, Linus Torvalds wrote:
> I also don't mind per se having the "git checkout" kind of semantics, 
> where different kinds of arguments result in different kinds of behavior. 
> I'm not convinced it's a wonderful design, but I would not object to
> 
>  - old behavior: revert the commit by creating an "anti-commit":
> 
> 	git revert <cmit-name>
> 
>  - new extension: revert the state of the working tree to the HEAD:
> 
> 	git revert [--] pathspec
> 
> which would kind of match the semantics of "git checkout" does.

My personal opinion is this kind of overloading is actually more
confusing than simply adding a new name, such as "git revert-file".
Of course, you can do that already using a git alias....  So IMHO the
best way of handling this issue is to have git tutorials use this as a
teachable moment, so people can create their own git alias for "git
checkout HEAD --".

   	       	      	   	   	   - Ted
--
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]