Re: Why does git-checkout accept a tree-ish?

2017-07-07 Thread Junio C Hamano
Dan Fabulich writes: > Prior to this commit, git-checkout would only switch branches; you > could use git-checkout-index to copy files from the index to the > working tree. But in this commit, git-checkout not only subsumes > the functionality of git-checkout-index but also

Re: Why does git-checkout accept a tree-ish?

2017-07-07 Thread Junio C Hamano
Dan Fabulich writes: > I was looking back through git's history, trying to figure out why > git-checkout has so many features. I was struck by this commit by > Junio in 2005. > > https://github.com/git/git/commit/4aaa702794447d9b281dd22fe532fd61e02434e1 > >> git-checkout:

Why does git-checkout accept a tree-ish?

2017-04-05 Thread Dan Fabulich
I was looking back through git's history, trying to figure out why git-checkout has so many features. I was struck by this commit by Junio in 2005. https://github.com/git/git/commit/4aaa702794447d9b281dd22fe532fd61e02434e1 > git-checkout: revert specific paths to either index or a given