From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Re: MORE: Using git via USB for personal org dir and other data files Date: Sun, 01 Mar 2009 16:07:41 +0100 Message-ID: <87iqmtmgci.fsf@kassiopeya.MSHEIMNETZ> References: <7bef1f890902272111l7611d157k984ca50251f20df6@mail.gmail.com> <871vti7klg.fsf@gollum.intra.norang.ca> <87r61ie3h9.fsf@kassiopeya.MSHEIMNETZ> <87skly5o18.fsf@gollum.intra.norang.ca> <87fxhydxll.fsf@kassiopeya.MSHEIMNETZ> <87eixi6o9x.fsf@kassiopeya.MSHEIMNETZ> <7bef1f890902281810n1ccda333yada4e62082bd92c8@mail.gmail.com> <87zlg655pk.fsf@kassiopeya.MSHEIMNETZ> <7bef1f890902281903xa296051xa844059dd4e392a7@mail.gmail.com> <7bef1f890902281904n48e02018lb7935e4defd8fe66@mail.gmail.com> <87r61hann9.fsf@legolas.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdnDe-00088C-FV for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 10:04:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdnDc-000880-UJ for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 10:04:42 -0500 Received: from [199.232.76.173] (port=52406 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdnDc-00087x-RZ for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 10:04:40 -0500 Received: from mail.gmx.net ([213.165.64.20]:50245) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LdnDc-0000oP-5F for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 10:04:40 -0500 In-Reply-To: <87r61hann9.fsf@legolas.norang.ca> (Bernt Hansen's message of "Sat, 28 Feb 2009 23:10:50 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode Mailinglist Bernt Hansen writes: >> =C2=A0=C2=A0=C2=A0 $ git clone -l --no-hardlinks --bare . /path/to/usb/s= tick > > I've never used -l --no-hardlinks when creating repos on my usb stuck. > vfat filesystems don't support hard links and you can't make use of > hard links across filesystems. That's true :) I just copy this from my every-day-git.org. Everything I don't work on anymore goes there to keep the number of workspaces at a minimum. I tend to start a lot of little projects as test balloons (or just out of curiousity) and keep them for reference. I'm always afraid to lose some trick I found and that does not make it into one of my real projects :) But even then, --no-hardlinks is not needed. It's a bad habbit even, since I waste disk space that way. Removing .git in my workspace will never remove any of the cloned (local, on same filesystem) repos, since files _are_ hard links, and the data is reachable as long, as at least one hard link exists (that's the difference between hard links and symbolic links). At least that's how I understand hard links on Linux. `du' does take that into account: $ mkdir test $ cd test $ touch file.c $ cat /some/file > link.c $ du -h 16K . $ ln file.c link.c $ du -h 16K . $ ln link.c link2.c $ du -h 16K . $ ls -l insgesamt 36 -rw-r--r-- 3 sebastian sebastian 8988 1. M=C3=A4r 16:02 file.c -rw-r--r-- 3 sebastian sebastian 8988 1. M=C3=A4r 16:02 link2.c -rw-r--r-- 3 sebastian sebastian 8988 1. M=C3=A4r 16:02 link.c No matter how many hard links I add: the disk usage stays the same. One more point for git! OK, I'll adjust my habbits :) Best, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de