Re: git gc seems to break --symbolic-full-name
- From
- Stas Sergeev <stsp@list.ru>
- Date
- Jul 26, 2017, 14:08 UTC
- 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 пишет:
Show 11 quoted lines
> 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.