From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: Keeping org files under git - trimming the repository Date: Wed, 5 Aug 2009 15:53:40 +0900 Message-ID: <200908051553.40145.torsten.wagner@googlemail.com> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYaNo-0008Tk-KS for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:53:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYaNj-0008Q7-VQ for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:53:56 -0400 Received: from [199.232.76.173] (port=40421 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYaNj-0008Q4-Tc for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:53:51 -0400 Received: from mx20.gnu.org ([199.232.41.8]:39915) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYaNj-0005RN-AU for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:53:51 -0400 Received: from rv-out-0708.google.com ([209.85.198.251]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYaNi-0007NF-Ol for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:53:50 -0400 Received: by rv-out-0708.google.com with SMTP id f25so2044549rvb.6 for ; Tue, 04 Aug 2009 23:53:49 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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: emacs-orgmode@gnu.org Hi, >About a year ago, I decided to learn how to write "macros" in lisp and >started by teaching myself about the after-save-hook. I added a hook >to auto commit every time I saved any org file. My simple, small text >file of todo items is now a giant git repository. please define giant :) compared to a plain copy of files under git. Please consider that every commit create a small overhead to store a commit. That means if you commit very small changes every minute or so... your git might blow up. Do you use any autosave function ? 1 one year saving (and commiting) every 15 min) means 35.000 commits if every auto-commit keeps the sentence "Auto-commit from my org-files" :this creates 29 bytes * 35.000 commits which ends up to be 1 MB just for storing the log-file text. Other values and things will add to this. So please check how many commits you have already. Repack and gc helps to clean up a bit of the overhead. As for your concerns to make it smaller again. If you are not interested in keeping the history of the files any more, most simply might be just create a new git repro, copy the actual versions of the files to this repro and add them to git. Best regards Totti