From: Sergey Organov <sorganov@gmail.com>
To: Mateusz Wielgos <email@mateuszwielgos.com>
Cc: git@vger.kernel.org
Subject: Re: Using Git as a Database
Date: Wed, 25 Sep 2024 19:47:50 +0300 [thread overview]
Message-ID: <87jzezhe89.fsf@osv.gnss.ru> (raw)
In-Reply-To: <4B2B1EC7-6B08-4B57-A50F-702C031C2792@mateuszwielgos.com> (Mateusz Wielgos's message of "Sun, 22 Sep 2024 22:28:26 -0500")
Mateusz Wielgos <email@mateuszwielgos.com> writes:
> 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.
As you are tracking weight or something like that over time, it's likely
useless without date, so just put time-stamp into the file as well:
85kg 2024-09-25 19:45:14
-- Sergey
prev parent reply other threads:[~2024-09-25 16:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 3:28 Using Git as a Database Mateusz Wielgos
2024-09-23 3:48 ` [External] " 韩仰
2024-09-23 12:32 ` email
2024-09-23 18:42 ` Andreas Schwab
2024-09-23 19:09 ` rsbecker
2024-09-25 16:47 ` Sergey Organov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jzezhe89.fsf@osv.gnss.ru \
--to=sorganov@gmail.com \
--cc=email@mateuszwielgos.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.