Git development
 help / color / mirror / Atom feed
* typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html
@ 2007-08-06 14:05 Toralf Förster
  2007-08-06 14:26 ` Julian Phillips
  0 siblings, 1 reply; 2+ messages in thread
From: Toralf Förster @ 2007-08-06 14:05 UTC (permalink / raw)
  To: git

Hello,

shouldn't " at the tip of one of your branches" better written as " at 
the top of one of your branches".

BTW one question: I run a simple test unit (only build tests) against 
the latest git tree, which is updated with "git pull" once a day.

If I want to make some tests with a previous kernel version - say 
v2.6.20 and switch then back to HEAD to continue with my common test 
suite, would the following be ok : ?

$> git checkout v2.6.20
$> <do something useful with it>
$> git reset

Thanks for an answer

--
Toralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html
  2007-08-06 14:05 typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html Toralf Förster
@ 2007-08-06 14:26 ` Julian Phillips
  0 siblings, 0 replies; 2+ messages in thread
From: Julian Phillips @ 2007-08-06 14:26 UTC (permalink / raw)
  To: Toralf Förster; +Cc: git

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1039 bytes --]

On Mon, 6 Aug 2007, Toralf Förster wrote:

> Hello,
>
> shouldn't " at the tip of one of your branches" better written as " at the 
> top of one of your branches".
>
> BTW one question: I run a simple test unit (only build tests) against the 
> latest git tree, which is updated with "git pull" once a day.
>
> If I want to make some tests with a previous kernel version - say v2.6.20 and 
> switch then back to HEAD to continue with my common test suite, would the 
> following be ok : ?
>
> $> git checkout v2.6.20

This will change HEAD to be a detached checkout of v2.6.20

> $> <do something useful with it>
> $> git reset

This will not change HEAD back.

something like this perhaps?

$> MY_HEAD=$(git symbolic-ref HEAD)
$> git checkout v2.6.20
$> <...>
$> git reset --hard $MY_HEAD

no doubt there is a more cunning method ...

-- 
Julian

  ---
<SpanKY> hmm, blade iii comes out the 8th
<SpanKY> we could catch a flick and have anal sex in the back
<jforman> holy jesus, /me cancels his plans

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-06 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 14:05 typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html Toralf Förster
2007-08-06 14:26 ` Julian Phillips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox