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

Re: Using .gitignore symbolic links?

From
RKRobert Karszniewicz <avoidr@posteo.de>
Date
Jun 18, 2021, 06:44 UTC
Message-ID
<YMxAteKYn0qf/YNj@BDZ>
In-Reply-To
<1623983680.3494.0@smtp.dreamhost.com>
On Thu, Jun 17, 2021 at 07:34:40PM -0700, Tessa L. H. Lovelace wrote:
Show 10 quoted lines
> Secondly, and more personally important to me, a system administrator:
> My repositories use symbolic links to allow a single .gitignore file to 
> define my folder structure, allowing me to avoid hardcoding the 
> repo-specific folder paths into my configs.
> 
> Is there a flag to disable this new behavior?
> 
> If not, this change means I need to update dozens of files, duplicates 
> all, or completely rewrite my .gitignore files to have shyteloads of 
> arbitrary file paths in them, which I'd rather not do.

Hmm, it sounds like `core.excludesFile` described in git-config(1) could do what you need:

  core.excludesFile
      Specifies the pathname to the file that contains patterns to
      describe paths that are not meant to be tracked, in addition to
      .gitignore (per-directory) and .git/info/exclude. Defaults to
      $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set
      or empty, $HOME/.config/git/ignore is used instead. See
      gitignore(5).

Regards, Robert Karszniewicz

Previous: Tessa L. H. LovelaceNext: Ævar Arnfjörð Bjarmason
Message 2 of 5 in “Using .gitignore symbolic links?”
  1. Tessa L. H. LovelaceJun 18, 2021
  2. Robert KarszniewiczJun 18, 2021
  3. Ævar Arnfjörð BjarmasonJun 18, 2021
  4. Jeff KingJun 18, 2021
  5. Tessa L.Jul 3, 2021

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.