From: Mikko Rapeli <mikko.rapeli@iki.fi>
To: Jakub Narebski <jnareb@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How to embed a hash, tag or branch name?
Date: Fri, 31 Jul 2009 12:52:38 +0300 [thread overview]
Message-ID: <20090731095238.GG29909@nalle> (raw)
In-Reply-To: <m3ljm5ryar.fsf@localhost.localdomain>
On Fri, Jul 31, 2009 at 02:27:50AM -0700, Jakub Narebski wrote:
> You can embed SHA-1 of a _file contents_ (blob) using '$Id: $' keyword
> with `ident` attribute - see gitattributes manpage.
Great, thanks!
> The correct solution of embedding version number is to do it at
> _build time_, using e.g. script similar to GIT-VERSION-GEN used by
> Git itself and by Linux kernel. It helps if you tag your releases.
This would help, but I'm on cygwin/msysgit and compiling with a
microcontroller IDE MPLAB and PICC-18 compiler, so I really don't
want to dig deeper into build time integration at the moment.
Btw, I don't know how didn't notice that this is a FAQ:
http://git.or.cz/gitwiki/GitFaq#Doesgithavekeywordexpansion.3F
-Mikko
next prev parent reply other threads:[~2009-07-31 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 8:17 How to embed a hash, tag or branch name? Mikko Rapeli
2009-07-31 9:27 ` Jakub Narebski
2009-07-31 9:52 ` Mikko Rapeli [this message]
2009-08-01 12:38 ` Dirk Süsserott
2009-08-01 13:13 ` Jakub Narebski
2009-08-01 16:04 ` Dirk Süsserott
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=20090731095238.GG29909@nalle \
--to=mikko.rapeli@iki.fi \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
/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 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.