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

Re: [RFC] Add posibility to preload stat information.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 21, 2013, 14:44 UTC
Message-ID
<7vtxo4byng.fsf@alter.siamese.dyndns.org>
In-Reply-To
<87vc8lyqz7.fsf@pctrast.inf.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
Show 7 quoted lines
> I think it would actually be a somewhat interesting feature if it
> interacted with GIT_PS1_SHOW*.  If you use these settings (I personally
> use SHOWDIRTYSTATE but not SHOWUNTRACKEDFILES), the prompt hangs while
> __git_ps1 runs git-status.  It should be possible to run a git-status
> process in the background when entering a repository, and displaying
> some marker ('??' maybe) in the prompt instead of the dirty-state info
> until git-status has finished.
This is somewhat interesting.

Perhaps we can introduce a helper binary that does what __git_ps1() does, with a --timeout=500ms option to say "I dunno (yet)", and keep priming the well in the background when it takes more than the specified amount of time?

Previous: Thomas RastNext: Phil Hord
Message 6 of 13 in “[RFC] Add posibility to preload stat information.”
  1. Fredrik GustafssonMar 20, 2013
  2. Jeff KingMar 20, 2013
  3. Junio C HamanoMar 20, 2013
  4. Jeff KingMar 20, 2013
  5. Thomas RastMar 21, 2013
  6. Junio C HamanoMar 21, 2013
  7. Phil HordMar 30, 2013
  8. Fredrik GustafssonMar 20, 2013
  9. Ramkumar RamachandraMar 20, 2013
  10. Fredrik GustafssonMar 20, 2013
  11. Ramkumar RamachandraMar 20, 2013
  12. Fredrik GustafssonMar 20, 2013
  13. Jeff KingMar 20, 2013

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.