Web lists-archives.com

Re: Is there a way to have a local version of a header file?

Am 19.03.2017 um 00:22 schrieb Samuel Lijin:
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