From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luke Crook Subject: Re: Using babel to generate a commit log Date: Wed, 30 Mar 2011 21:58:47 +0000 (UTC) Message-ID: References: <8762r0s6q2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=47146 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q53Pr-0001A1-I4 for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 17:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q53Pq-0005S2-66 for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 17:59:03 -0400 Received: from lo.gmane.org ([80.91.229.12]:40140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q53Pp-0005Rn-QG for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 17:59:02 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q53Po-0006Up-S9 for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 23:59:00 +0200 Received: from 147.21.8.1 ([147.21.8.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Mar 2011 23:59:00 +0200 Received: from luke by 147.21.8.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Mar 2011 23:59:00 +0200 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 Eric Schulte gmail.com> writes: > > Luke Crook balooga.com> writes: > > > I have written the following code that uses the Emacs vc-* commands to generate > > a commit log. > Is there a reason this processing takes place using Emacs Lisp rather > than a simple shell code block, the following alternative should be > simpler and more robust. > > #+begin_src sh :exports results :results output > git log -1 > #+end_src I wanted to abstract away the actual vcs used so that this code could be used by others having a different vcs. In my case I only want the commits for the file being exported and not the previous 'n' commits. I have all my specs in the same git repo. -Luke