Re: Is there a way to have a local version of a header file?
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Mar 19, 2017, 21:33 UTC
- Message-ID
- <5d06ba31-bec1-0172-cb00-10b4d2c4e648@kdbg.org>
- In-Reply-To
- <CAJZjrdVxT7G+Cn+1_vqPBCtMOALmR_542jvP7nXXuvs74ko5qg@mail.gmail.com>
Am 19.03.2017 um 00:22 schrieb Samuel Lijin:
Show 5 quoted lines
> I'd just provide a .sample and tell people what to do with it in the > README. The alternative is to provide config.h as is and tell people > to use "git update-index --assume-unchanged" immediately after cloning > to ignore changes to the file, but this is prone to people > accidentally committing credentials.
Please do not suggest to use --assume-unchanged. It is not intended for this purpose, and if used in the way you suggest, it will sooner or later bite back.
--assume-unchanged is a promise to Git that you do not change the file. If you break the promise, you get what you deserve ;)
-- Hannes