Marcelo de Moraes Serpa <celose...@gmail.com> 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

-- 
There are no threads in a.b.p.erotica,  so there's no  gain in using a
threaded news reader.
(Unknown source)

Attachment: pgpeyhmsGPGVM.pgp
Description: PGP signature

Reply via email to