From 0737df7e83efb66410e1a40d64bfa7c664a1d35b Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sun, 29 Jan 2023 12:45:39 +0100 Subject: diff ledger files by posting --- config/git/attributes | 1 + home-dots/dot-gitconfig | 3 +++ 2 files changed, 4 insertions(+) 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] -- cgit v1.2.3