From: Stas Sergeev <stsp@list.ru>
To: Jeff King <peff@peff.net>
Cc: Jacob Keller <jacob.keller@gmail.com>,
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 17:08:01 +0300 [thread overview]
Message-ID: <5b86f0e2-b44f-a3ea-bb66-c7826619773b@list.ru> (raw)
In-Reply-To: <20170726132322.4cfj73tynrko264o@sigill.intra.peff.net>
26.07.2017 16:23, Jeff King пишет:
> In git.git we do something like:
>
> -- >8 --
> other: version
> cat $< >$@
>
> .PHONY: FORCE
> version: FORCE
> @git rev-parse HEAD >$@+
> @if cmp $@+ $@ >/dev/null 2>&1; then rm $@+; else mv $@+ $@; fi
> -- >8 --
Yes, thats a nice recipe that I would be using
if not for the fact that I already switched to
"touch", which requires 1 fewer tmp file and
no comparison.
But I'll keep this in mind if something wrong
happens with my current solution, thanks!
I wonder if git can provide some helper script
for other projects to solve this in a same way.
prev parent reply other threads:[~2017-07-26 15:06 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
2017-07-26 13:23 ` Jeff King
2017-07-26 14:08 ` Stas Sergeev [this message]
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=5b86f0e2-b44f-a3ea-bb66-c7826619773b@list.ru \
--to=stsp@list.ru \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jacob.keller@gmail.com \
--cc=peff@peff.net \
/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