Skip to content

sankantsu/git-diff-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-diff-image

!!NOTE!!: This fork is customized for gin-diff-image.nvim. Preview window is not displayed. Image is rendered by Neovim buffer if you use gin-diff-image.nvim plugin.

If you wnat to view image diffs in preview window, see original repository ewanmellor/git-diff-image.

Setup example

  • ~/.gitattribute
# Use custome diff driver `image` for image files.
*.jpeg diff=image
*.jpg diff=image
*.png diff=image
  • ~/.gitconfig
[core]
    # use ~/.gitattributes as global git attributes
	attributesfile = ~/.gitattributes
[diff "image"]
    # use `git_diff_image` script as diff driver `image`
	command = ~/ghq/github.com/sankantsu/git-diff-image/git_diff_image

About

Fork from ewanmellor/git-diff-image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%