From: Stas Sergeev Date: Wed, 26 Jul 2017 14:08:01 GMT Subject: Re: git gc seems to break --symbolic-full-name Message-ID: <5b86f0e2-b44f-a3ea-bb66-c7826619773b@list.ru> 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.