Re: Using .gitignore symbolic links?
- From
- Robert 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