pager: drop "wait for output to run less" hack
commite8320f350f523c3219ff8ec639663193941af57d
authorJeff King <peff@peff.net>
Tue, 5 Jun 2012 08:56:04 +0000 (5 04:56 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Jun 2012 16:38:00 +0000 (5 09:38 -0700)
treefd9775cede092c35489dbf504607ed814f3e75c0
parent3fe4498197ced84886b4adaddf18f1109b477f8e
pager: drop "wait for output to run less" hack

Commit 35ce862 (pager: Work around window resizing bug in
'less', 2007-01-24) causes git's pager sub-process to wait
to receive input after forking but before exec-ing the
pager. To handle this, run-command had to grow a "pre-exec
callback" feature. Unfortunately, this feature does not work
at all on Windows (where we do not fork), and interacts
poorly with run-command's parent notification system. Its
use should be discouraged.

The bug in less was fixed in version 406, which was released
in June 2007. It is probably safe at this point to remove
our workaround. That lets us rip out the preexec_cb feature
entirely.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pager.c
run-command.c
run-command.h