Linus Torvalds wrote:> It's not quite your "switch", though, because it will always _write_ to> the current HEAD, it won't be switching the current HEAD around to another> branch. I almost think that behavkiour would be more useful, I'll think> about how to do it sanely.

The reason I requested git-checkout-script is to make git-switch-tree pretty much trivial. The new git-switch-tree will sit on top of git-checkout-script, like

if $1 switch HEAD to refs/heads/$1 git-checkout-script

So, as created, git-checkout-script is a useful foundation for other scripts.

[1] Actually I have a third, 'git-changes-script'. The only reason I use this is that it supports the old BitKeeper syntax of

cd my-repo-2.6 git-changes-script -L ../linux-2.6

to obtain a list of changes that are _only_ present in my-repo-2.6, and not in ../linux-2.6 repo. git-changes-script works with .git/HEAD at the repo level, and knows nothing of branches (which is fine).-To unsubscribe from this list: send the line "unsubscribe linux-kernel" inthe body of a message to majordomo@vger.kernel.orgMore majordomo info at http://vger.kernel.org/majordomo-info.htmlPlease read the FAQ at http://www.tux.org/lkml/