aboutsummaryrefslogtreecommitdiff
path: root/builtin-show-ref.c
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-10-19 21:48:05 +0200
committerShawn O. Pearce <spearce@spearce.org>2007-10-21 01:30:42 -0400
commit7683b6e81fa0f1f55d4974d69fb87c7c7b6b394e (patch)
tree84ad5197c3affed0a06bb51c3dd1ae115bbde0ca /builtin-show-ref.c
parenta0ae35ae2d92cc706f902227cb0f34e2a2f0fd50 (diff)
downloadgit-7683b6e81fa0f1f55d4974d69fb87c7c7b6b394e.tar.gz
git-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 'builtin-show-ref.c')
0 files changed, 0 insertions, 0 deletions