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

Configuration of repository #23

Open
alexandresalome opened this issue Jan 20, 2013 · 2 comments
Open

Configuration of repository #23

alexandresalome opened this issue Jan 20, 2013 · 2 comments

Comments

@alexandresalome
Copy link
Member

In git directory, there is a config file on which many great things can be operated:

  • fetch patterns
  • upstream settings
  • ...

This file is using a format looking like this:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github.com:gitonomy/gitlib.git
[branch "master"]
    remote = origin
    merge = refs/heads/master

This file can be overriden by user's file (~/.gitconfig). Recently, environment variables have been disabled in process (thanks @lyrixx), so this disable fully the user's inherited configuration.

Two strategies can be imagined:

  1. Parse the file and allow manipulation of it
  2. Use git config command
@alexandresalome alexandresalome mentioned this issue Jan 20, 2013
@lyrixx
Copy link
Member

lyrixx commented Jan 20, 2013

IMHO, you should rely on git config command. I should be easier to parse and to maintain.

@dubcanada
Copy link

I have to agree, we already command line mostly everything else, there is no point in writing your own parser.

@GrahamCampbell GrahamCampbell removed this from the v1.0 - release milestone Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants