From: "\"J. David Ibáñez\"" <jdavid@itaapy.com>
To: Andreas Ericsson <ae@op5.se>
Cc: git@vger.kernel.org
Subject: Re: Use case: GIT to manage transactions in a CMS?
Date: Fri, 17 Feb 2006 12:10:52 +0100 [thread overview]
Message-ID: <43F5AF3C.5050507@itaapy.com> (raw)
In-Reply-To: <43F31454.8060704@op5.se>
Andreas Ericsson wrote:
> J. David Ibáñez wrote:
>
>> Hello,
>>
>> I am working on a project (a content management system) where the data
>> is stored as files and folders.
>>
>> Currently, for persistance and transactions we use the ZODB [1] object
>> database. But our goal is to move away from the ZODB and use directly
>> the file system, as it will allow us to use all the good unix tools.
>>
>> We are using git to manage the source code. And now we are exploring git
>> to see if it can do the job of transactions, so that each transaction in
>> the system will be a git commit.
>>
>> One problem we have found is that we can not commit empty directories
>> (what
>> we need to do). Any idea how to solve or work-around this constraint?
>>
>
> $ touch empty/dir/.placeholder
>
>
I would like to have something better, no so much of a work-around.
Maybe I could hack something, are there some docs explaining the
internal format of git objects? or, where to look in the source to
find this info?
>> Any suggestions and input on this exotic use case for git will be very
>> welcomed.
>>
Another point, the application is written in Python, right now I
have to open a shell to run the git commands.
It would be nice if the core functionality was implemented in a C
library, then with a Python wrapper I could use git without going
through the shell.
Is this something to be expected? There will be a "libgit" sometime
in the future?
> Sounds cool. I'll have to give it a whirl when you've got something to
> show.
>
Probably I will have to hack something else to have ACID transactions,
in the short-term. But "git" is at least interesting, since it could
open a world of possibilities. If I ever have something to show, I will
tell you.
--
J. David Ibáñez
Itaapy <http://www.itaapy.com> Tel +33 (0)1 42 23 67 45
9 rue Darwin, 75018 Paris Fax +33 (0)1 53 28 27 88
next prev parent reply other threads:[~2006-02-17 11:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-15 10:44 Use case: GIT to manage transactions in a CMS? "J. David Ibáñez"
2006-02-15 11:45 ` Andreas Ericsson
2006-02-17 11:10 ` "J. David Ibáñez" [this message]
2006-02-17 11:44 ` Junio C Hamano
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=43F5AF3C.5050507@itaapy.com \
--to=jdavid@itaapy.com \
--cc=ae@op5.se \
--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.