Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » $HOME/.config/git/ignore for ignore entries
$HOME/.config/git/ignore for ignore entries [message #1383894] Tue, 27 May 2014 00:06 Go to next message
Amit Dor-Shifer is currently offline Amit Dor-ShiferFriend
Messages: 5
Registered: July 2009
Junior Member
Hi.
I'm using a/m file in git to have git ignore file repository-wide.

In eclipse, it seems this file isn't consulted. The only other way I know of ignoring files is via a project-specific .gitignore.

Is there a way to use ~/.config/git/ignore in eclipse?

BTW: ATM, using the ggts bundling of eclipse (3.5.1-RELEASE).

Thanks Smile
Re: $HOME/.config/git/ignore for ignore entries [message #1383905 is a reply to message #1383894] Tue, 27 May 2014 06:49 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
JGit and EGit follow the reference documentation [1] to look for ignore rules. The path you mentioned
isn't on that list by default. You may add it by configuring core.excludesfile in ~/.gitconfig with the
absolute path to your additional ignore file.

[1] https://www.kernel.org/pub/software/scm/git/docs/gitignore.html
Re: $HOME/.config/git/ignore for ignore entries [message #1383906 is a reply to message #1383905] Tue, 27 May 2014 06:50 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
No idea what the ggts bundling of eclipse is.
Re: $HOME/.config/git/ignore for ignore entries [message #1383911 is a reply to message #1383906] Tue, 27 May 2014 07:15 Go to previous messageGo to next message
Amit Dor-Shifer is currently offline Amit Dor-ShiferFriend
Messages: 5
Registered: July 2009
Junior Member
Hi. I think I can actually see $HOME/.config/git/ignore mentioned in the reference you provided:

<quote>
Which file to place a pattern in depends on how the pattern is meant to be used.
...
Patterns which a user wants git to ignore in all situations...Its default value is $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty, $HOME/.config/git/ignore is used instead.
</quote>

Re: $HOME/.config/git/ignore for ignore entries [message #1384026 is a reply to message #1383911] Tue, 27 May 2014 22:54 Go to previous messageGo to next message
Amit Dor-Shifer is currently offline Amit Dor-ShiferFriend
Messages: 5
Registered: July 2009
Junior Member
Cute pun, though: "no idea - eclipse" Smile
Re: $HOME/.config/git/ignore for ignore entries [message #1384380 is a reply to message #1384026] Wed, 28 May 2014 21:34 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Amit Dor-Shifer skrev 2014-05-28 00.54:
> Cute pun, though: "no idea - eclipse" :)

That hurts
Re: $HOME/.config/git/ignore for ignore entries [message #1384383 is a reply to message #1383911] Wed, 28 May 2014 21:41 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Amit Dor-Shifer skrev 2014-05-27 09.15:
> Hi. I think I can actually see $HOME/.config/git/ignore mentioned in the reference you provided:
>
> <quote>
> Which file to place a pattern in depends on how the pattern is meant to be used.
> ..
> Patterns which a user wants git to ignore in all situations...Its default value is $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty,
> $HOME/.config/git/ignore is used instead. </quote>

We're not supporting the XDG stuff, simply because noone has written the code yet.

-- robin
Previous Topic:How to get all the data and the history from remote GIT repository
Next Topic:An extra HEAD
Goto Forum:
  


Current Time: Wed Apr 24 22:32:06 GMT 2024

Powered by FUDForum. Page generated in 0.03325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top