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

Re: [PATCH] Provide a way to flush git-diff-tree's output

From
Paul Mackerras <paulus@samba.org>
Date
May 18, 2006, 09:43 UTC
Message-ID
<17516.16805.281168.662330@cargo.ozlabs.ibm.com>
In-Reply-To
<7vmzdf6bj5.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano writes:
> Sounds low impact and sane.
> 
> I suspect the usual caveat on bidirectional pipe deadlock
> applies to the caller.  Does gitk do that?  The current code

Gitk will use non-blocking mode on the pipes to/from the git-diff-tree process, so there isn't a possibility of deadlock that I can see.

> seems to feed a pre-generated list with "open | cmd <<"
> construct to the command, so perhaps you are planning to change
> that?

That's for the "Find" function. I'm in the process of adding the code to let users enter a list of paths and have gitk highlight the commits affecting those paths. That will involve a separate invocation of git-diff-tree. To make it responsive, I'm only going to ask git-diff-tree about the commits that are visible on the screen - but I need git-diff-tree to give me an answer quickly, i.e. in less time than a human can perceive.

Thanks, Paul.

Previous: Junio C Hamano
Message 3 of 3 in “Provide a way to flush git-diff-tree's output”
  1. Provide a way to flush git-diff-tree's outputPaul Mackerras, May 18, 2006
  2. Junio C HamanoMay 18, 2006
  3. Paul MackerrasMay 18, 2006

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.