git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how can we git out source code base on git log?
@ 2011-03-07 17:25 loody
  2011-03-07 18:32 ` Jeff King
  2011-03-08  8:22 ` Matthieu Moy
  0 siblings, 2 replies; 3+ messages in thread
From: loody @ 2011-03-07 17:25 UTC (permalink / raw)
  To: git

Dear all:
There is a paragraph in faq which told us how to git out some specific tag.

But how could I check out the source at some specific point of time if
I have no idea what the tag is or there is no tag on it.

Below I use uboot for example:

commit 3831530dcb7b71329c272ccd6181f8038b6a6dd0
Author: Mikhail Zolotaryov <lebon@lebon.org.ua>
Date:   Wed Sep 8 17:06:03 2010 +0300
.......
.......

commit b75a2dde47cc0ffb686e21cbf1aea4a45e23df10
Author: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
Date:   Mon Oct 11 18:03:35 2010 +0200
    tools/imls: fix comment in Makefile

Is it possible I can check out the commit as
3831530dcb7b71329c272ccd6181f8038b6a6dd0,?

Meanwhile, is there any command can help me to get the history that
combine tag and commit such that I can know know the closest tag of
some specific commit?

take below for example, I will know ccdd is the closest tag of commit
b75a2dde47cc0ffb686e21cbf1aea4a45e23df10.


commit 3831530dcb7b71329c272ccd6181f8038b6a6dd0
Author: Mikhail Zolotaryov <lebon@lebon.org.ua>
Date:   Wed Sep 8 17:06:03 2010 +0300
.......
.......

Tag: aabb

commit b75a2dde47cc0ffb686e21cbf1aea4a45e23df10
Author: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
Date:   Mon Oct 11 18:03:35 2010 +0200
    tools/imls: fix comment in Makefile
......

Tag: ccdd


-- 
Regards,

miloody

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

end of thread, other threads:[~2011-03-08  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 17:25 how can we git out source code base on git log? loody
2011-03-07 18:32 ` Jeff King
2011-03-08  8:22 ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).