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

Re: [External] Using Git as a Database

From
Eemail@mateuszwielgos.com <email@mateuszwielgos.com>
Date
Sep 23, 2024, 12:32 UTC
Message-ID
<0D0BB87D-9BF0-48BA-8F2D-83F8D326ECEC@mateuszwielgos.com>
In-Reply-To
<CAG1j3zEg47RLYrVfJQi7WubgcdtbK2RWFBtj5rd8NtkPyXU5Rg@mail.gmail.com>
Thank you for your reply, Han. The problem that I have with ‘—allow-empty’ is that the resulting commit is not associated with any particular file. I tried ‘git commit —allow-empty myfile.txt’ but the file argument is effectively ignored. ‘git log myfile.txt’ does not show the empty commit.
Show 7 quoted lines
> On Sep 22, 2024, at 10:48 PM, 韩仰 <hanyang.tony@bytedance.com> wrote:
> 
> You can use the --allow-empty option in git-commit to allow
> such commits.
> 
> Thanks,
> Han
Previous: 韩仰Next: Andreas Schwab
Message 3 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.