git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Quick description of possible gitattributes system

From
APAndy Parkins <andyparkins@gmail.com>
Date
Mar 2, 2007, 22:21 UTC
Message-ID
<200703022221.38309.andyparkins@gmail.com>
In-Reply-To
<Pine.LNX.4.64.0703021249010.3953@woody.linux-foundation.org>
On Friday 2007, March 02, Linus Torvalds wrote:
Show 11 quoted lines
> On Fri, 2 Mar 2007, Andy Parkins wrote:
> > On Friday 2007, March 02, Linus Torvalds wrote:
> > > 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
Previous: Johannes SchindelinNext: Andy Parkins
Message 17 of 20 in “Quick description of possible gitattributes system”
  1. Quick description of possible gitattributes systemAndy Parkins, Mar 1, 2007
  2. Brian GernhardtMar 1, 2007
  3. Andy ParkinsMar 2, 2007
  4. Brian GernhardtMar 2, 2007
  5. Andy ParkinsMar 2, 2007
  6. Brian GernhardtMar 2, 2007
  7. Robin RosenbergMar 1, 2007
  8. Junio C HamanoMar 2, 2007
  9. Junio C HamanoMar 2, 2007
  10. Andy ParkinsMar 2, 2007
  11. Andy ParkinsMar 2, 2007
  12. Jakub NarebskiMar 2, 2007
  13. Linus TorvaldsMar 2, 2007
  14. Andy ParkinsMar 2, 2007
  15. Linus TorvaldsMar 2, 2007
  16. Johannes SchindelinMar 2, 2007
  17. Andy ParkinsMar 2, 2007
  18. Andy ParkinsMar 2, 2007
  19. Junio C HamanoMar 3, 2007
  20. Jakub NarebskiMar 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.