On Friday 2007, March 02, Linus Torvalds wrote:
On Fri, 2 Mar 2007, Andy Parkins wrote:
quoted
On Friday 2007, March 02, Linus Torvalds wrote:
quoted
Yes. How about just having the built-in git pager do the right
thing?
Perfect. This is absolutely the right thing to do I think.
Well, it would be perfect, except it's rather hard to do. Right now
we simply don't have any way to tell the pager what to do with the
data, and we'd need to do some communications passing thing to let it
know.
There is an alternative. pager.c:run_pager() runs a select() to wait
for data before it actually exec()s the pager. What if after the
select() the process didn't exec(), but read the first line to decide
what pager to exec?
Then, when pager_in_use is true, the sending process writes, say, a
handler identifier which tells the pager process what to exec().
Andy
--
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com