{"action":"created","issue":{"url":"https://api.github.com/repos/chrisbra/vim-diff-enhanced/issues/3","labels_url":"https://api.github.com/repos/chrisbra/vim-diff-enhanced/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/chrisbra/vim-diff-enhanced/issues/3/comments","events_url":"https://api.github.com/repos/chrisbra/vim-diff-enhanced/issues/3/events","html_url":"https://github.com/chrisbra/vim-diff-enhanced/issues/3","id":60556689,"number":3,"title":"CustomDiff fails on with Windows gvim and cygwin git","user":{"login":"idbrii","id":43559,"avatar_url":"https://avatars.githubusercontent.com/u/43559?v=3","gravatar_id":"","url":"https://api.github.com/users/idbrii","html_url":"https://github.com/idbrii","followers_url":"https://api.github.com/users/idbrii/followers","following_url":"https://api.github.com/users/idbrii/following{/other_user}","gists_url":"https://api.github.com/users/idbrii/gists{/gist_id}","starred_url":"https://api.github.com/users/idbrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idbrii/subscriptions","organizations_url":"https://api.github.com/users/idbrii/orgs","repos_url":"https://api.github.com/users/idbrii/repos","events_url":"https://api.github.com/users/idbrii/events{/privacy}","received_events_url":"https://api.github.com/users/idbrii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-10T19:38:20Z","updated_at":"2015-03-11T17:25:15Z","closed_at":"2015-03-11T17:25:15Z","body":"CustomDiff fails on Win7 with gvim from vim.org (7.4.0) and cygwin git (2.1.1).\r\n\r\n\t:CustomDiff histogram\r\n\tEnhancedDiff: git diff Error executing \"git diff --diff-algorithm=histogram -U0 C:/Users/davidb/AppData/Local/Temp/VIoEC75.tmp C:/Users/davidb/AppData/Local/Temp/VInEC76.tmp\"\r\n\tEnhancedDiff: fatal: Invalid object name 'C'.\r\n\r\n(I get a similar failure with or without `set shellslash`. I haven't figured out changing 'shell' to bash, but that might fix it.)\r\n\r\nLooks like since the v:fname_in/out path names assume git will understand the same kinds of paths as gvim, but cygwin doesn't understand drive letters it all falls down. I'm not sure if there's something you want to fix (I should probably use msysgit, but it's too far removed from shell-useful).\r\n\r\nI can work around it by making the paths relative (in ~/.vim/after/plugin/enhanceddiff.vim) with `:cd $TEMP`:\r\n\r\n    if has('win32')\r\n        function! s:CustomDiffAlgComplete(A,L,P)\r\n            return \"myers\\nminimal\\ndefault\\npatience\\nhistogram\"\r\n        endf\r\n        command! -nargs=1 -complete=custom,s:CustomDiffAlgComplete CustomDiff :cd $TEMP | let &diffexpr='EnhancedDiff#Diff(\"git diff\", \"--diff-algorithm=<args>\")'|:diffupdate\r\n    endif\r\n\r\n\r\nOf course once I cd again (or immediately if I had autochdir enabled), then it's broken again."},"comment":{"url":"https://api.github.com/repos/chrisbra/vim-diff-enhanced/issues/comments/78311827","html_url":"https://github.com/chrisbra/vim-diff-enhanced/issues/3#issuecomment-78311827","issue_url":"https://api.github.com/repos/chrisbra/vim-diff-enhanced/issues/3","id":78311827,"user":{"login":"idbrii","id":43559,"avatar_url":"https://avatars.githubusercontent.com/u/43559?v=3","gravatar_id":"","url":"https://api.github.com/users/idbrii","html_url":"https://github.com/idbrii","followers_url":"https://api.github.com/users/idbrii/followers","following_url":"https://api.github.com/users/idbrii/following{/other_user}","gists_url":"https://api.github.com/users/idbrii/gists{/gist_id}","starred_url":"https://api.github.com/users/idbrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idbrii/subscriptions","organizations_url":"https://api.github.com/users/idbrii/orgs","repos_url":"https://api.github.com/users/idbrii/repos","events_url":"https://api.github.com/users/idbrii/events{/privacy}","received_events_url":"https://api.github.com/users/idbrii/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T17:25:15Z","updated_at":"2015-03-11T17:25:15Z","body":"Verified with test/4/ on 389e02e100ffedf7474ce8924512fac37f846a4d (with my workaround removed).\r\n\r\nThanks for the quick fix! I look forward to some tougher diffs to use this on."}}