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

Suggestion: Make new configure file instead of git-config #21

Closed
makimoto opened this issue Jun 26, 2014 · 4 comments
Closed

Suggestion: Make new configure file instead of git-config #21

makimoto opened this issue Jun 26, 2014 · 4 comments
Assignees

Comments

@makimoto
Copy link
Contributor

Hi, @motemen,

Now ghq's configuration gets complex.
Currently ghq's configuration rents a space from git-config, but I think that it's a time to make the configuration file for ghq.

Have you thought about separating ghq configuration from git-config to another configuration file? ($HOME/.ghqconfig or something)

@motemen
Copy link
Member

motemen commented Jun 27, 2014

Reasonable. I'll try on it later.

Maybe .ghqconfig would be like

[core]
root = ~

[url "https://ghe.example.com/"]
vcs = git

...or something, needs some consideration.

@makimoto
Copy link
Contributor Author

makimoto commented Jul 1, 2014

In my opinion, there's no reason to continue using git-config format for ghq configuration. (excepting backward compatibility)
It is a little hard to write git-config format configuration by hand, and AFAIK to parse git-config format we must use git command or library (or write own parser...).

What about using JSON or YAML format for the configuration?
They are more popular and simpler to write than git-config format.

{
  "root": "/path/to/ghqrepos",
  "urls" : {
    "https://ghe.example.com/" : {
      "vcs": "git"
    }
}
root: "/path/to/ghqrepos"
urls:
    https://ghe.example.com/:
      - vcs: "git"

@motemen motemen self-assigned this Feb 2, 2015
@josephholsten
Copy link

If you do this, please use $XDG_CONFIG_HOME and https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html.

@Songmu
Copy link
Member

Songmu commented Dec 21, 2019

The "ghq" depends heavily on git, so I think it would be good to continue using gitconfig. I don't intend to add any more settings.

@Songmu Songmu closed this as completed Dec 21, 2019
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

No branches or pull requests

4 participants