From: Stas Sergeev <stsp@list.ru>
To: Jacob Keller <jacob.keller@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
Git mailing list <git@vger.kernel.org>
Subject: Re: git gc seems to break --symbolic-full-name
Date: Wed, 26 Jul 2017 11:40:46 +0300 [thread overview]
Message-ID: <a6738cae-ad8d-cf51-0fbb-428cf0f88703@list.ru> (raw)
In-Reply-To: <CA+P7+xock9gpYVtxj2n6L5Y9dO1VV01OEOT5i0MR7ay68yS+WQ@mail.gmail.com>
26.07.2017 03:36, Jacob Keller пишет:
> If your goal is to make it so users filling out bug reports have a
> version, then using git descrsibe and making that be part of your
> version (based off your tags, and commits) is how pretty much every
> other project I've worked on does this.
>
> I really don't think that's your goal here, given you're doing things
> in make with timestamps and builds, so I guess I misunderstood your
> answer?
There are 2 different things:
1. put git describe output into some header file
2. make things to rebuild with every new commit
So I actually stuck at solving 2, because 1 is trivial.
My original solution for 2 was to "depend" on
refs/heads/*. This worked besides git gc, but had
a lot of troubles with worktrees. And this time I
switched to the "touch tmpfile" trick with the date
taken from git log. This requires .LOW_RESOLUTION_TIME
in makefile, so probably not the best solution again,
but should hopefully be more future-proof than the
previous one.
next prev parent reply other threads:[~2017-07-26 8:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 17:40 git gc seems to break --symbolic-full-name Stas Sergeev
2017-07-21 18:56 ` Junio C Hamano
2017-07-21 19:03 ` Stas Sergeev
2017-07-23 8:40 ` Jacob Keller
2017-07-23 19:23 ` Stas Sergeev
2017-07-24 4:02 ` Jacob Keller
2017-07-24 12:50 ` Stas Sergeev
2017-07-26 0:21 ` Stas Sergeev
2017-07-26 0:36 ` Jacob Keller
2017-07-26 8:40 ` Stas Sergeev [this message]
2017-07-26 13:23 ` Jeff King
2017-07-26 14:08 ` Stas Sergeev
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=a6738cae-ad8d-cf51-0fbb-428cf0f88703@list.ru \
--to=stsp@list.ru \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jacob.keller@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox