diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-01-29 12:45:39 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-03-03 11:53:43 +0100 |
commit | 0737df7e83efb66410e1a40d64bfa7c664a1d35b (patch) | |
tree | 62c05c35df9afc22f832559d350516a45845d23b | |
parent | 80bf55244687e9507afc366c6588c40061cfcc2f (diff) | |
download | dotfiles-0737df7e83efb66410e1a40d64bfa7c664a1d35b.tar.gz dotfiles-0737df7e83efb66410e1a40d64bfa7c664a1d35b.tar.bz2 dotfiles-0737df7e83efb66410e1a40d64bfa7c664a1d35b.zip |
diff ledger files by posting
-rw-r--r-- | config/git/attributes | 1 | ||||
-rw-r--r-- | home-dots/dot-gitconfig | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/config/git/attributes b/config/git/attributes index 761502e..1f901af 100644 --- a/config/git/attributes +++ b/config/git/attributes @@ -1,4 +1,5 @@ *.org diff=org +*.ledger diff=ledger *.lisp diff=lisp *.el diff=lisp *.scm diff=lisp diff --git a/home-dots/dot-gitconfig b/home-dots/dot-gitconfig index 8335e8e..11cff2d 100644 --- a/home-dots/dot-gitconfig +++ b/home-dots/dot-gitconfig @@ -14,6 +14,9 @@ xfuncname = "^(\\*+ +.*)$" [diff "lisp"] xfuncname = "^[ \t]*(((;+ )|\\((cl-|el-patch-|ert-)?def(un|var|macro|method|custom|ine|test)).*)$" +[diff "ledger"] + xfuncname = "^([0-9]{4}-[0-9]+-[0-9]+ .*)$" + [difftool "image_diff"] cmd = compare $REMOTE $LOCAL png:- | montage -font Liberation-Sans -tile 3x -geometry 400x -label "reference" $LOCAL -label "diff" - -label "current--%f" $REMOTE x: [diff] |