]> khamidou — GitHub mirrors - arcanist.git/commit
Disable 'textconv' when diffing
authorepriestley <git@epriestley.com>
Sun, 29 May 2011 17:45:18 +0000 (10:45 -0700)
committerepriestley <git@epriestley.com>
Tue, 31 May 2011 19:13:07 +0000 (12:13 -0700)
commit5b6fbf70e05902204ec66f37c01a4ad65fe81a38
tree89ad0b29c6fe2d3244c94aba17157d371a113e22
parent857f08ae47f488978cf8c8cc717245daa40bc7c4
Disable 'textconv' when diffing

Summary:
Adds "--no-textconv" to all 'git diff' commands so we don't invoke textconv. See
T178 for discussion.

Test Plan:
Added something like this to .gitattributes:

  *.txt diff=uppercase

And then this to .git/config:

  [diff "uppercase"]
    textconv = /path/to/uppercase

...where "uppercase" is a script which takes a file and emits an uppercase
version of it.

Then I added a "wisdom.txt" text file:

  The cow goes "moo".
  The duck goes "quack".

Without this patch, the file appears in uppercase in Differential, i.e. textconv
runs. With this patch, it appears as the original text.

Reviewed By: tuomaspelkonen
Reviewers: tuomaspelkonen, jungejason, aran
CC: elgenie, aran, tuomaspelkonen
Differential Revision: 372
src/repository/api/git/ArcanistGitAPI.php