From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Philip Chan Subject: Re: Store org-files in a git repository? Date: Fri, 7 Sep 2012 20:26:45 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA8s5-0006fI-4k for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 20:26:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TA8s4-00048P-62 for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 20:26:01 -0400 Received: from blu0-omc1-s27.blu0.hotmail.com ([65.55.116.38]:3585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA8s4-00048J-2m for emacs-orgmode@gnu.org; Fri, 07 Sep 2012 20:26:00 -0400 In-Reply-To: (Marcelo de Moraes Serpa's message of "Fri, 7 Sep 2012 18:57:53 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Marcelo de Moraes Serpa writes: Hello Marcelo and Moritz: > I have not done yet, but I do use git for my org repo; however, I > commit every 6 hours via cron (and the commit message is a timestamp). I have my org repo under git too. However, instead of a cron job, I use an after-save-hook: #+BEGIN_SRC emacs-lisp ;;Git integration (defun git-commit () (when (eq major-mode 'org-mode) (shell-command "git commit -a -m 'Auto commit.'"))) (add-hook 'after-save-hook 'git-commit) #+END_SRC Also, I am not too sure how practical Moritz's idea is. In order to get that fine level of commit, org-mode will have to save the file after each operation. Cheers, Charles =2D-=20 There are no threads in a.b.p.erotica, so there's no gain in using a threaded news reader. (Unknown source) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEUEARECAAYFAlBKkM4ACgkQ3epPyyKbwPZyJQCeN0Nz4KYNXycHUNEDNmfp05my XIYAl157gaoaPkUxxd0RlNFg9XmVjek= =wyay -----END PGP SIGNATURE----- --=-=-=--