Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » $HOME/.config/git/ignore for ignore entries
$HOME/.config/git/ignore for ignore entries [message #1383894] Mon, 26 May 2014 20:06 Go to next message
Eclipse UserFriend
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 02:49 Go to previous messageGo to next message
Eclipse UserFriend
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 02:50 Go to previous messageGo to next message
Eclipse UserFriend
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 03:15 Go to previous messageGo to next message
Eclipse UserFriend
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 18:54 Go to previous messageGo to next message
Eclipse UserFriend
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 17:34 Go to previous messageGo to next message
Eclipse UserFriend
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 17:41 Go to previous message
Eclipse UserFriend
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: Fri Nov 07 08:39:34 EST 2025

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

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

Back to the top