Dvc: config: add support for --show-origin

Created on 16 Dec 2020  路  1Comment  路  Source: iterative/dvc

Same as git config:

$ git config --list --show-origin
file:/home/efiop/.gitconfig     [email protected]
file:/home/efiop/.gitconfig     user.name=Ruslan Kuprieiev
file:.git/config        core.repositoryformatversion=0
file:.git/config        core.filemode=true
file:.git/config        core.bare=false
file:.git/config        core.logallrefupdates=true
file:.git/config        [email protected]:efiop/dvc
file:.git/config        remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config        branch.master.remote=origin
file:.git/config        branch.master.merge=refs/heads/master
file:.git/config        [email protected]:iterative/dvc
file:.git/config        remote.upstream.fetch=+refs/heads/*:refs/remotes/upstream/*
file:.git/config        branch.fix-4050.remote=origin
file:.git/config        branch.fix-4050.merge=refs/heads/fix-4050
file:.git/config        branch.fix-4162.remote=origin
file:.git/config        branch.fix-4162.merge=refs/heads/fix-4162

i'm not personally sold on file: prefix in path (just because I don't really know why git does that, maybe there is a good reason), but the rest looks pretty good. We now have dvc config --list, so now we need dvc config --list --show-origin as the next step.

This will be realy handy to have for users to figure out where the configs are and also handy for us, developers, when debugging particular issues.

feature request p2-medium

Most helpful comment

I'll pick this up and submit a PR soon.

>All comments

I'll pick this up and submit a PR soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

analystanand picture analystanand  路  3Comments

TezRomacH picture TezRomacH  路  3Comments

GildedHonour picture GildedHonour  路  3Comments

mfrata picture mfrata  路  3Comments

dmpetrov picture dmpetrov  路  3Comments