All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Banner -> git co target?
@ 2013-04-01 13:16 Michael Cashwell
  2013-04-01 14:07 ` Anatolij Gustschin
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Cashwell @ 2013-04-01 13:16 UTC (permalink / raw)
  To: u-boot

Greetings,

My u-boot work area got messed up recently when I pulled from master. I'm having trouble figuring out what's wrong.

I have this banner "U-Boot SPL 2013.04-rc1-00024-ga268170-dirty (Mar 15 2013 - 10:24:41)" from a recently working state. A corresponding banner that's broken for me is "U-Boot SPL 2013.04-rc1-00292-g417c558-dirty (Apr 01 2013 - 08:10:25)"

I'd like to go through and methodically compare these two but I can't figure out what git command would rewind the work area back to a state that corresponds to a known u-boot banner.

I assume the key bits are "00024-ga268170" but I expect I need a commit ID or branch name and that doesn't seem to be either.

Any pointers?

Thanks,
-Mike Cashwell

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

* [U-Boot] Banner -> git co target?
  2013-04-01 13:16 [U-Boot] Banner -> git co target? Michael Cashwell
@ 2013-04-01 14:07 ` Anatolij Gustschin
  2013-04-01 14:36   ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Anatolij Gustschin @ 2013-04-01 14:07 UTC (permalink / raw)
  To: u-boot

Hello,

On Mon, 1 Apr 2013 09:16:06 -0400
Michael Cashwell <mboards@prograde.net> wrote:

> Greetings,
> 
> My u-boot work area got messed up recently when I pulled from master. I'm having trouble figuring out what's wrong.
> 
> I have this banner "U-Boot SPL 2013.04-rc1-00024-ga268170-dirty (Mar 15 2013 - 10:24:41)" from a recently working state. A corresponding banner that's broken for me is "U-Boot SPL 2013.04-rc1-00292-g417c558-dirty (Apr 01 2013 - 08:10:25)"
> 
> I'd like to go through and methodically compare these two but I can't figure out what git command would rewind the work area back to a state that corresponds to a known u-boot banner.
> 
> I assume the key bits are "00024-ga268170" but I expect I need a commit ID or branch name and that doesn't seem to be either.
> 
> Any pointers?

Commit ID is "a268170" (remove 'g'), with 24 new patches committed
after v2013.04-rc1 tag. So

  git checkout -b working-state a268170

should work.

Thanks,

Anatolij

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

* [U-Boot] Banner -> git co target?
  2013-04-01 14:07 ` Anatolij Gustschin
@ 2013-04-01 14:36   ` Tom Rini
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2013-04-01 14:36 UTC (permalink / raw)
  To: u-boot

On Mon, Apr 01, 2013 at 04:07:56PM +0200, Anatolij Gustschin wrote:
> Hello,
> 
> On Mon, 1 Apr 2013 09:16:06 -0400
> Michael Cashwell <mboards@prograde.net> wrote:
> 
> > Greetings,
> > 
> > My u-boot work area got messed up recently when I pulled from master. I'm having trouble figuring out what's wrong.
> > 
> > I have this banner "U-Boot SPL 2013.04-rc1-00024-ga268170-dirty (Mar 15 2013 - 10:24:41)" from a recently working state. A corresponding banner that's broken for me is "U-Boot SPL 2013.04-rc1-00292-g417c558-dirty (Apr 01 2013 - 08:10:25)"

Note that in both of these cases "-dirty" means that you have
uncommitted local changes.

> > I'd like to go through and methodically compare these two but I can't figure out what git command would rewind the work area back to a state that corresponds to a known u-boot banner.
> > 
> > I assume the key bits are "00024-ga268170" but I expect I need a commit ID or branch name and that doesn't seem to be either.
> > 
> > Any pointers?
> 
> Commit ID is "a268170" (remove 'g'), with 24 new patches committed
> after v2013.04-rc1 tag. So
> 
>   git checkout -b working-state a268170
> 
> should work.

And to try and track things do you can do:
$ git stash save "My changes to do..."
$ git bisect start
$ git bisect good a268170
$ git bisect bad

And then 'git bisect good' or 'git bisect bad' as a particular revision
works or fails.  If you need the local changes to boot your platform,
you can do a git stash pop to apply your local changes on top of the new
rev, build, git stash save (without a "describe the changes string" git
stash still saves your changes, it just doesn't have a helpful a month
later string telling you what you did, just what rev you have stashed
changes on top of).

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130401/f0cc1a46/attachment.pgp>

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

end of thread, other threads:[~2013-04-01 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-01 13:16 [U-Boot] Banner -> git co target? Michael Cashwell
2013-04-01 14:07 ` Anatolij Gustschin
2013-04-01 14:36   ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.