summaryrefslogtreecommitdiff
path: root/t/t0021-conversion.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <johannes.sixt@telecom.at>2007-10-19 21:48:05 +0200
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-10-21 01:30:42 -0400
commit7683b6e81fa0f1f55d4974d69fb87c7c7b6b394e (patch)
tree84ad5197c3affed0a06bb51c3dd1ae115bbde0ca /t/t0021-conversion.sh
parentt0021-conversion.sh: Test that the clean filter really cleans content. (diff)
downloadtgif-7683b6e81fa0f1f55d4974d69fb87c7c7b6b394e.tar.xz
Avoid a dup2(2) in apply_filter() - start_command() can do it for us.
When apply_filter() runs the external (clean or smudge) filter program, it needs to pass the writable end of a pipe as its stdout. For this purpose, it used to dup2(2) the file descriptor explicitly to stdout. Now we use the facilities of start_command() to do it for us. Furthermore, the path argument of a subordinate function, filter_buffer(), was not used, so here we replace it to pass the fd instead. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 't/t0021-conversion.sh')
0 files changed, 0 insertions, 0 deletions