Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for XDG base directory #887

Closed
2 tasks done
equt opened this issue Oct 29, 2020 · 1 comment · Fixed by #888
Closed
2 tasks done

Add support for XDG base directory #887

equt opened this issue Oct 29, 2020 · 1 comment · Fixed by #888

Comments

@equt
Copy link

equt commented Oct 29, 2020

It should be reasonable to move the gi_list file into XDG_CACHE_HOME, and it seems to be currently hardcoded into the shell script.

I notice that the ignore script could also benefit from XDG specifications, so maybe it's worth making a quick walkthrough of all the scripts.

Commands

  • git-ignore-io
  • git-ignore

References:

@equt equt changed the title Move gi_list file to XDG_CACHE_HOME Add support for XDG base directory Oct 29, 2020
@equt
Copy link
Author

equt commented Nov 2, 2020

Patterns which a user wants Git to ignore in all situations (e.g., backup or temporary files generated by the user’s editor of choice) generally go into a file specified by core.excludesFile in the user’s ~/.gitconfig. 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.

Quoted from Git SCM. Actually git ignore currently doesn't follow the default value and will throw an error on call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant