From: Junio C Hamano Date: Thu, 13 Nov 2008 05:50:41 +0000 (-0800) Subject: Merge branch 'jk/diff-convfilter-test-fix' X-Git-Tag: v1.6.1-rc1~63 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=459d60084fa463203d0adfc99cbf5d6fcd7edd43;p=git.git Merge branch 'jk/diff-convfilter-test-fix' * jk/diff-convfilter-test-fix: Avoid using non-portable `echo -n` in tests. add userdiff textconv tests document the diff driver textconv feature diff: add missing static declaration Conflicts: Documentation/gitattributes.txt --- 459d60084fa463203d0adfc99cbf5d6fcd7edd43 diff --cc Documentation/gitattributes.txt index eb648418e,314e2d32e..a172baf99 --- a/Documentation/gitattributes.txt +++ b/Documentation/gitattributes.txt @@@ -213,13 -213,12 +213,15 @@@ with `crlf`, and then `ident` and fed t Generating diff text ~~~~~~~~~~~~~~~~~~~~ +`diff` +^^^^^^ + - The attribute `diff` affects if 'git-diff' generates textual - patch for the path or just says `Binary files differ`. It also - can affect what line is shown on the hunk header `@@ -k,l +n,m @@` - line. + The attribute `diff` affects how 'git' generates diffs for particular + files. It can tell git whether to generate a textual patch for the path + or to treat the path as a binary file. It can also affect what line is + shown on the hunk header `@@ -k,l +n,m @@` line, tell git to use an + external command to generate the diff, or ask git to convert binary + files to a text format before generating the diff. Set::