ymattw / ydiff

View colored, incremental diff in workspace or from stdin with side by side and auto pager support
Other
873 stars 62 forks source link

Temporarily unset GIT_EXTERNAL_DIFF when invoking git diff. #24

Closed killarny closed 11 years ago

killarny commented 11 years ago

When the git diff command is customized through setting GIT_EXTERNAL_DIFF in the environment, the output of cdiff is broken and defaults to the output of the tool git has been configured to use.

Temporarily unsetting this variable when cdiff invokes git diff fixes the issue.

killarny commented 11 years ago

This is meant to be attached to issue #23, but I don't know how to do that.

ymattw commented 11 years ago

Could you try git -c diff.external= diff? It should override the setting with empty string. Commit to your branch patah-1 and refer "issue #23" in commit message should be able to attach to that issue.