Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

xrlin/git-json-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This simple tool is just to get the json diff in git repository conveniently.

Install

go get github.com/xrlin/git-json-diff/cmd/git-json-diff

Besides, you can download the executable files in releases page directly.

Usage

git-json-diff -file=config/test.json
2019/01/07 11:32:39  {
-  "item0": [
-    : {
-      "down": 2,
-      "up": 1
-    }
-  ],
   "item1": [
     : {
       "down": 2,
       "up": 1
     }
   ]
 }

Run git-json-diff for more cli arguments.

$ git-json-diff
Usage of C:\Users\linxianrong\go\bin\git-json-diff.exe:
  -commit1 string
        commit id, as current version, to fetch the file content. (default "HEAD")
  -commit2 string
        commit id, as the old version, to fetch the file content. (default "HEAD~")
  -file string
        file in repo to show diff
  -format string
        Diff Output Format (ascii, delta) (default "ascii")

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.