From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Dunsmore Subject: Org and git blame integration? Date: Wed, 02 Dec 2009 18:13:11 -0600 Message-ID: <87r5rcncdk.fsf@riotblast.dunsmor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFzQD-0008Pl-H9 for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 19:19:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFzQC-0008Nz-D0 for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 19:19:48 -0500 Received: from [199.232.76.173] (port=36607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFzQB-0008Na-Oi for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 19:19:47 -0500 Received: from deathroller.dunsmor.com ([98.129.169.48]:48441) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFzJp-0006TR-MM for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 19:13:14 -0500 Received: from riotblast.dunsmor.com (216-188-253-113.dyn.grandenetworks.net [216.188.253.113]) by deathroller.dunsmor.com (Postfix) with ESMTP id B34768C0E0 for ; Wed, 2 Dec 2009 18:14:44 -0600 (CST) 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, I used to use state change logging (configured with "!" in org-todo-keywords), but I didn't like the way it cluttered my org files and I rarely referred to the logged times. As an alternative, I found the git-blame utility to be useful for finding out stuck projects and tasks in my Org files. For example, the following command will sort each line in an org file by the date it was committed: git blame todo.org|cut -c29-|cut -c 20-25 --complement|sort -n|less -S I made a couple of bash functions based on this: function org_history () { git blame $1|cut -c29-|cut -c 20-25 --complement|sort -n|less -S } # Limit the output to Org headlines function org_history_headings () { git blame $1|grep ') \*'|cut -c29-|cut -c 20-25 --complement|sort -n|less -S } But I still have to go back and forth between the git-blame output and Org. It'd be nice if I could view and edit the git-blame output in org-mode, group the sort by a certain level heading, cycle body visibility, etc... I'm not sure how difficult that would be to implement. Does this sound like a reasonable feature request? Regards, Jason