Skip to content

Commit

Permalink
Disable external diff tools when calling git diff
Browse files Browse the repository at this point in the history
External diffing tools are likely to produce output in a different
format than git diff, or output that is not intended for programmatic
consumption.
  • Loading branch information
bcc32 committed Mar 11, 2024
1 parent 1e9acc0 commit b2ced29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magit-todos.el
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ When SYNC is non-nil, match items are returned."
shell-command-to-string
string-trim)))
(unless (string-empty-p merge-base-ref)
(list "git" "--no-pager" "diff" "--no-color" "-U0" merge-base-ref))))
(list "git" "--no-pager" "diff" "--no-ext-diff" "--no-color" "-U0" merge-base-ref))))
:callback 'magit-todos--git-diff-callback)

(magit-todos-defscanner "find|grep"
Expand Down

0 comments on commit b2ced29

Please sign in to comment.