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

Re: [PATCH 7/9] notes: support an external command to display notes

From
Siddh Raman Pant <siddh.raman.pant@oracle.com>
Date
May 21, 2026, 04:12 UTC
Message-ID
<4086055f59eec99f94847a1b37c684a084f08e0b.camel@oracle.com>
In-Reply-To
<ag5b4O7-k-3QBR4W@fruit.crustytoothpaste.net>
On Thu, May 21 2026 at 06:42:00 +0530, brian m. carlson wrote:
Show 6 quoted lines
> > Assisted-by: Codex:gpt-5.5-xhigh-fast
> 
> Just a question here: was this written in whole or in part by Codex, or
> was it just used as a reference to ask questions?  I ask because the
> style of notes-external.c differs quite a bit from the style we use (for
> one, the horizontal rule comments) and we have this in

AI tools typically don't generate comments in code like in this series, you can see by trying out for yourself. Each comment is hand-written by me. Sorry, I'll remove those lines in v2 after this discussion.

AI was used for review, and providing the initial skeletal, which I changed significantly.

Show 14 quoted lines
> SubmittingPatches:
> 
>     The Developer's Certificate of Origin requires contributors to certify
>     that they know the origin of their contributions to the project and
>     that they have the right to submit it under the project's license.
>     It's not yet clear that this can be legally satisfied when submitting
>     significant amount of content that has been generated by AI tools.
> 
>     [...]
> 
>     To avoid these issues, we will reject anything that looks AI
>     generated, that sounds overly formal or bloated, that looks like AI
>     slop, that looks good on the surface but makes no sense, or that
>     senders don’t understand or cannot explain.
Please tell me why this change is a slop and doesn't make sense.

If I wanted to mislead here, I would not have used the "Assisted-by" trailer, which is now being used in kernel land:

https://www.kernel.org/doc/html/latest/process/submitting-patches.html#using-assisted-by

There have already been commits in the git.git history having the Assisted-by trailer.

> I'll note that it also has a lot of global variables, which are common
> in the codebase but we're trying to move away from, 
Is there a new facility to store the config without a global variable?
If the issue is the number, I can make a housing struct if you want.
> and it's more
> verbose in commenting than we'd normally see elsewhere in the codebase.

I added comments to explain the code clearly as it's being followed, especially since this is a new feature and I wanted the intent to be clear.

If you could tell me which comments to remove, that would be great.

Thanks, Siddh

Previous: brian m. carlsonNext: brian m. carlson
Message 22 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. Junio C HamanoMay 19, 2026
  4. Siddh Raman PantMay 20, 2026
  5. Junio C HamanoMay 21, 2026
  6. Siddh Raman PantMay 21, 2026
  7. 4/9 run-command: add support for timeout in command finisherSiddh Raman Pant, May 19, 2026
  8. Johannes SixtMay 21, 2026
  9. Oswald BuddenhagenMay 21, 2026
  10. Siddh Raman PantMay 21, 2026
  11. Johannes SixtMay 21, 2026
  12. Junio C HamanoMay 22, 2026
  13. Siddh Raman PantMay 22, 2026
  14. Jeff KingMay 22, 2026
  15. Siddh Raman PantMay 22, 2026
  16. 5/9 wrapper: add support for timeout and deadline in read helpersSiddh Raman Pant, May 19, 2026
  17. 6/9 t3301: cover generic displayed notes behaviorSiddh Raman Pant, May 19, 2026
  18. 7/9 notes: support an external command to display notesSiddh Raman Pant, May 19, 2026
  19. Junio C HamanoMay 20, 2026
  20. Siddh Raman PantMay 20, 2026
  21. brian m. carlsonMay 21, 2026
  22. Siddh Raman PantMay 21, 2026
  23. brian m. carlsonMay 21, 2026
  24. 2/9 notes: convert raw arg in format_display_notes() to boolSiddh Raman Pant, May 19, 2026
  25. 3/9 wrapper: add sleep_nanosecSiddh Raman Pant, May 19, 2026
  26. Junio C HamanoMay 19, 2026
  27. Siddh Raman PantMay 20, 2026
  28. 8/9 Documentation: document external notes command optionsSiddh Raman Pant, May 19, 2026
  29. 9/9 t: add tests for external notes commandSiddh Raman Pant, May 19, 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.