git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 16:54 UTC

Re: [PATCH 3/9] wrapper: add sleep_nanosec

From
Siddh Raman Pant <siddh.raman.pant@oracle.com>
Date
May 20, 2026, 07:07 UTC
Message-ID
<56552f593c7fed411af24413e4d3e77a34828451.camel@oracle.com>
In-Reply-To
<87qzn7q7qj.fsf@gitster.g>
On Wed, May 20 2026 at 05:20:44 +0530, Junio C Hamano wrote:
> The space above the signed-off-by line should be utilized to explain
> why we want this change.  For the purpose of this series, why do we
> want to sleep at nanosecond precision?

The current time returned by getnanotime() is in nanoseconds which is used for deadline, so to avoid re-casting in helper code path we try to stay in nanosecond world. The caller can store in ns once and reuse it everytime.

Thanks, Siddh

Previous: Siddh Raman PantNext: Junio C Hamano
Message 16 of 29 in “Add support for an external command for fetching notes”
  1. 0/9 Add support for an external command for fetching notesSiddh Raman Pant, May 19, 2026
  2. 1/9 Documentation/git-range-diff: add missing notes options in synopsisSiddh Raman Pant, May 19, 2026
  3. 4/9 run-command: add support for timeout in command finisherSiddh Raman Pant, May 19, 2026
  4. 5/9 wrapper: add support for timeout and deadline in read helpersSiddh Raman Pant, May 19, 2026
  5. 6/9 t3301: cover generic displayed notes behaviorSiddh Raman Pant, May 19, 2026
  6. 7/9 notes: support an external command to display notesSiddh Raman Pant, May 19, 2026
  7. 2/9 notes: convert raw arg in format_display_notes() to boolSiddh Raman Pant, May 19, 2026
  8. 3/9 wrapper: add sleep_nanosecSiddh Raman Pant, May 19, 2026
  9. 8/9 Documentation: document external notes command optionsSiddh Raman Pant, May 19, 2026
  10. 9/9 t: add tests for external notes commandSiddh Raman Pant, May 19, 2026
  11. Junio C HamanoMay 19, 2026
  12. Junio C HamanoMay 19, 2026
  13. Junio C HamanoMay 20, 2026
  14. Siddh Raman PantMay 20, 2026
  15. Siddh Raman PantMay 20, 2026
  16. Siddh Raman PantMay 20, 2026
  17. Junio C HamanoMay 21, 2026
  18. brian m. carlsonMay 21, 2026
  19. Siddh Raman PantMay 21, 2026
  20. Siddh Raman PantMay 21, 2026
  21. Johannes SixtMay 21, 2026
  22. Oswald BuddenhagenMay 21, 2026
  23. Siddh Raman PantMay 21, 2026
  24. Johannes SixtMay 21, 2026
  25. brian m. carlsonMay 21, 2026
  26. Junio C HamanoMay 22, 2026
  27. Jeff KingMay 22, 2026
  28. Siddh Raman PantMay 22, 2026
  29. Siddh Raman PantMay 22, 2026

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.