3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Git for Windows だってきれいな差分を見たい for not MSYS

Last updated at Posted at 2016-06-23

うらやましい

Git2.9のキレイなdiffを出すためのconfig

Git for Windowsでもいけるらしい!

Git for Windows だってきれいな差分を見たい

notgood.png

(´・ω・`)

たぶんMSYSだとshbang読んで上手くいくんだろうけど、非MSYSなシェル(NYAOS)使っているとダメっぽい。

diff-highlightはPerlスクリプトである

good.png

明示的にperlで呼ぶ設定を書くといけた!

どっとはらい

訂正

PortableGitだとPortableGit/usr/bin/diff-highlightのパスに置くと解決してかつshで実行してくれるっぽい。

git.exeがまるでMSYSのように独自のパス解決してるっぽいですね。

というわけで、PortableGitの場合「Git for Windows だってきれいな差分を見たい」の

%USERPROFILE%AppData\AppData\Local\Programs\Git\usr\bin に diff-highlight として保存

PortableGit/usr/bin に diff-highlight として保存

と読み替えるとちゃんと動きます。

とっぴんぱらりのぷぅ

3
3
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?