Re: Conventions on struct copying?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 19, 2014, 17:10 UTC
- Message-ID
- <xmqqvbrwhlki.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20140618233129.GK368384@vauxhall.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> I don't know of any place we explicitly copy structs like > this,...
which should be a reason enough. The first concrete guideline is "just imitate the existing code".
> but I don't know of any prohibition against it, either.
So now you know ;-).