4 releases

Uses old Rust 2015

0.2.1 Nov 18, 2017
0.2.0 Nov 12, 2017
0.1.1 Nov 12, 2017
0.1.0 Nov 12, 2017

#1758 in Development tools

MIT/Apache

7KB

gitconfig2json_cli

crates version Travis-CI Status Appveyor Status license

Parse git config --list --null for cli

See gitconfig2json for the programmatic API.

Example

$ git config --list --null | gitconfig2json | jq
{
  "branch": {
    "chore/foo=bar.baz": {
      "merge": "refs/heads/master",
      "remote": "upstream"
    },
    "master": {
      "merge": "refs/heads/master",
      "remote": "upstream"
    }
  },
  "color": {
    "ui": "auto"
  },
  "core": {
    "bare": "false",
    "editor": "vim",
    "excludesfile": "~/data/src/github.com/sanemat/dotfiles2016/gitignore-system",
    "filemode": "false",
    "logallrefupdates": "true",
    "repositoryformatversion": "0"
  },
  "remote": {
    "upstream": {
      "fetch": "+refs/heads/*:refs/remotes/upstream/*",
      "url": "git@github.com:packsaddle/rust-gitconfig2json_cli.git"
    }
  },
  "url": {
    "git@gist.github.com:": {
      "pushinsteadof": "https://gist.github.com//"
    },
    "git@github.com:": {
      "pushinsteadof": "https://github.com/"
    }
  }
}

Install

Download from Latest release for your own environment.

or

$ cargo install gitconfig2json_cli

changelog

changelog

License

MIT/Apache-2.0 © Sanemat

Dependencies

~1.1–2MB
~29K SLoC