public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Carlo Wood <carlo@alinoe.com>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: My kernel hangs again: Help with git please
Date: Sat, 16 Jun 2007 06:07:47 +0200	[thread overview]
Message-ID: <20070616040747.GA21076@alinoe.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0706152026320.4740@iabervon.org>

On Fri, Jun 15, 2007 at 08:33:38PM -0400, Daniel Barkalow wrote:
> HEAD doesn't mean what you think it means. It's the latest revision on the 
> branch with the *. What you want is:
> 
> $ git checkout master
> 
> This will move the * to "master", which shouldn't have been affected by 
> any of this, and move your working directory to this point as well. At 
> that point, you should be able to build a working kernel.
> 
> What "git reset --hard HEAD" does is discard any differences to tracked 
> files between your working directory and the revision you're on. It's 
> relevant if you want to discard local changes, not otherwise.

I don't understand - any branch that I am on has many tags. I can use
'git reset --hard sometag' to change the source tree to that tag (which
works if I look at the version in the Makefile and pick tags that are
far apart enough). Then, shouldn't 'HEAD' have the meaning: the newest
tag on the branch? I was on the 'bisect' branch - but that is a copy
of the master, no? At least, that was what I started on when I started
the bisect.

Anyway, I tried this:

$ git checkout master
$ git branch
  bisect
* master
  origin
$ BRANCH=$(git branch | grep "^\*" | sed -e "s/\* //")
$ echo $BRANCH
master
$ git rev-list --max-count=1 $BRANCH
5ecd3100e695228ac5e0ce0e325e252c0f11806f

Is it correct that this last command gives me the 'git id' (if that
is the correct name for the hash) of the revision that my local
working copy is at?

Can you tell me what is the latest git id that you see?

Because, if I compile 5ecd3100e695228ac5e0ce0e325e252c0f11806f is
still hangs at boot :(

I really don't know how I got a working kernel before :/

-- 
Carlo Wood <carlo@alinoe.com>

  reply	other threads:[~2007-06-16  4:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-16  0:12 My kernel hangs again: Help with git please Carlo Wood
2007-06-16  0:33 ` Daniel Barkalow
2007-06-16  4:07   ` Carlo Wood [this message]
2007-06-16  5:28     ` Daniel Barkalow
2007-06-16 14:03       ` Carlo Wood
2007-06-16 19:13         ` Daniel Barkalow
2007-06-17 10:52         ` Alex Riesen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070616040747.GA21076@alinoe.com \
    --to=carlo@alinoe.com \
    --cc=barkalow@iabervon.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox