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

Using Git as a Database

From
MWMateusz Wielgos <email@mateuszwielgos.com>
Date
Sep 23, 2024, 03:28 UTC
Message-ID
<4B2B1EC7-6B08-4B57-A50F-702C031C2792@mateuszwielgos.com>
Hello,
I would like to use Git as a database of sorts. Let’s say I want to track weight of something in a file. When the value changes I can commit the new one. I can also figure out all previous values. That’s awesome.
What I am having trouble with is… What if a measurement is taken but there’s no change? I want to commit a file that hasn’t changed.
The only workaround I figured out is to toggle the executable bit.
Is there anything else?

Thanks, Mateusz

Next: 韩仰
Message 1 of 6 in “Using Git as a Database”
  1. Mateusz WielgosSep 23, 2024
  2. 韩仰Sep 23, 2024
  3. email@mateuszwielgos.comSep 23, 2024
  4. Andreas SchwabSep 23, 2024
  5. rsbecker@nexbridge.comSep 23, 2024
  6. Sergey OrganovSep 25, 2024

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.