unicode - Making git diff (NOT difftool) and git log -p work with *.sql files and Windows PowerShell -


i know how configure external tool view differences call git difftool. however, if want see 'dump' of changes entire history of file console window, wanted use git log -p <filename>. problem i'm having *.sql files in windows environment. difftool (using my configured tool) correctly handles unicode file, diff not, think git log -p uses under hood.

is there way make git diff 'work' files of given/configured extension know there ansi characters , show actual text changes outputted console (in case windows powershell hosted inside console).

note: i've looked @ this question/answer making git diff recognize utf16, couldn't work (both iconv , mktemp not present on system).

maybe approach should continue examine/experiment possible solution? or solution ensure files know ansi characters present saved ansi - disappointing lose history have on *.sql files (and other files i'm not aware of stored unicode right - i'm newly converted git user visual sourcesafe, haven't had view differences on file types modify yet).

take @ git attributes. can customize how files handled diff , other aspects.

how helps


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -