git/list[1] front-page[2] threads[3] people[4] search[5] about
 

how can we git out source code base on git log?

From
Lloody <miloody@gmail.com>
Date
Mar 7, 2011, 17:25 UTC
Message-ID
<AANLkTimAPBoHJX0iZOt949xQ8HeGPXRyKfD4CDNJFv7u@mail.gmail.com>

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
Next: Jeff King
Message 1 of 3 in “how can we git out source code base on git log?”
  1. loodyMar 7, 2011
  2. Jeff KingMar 7, 2011
  3. Matthieu MoyMar 8, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.