diff --git a/doc/todo/Improving_diffdriver_--text/comment_1_a38b0f30f9b4011d703e70c093f139ab._comment b/doc/todo/Improving_diffdriver_--text/comment_1_a38b0f30f9b4011d703e70c093f139ab._comment new file mode 100644 index 0000000000..a116744826 --- /dev/null +++ b/doc/todo/Improving_diffdriver_--text/comment_1_a38b0f30f9b4011d703e70c093f139ab._comment @@ -0,0 +1,26 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2023-07-05T18:55:33Z" + content=""" +If your annexed files have a common extension you can match them in +.gitattributes that way. + +I've added support for passing options for diff. Eg: + + git annex diffdriver --text -- --color --text -- + +As for passing --color automatically, I don't know if every diff(1) supports +--color, and this would be more complexity. + +I doubt that most users would appreciate diff --text by default for large +binary files. That is really getting into territory that an external +diff driver program can handle much better. Eg, if you're diffing jpegs and +also zip files, you can write a diff driver program that lists the contents of +zip files and passes that to diff, and that uses imagemagick +`compare -compose` or +to show a visual diff between two jpegs. + +The point off the --text option is that sometimes you know you have plain +text and so writing such a program is not necessary. +"""]]