git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Samuel LijinNext: David Lang
Message 9 of 11 in “Is there a way to have a local version of a header file?”
  1. David LangMar 18, 2017
  2. Ævar Arnfjörð BjarmasonMar 18, 2017
  3. David LangMar 18, 2017
  4. Ævar Arnfjörð BjarmasonMar 18, 2017
  5. Junio C HamanoMar 18, 2017
  6. David LangMar 18, 2017
  7. Junio C HamanoMar 18, 2017
  8. Samuel LijinMar 18, 2017
  9. Johannes SixtMar 19, 2017
  10. David LangMar 19, 2017
  11. Jakub NarębskiMar 18, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.