lkml.org 
[lkml]   [2005]   [Jun]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 21 Jun 2005 10:42:31 -0700 (PDT)
FromLinus Torvalds <>
SubjectRe: git-pull-script on my linus tree fails..

On Tue, 21 Jun 2005, Jeff Garzik wrote:
> 
> 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

Actually, I'd suggest doing the git-checkout-script _first_. That way you 
_can_ use the careful version, which refuses to switch if it would cause 
information to be lost. Ie something like

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

should do it.

(And then you can choose to use the "-f" flag or not to
git-checkout-script depending on whether you want to force it).

Anyway, I think the branch switching behaviour is useful enough that I 
should make git-checkout-script understand the notion of switching to a 
new branch natively.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-21 19:48    [from the cache]
©2003-2008