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

Re: Suggestion to provide a way for screenshots to be added to commit messages

From
Teng Long <dyroneteng@gmail.com>
Date
May 6, 2023, 11:54 UTC
Message-ID
<20230506115437.61969-1-tenglong.tl@alibaba-inc.com>
In-Reply-To
<CA+JQ7M-MHvtLf=p5+JWEG6ec4r-X0JzFxV0eVhrKNWv8jNLX1g@mail.gmail.com>
Erik Cervin Edin <erik@cervined.in> writes:
>Maybe something similar to what git notes does 🤔
>Then again, maybe it's easier to just do this differently.
>Like keeping track of this using a markdown wiki in the repository and
>just storing the images as a part of the project instead

git notes subcommand can save binary file in note message. We can find some clues in git-notes.txt and t3304-notes-man.sh. By default, the file specified by `-F` will do stripspace for the whole file content, for example, if the binary file contains consecutive newlines it will be compressed into only one, in another word, the binary file which recover from this like note message will become corrupt, so I made patch[1] to support an option `--[no-]stripspace` will solve this.

I'm not sure the scenario of using git note to save the binary is suitable, but the above context may give some ideas, maybe.

Thanks.
[1] https://public-inbox.org/git/20063beab1893535f03e13b75058d501ed9f2faa.1682671758.git.dyroneteng@gmail.com/
Previous: Erik Cervin EdinNext: Shafiq Jetha
Message 4 of 5 in “Suggestion to provide a way for screenshots to be added to commit messages”
  1. Shafiq JethaMay 5, 2023
  2. rsbecker@nexbridge.comMay 5, 2023
  3. Erik Cervin EdinMay 6, 2023
  4. Teng LongMay 6, 2023
  5. Shafiq JethaMay 8, 2023

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.