From: loody <miloody@gmail.com>
To: git@vger.kernel.org
Subject: how can we git out source code base on git log?
Date: Tue, 8 Mar 2011 01:25:53 +0800 [thread overview]
Message-ID: <AANLkTimAPBoHJX0iZOt949xQ8HeGPXRyKfD4CDNJFv7u@mail.gmail.com> (raw)
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 reply other threads:[~2011-03-07 17:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-07 17:25 loody [this message]
2011-03-07 18:32 ` how can we git out source code base on git log? Jeff King
2011-03-08 8:22 ` Matthieu Moy
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=AANLkTimAPBoHJX0iZOt949xQ8HeGPXRyKfD4CDNJFv7u@mail.gmail.com \
--to=miloody@gmail.com \
--cc=git@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;
as well as URLs for NNTP newsgroup(s).