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

Re: jgit and ignore

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 1, 2009, 17:49 UTC
Message-ID
<20090301174941.GD14365@spearce.org>
In-Reply-To
<49AAC91E.1000401@gmail.com>
Tor Arne Vestbø <torarnv@gmail.com> wrote:
Show 13 quoted lines
> Shawn O. Pearce wrote:
> > IMHO, we should honor ignores in EGit as:
> > 
> >   per-directory .gitignore
> >   per-repostiory GIT_DIR/info/exclude
> > 
> >   per-repository core.excludesfile (yes, really, it can be per
> >   repository, which overrides ~/.gitconfig setting of same)
> > 
> >   Eclipse global team ignore patterns
> 
> Just to be clear, I noticed you left out the global core.excludesfile
> (from ~/.gitconfig) here. I guess this intentional?
No, I didn't.  core.excludesfile is read from the config, the config
is a union of /etc/gitconfig, ~/.gitconfig, and GIT_DIR/config.  The
last setting wins.
 
Show 6 quoted lines
> Or should we combine the ignores from the global team ignores and the
> ignores from the global core.excludesfile in ~/.gitconfig?
>
> Either way, I full agree that we should honor all repository ignores
> (whether they are in directory .gitignores, info/exclude, or given by
> repository-specific core.excludesfile).

Right. See my reply to Ferry, we union all of them together, but in the case of core.excludesfile we have to honor what the repository is telling us is the correct setting for that one repository, which may differ from other repositories if it has been overridden.

-- 
Shawn.
Previous: Tor Arne VestbøNext: Tor Arne Vestbø
Message 11 of 23 in “jgit and ignore”
  1. Jon SmirlFeb 28, 2009
  2. Shawn O. PearceFeb 28, 2009
  3. Ferry Huberts (Pelagic)Mar 1, 2009
  4. Jon SmirlMar 1, 2009
  5. Ferry Huberts (Pelagic)Mar 1, 2009
  6. Tor Arne VestbøMar 1, 2009
  7. Ferry Huberts (Pelagic)Mar 1, 2009
  8. Tor Arne VestbøMar 1, 2009
  9. Shawn O. PearceMar 1, 2009
  10. Tor Arne VestbøMar 1, 2009
  11. Shawn O. PearceMar 1, 2009
  12. Tor Arne VestbøMar 1, 2009
  13. Shawn O. PearceMar 1, 2009
  14. Ferry Huberts (Pelagic)Mar 1, 2009
  15. Shawn O. PearceMar 1, 2009
  16. Robin RosenbergMar 1, 2009
  17. Ferry Huberts (Pelagic)Mar 4, 2009
  18. Ferry Huberts (Pelagic)Mar 1, 2009
  19. Jon SmirlMar 1, 2009
  20. Tor Arne VestbøMar 1, 2009
  21. Jon SmirlMar 1, 2009
  22. Tor Arne VestbøMar 1, 2009
  23. Robin RosenbergMar 1, 2009

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.