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

Allow users to install git-theta in multiple ways #246

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

blester125
Copy link
Collaborator

There is now a --scope argument for git theta install. It has the following values:

  • global: Install git-theta via ~/.gitconfig
  • user: Install git-theta via $XDG_CONFIG/git/config, this dir needs to exists
  • system: Install to /etc/git/config which often needs root powers
  • repository: You need to be in a repo and it installs it to .git/config

As we use git config --list which checking if git-theta is installed, we should find it no matter where it is installed.

There is now a `--scope` argument for `git theta install`. It has the
following values:

* `global`: Install git-theta via `~/.gitconfig`
* `user`: Install git-theta via `$XDG_CONFIG/git/config`, this dir needs
  to exists
* `system`: Install to `/etc/git/config` which often needs root powers
* `repository`: You need to be in a repo and it installs it to
  `.git/config`

As we use `git config --list` which checking if git-theta is installed,
we should find it no matter where it is installed.
@blester125 blester125 requested review from nkandpa2 and muqeeth April 25, 2024 01:25
@blester125
Copy link
Collaborator Author

closes #233

@blester125 blester125 merged commit 0d2fd8c into r-three:main Apr 26, 2024
19 checks passed
@blester125 blester125 deleted the chore/git-theta-install-scope branch April 26, 2024 13:54
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 this pull request may close these issues.

1 participant