From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Org and git blame integration? Date: Mon, 7 Dec 2009 17:20:49 -0700 Message-ID: <20524da70912071620h4b975394n84a53e84586522ab@mail.gmail.com> References: <87r5rcncdk.fsf@riotblast.dunsmor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHnp2-0002qr-2m for emacs-orgmode@gnu.org; Mon, 07 Dec 2009 19:20:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHnox-0002qP-Gq for emacs-orgmode@gnu.org; Mon, 07 Dec 2009 19:20:55 -0500 Received: from [199.232.76.173] (port=43746 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHnox-0002qM-EE for emacs-orgmode@gnu.org; Mon, 07 Dec 2009 19:20:51 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:60388) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHnox-0000VK-Iq for emacs-orgmode@gnu.org; Mon, 07 Dec 2009 19:20:51 -0500 Received: by fxm5 with SMTP id 5so5223048fxm.8 for ; Mon, 07 Dec 2009 16:20:49 -0800 (PST) In-Reply-To: <87r5rcncdk.fsf@riotblast.dunsmor.com> 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: Jason Dunsmore Cc: emacs-orgmode@gnu.org Some type of git integration here would be nice. I like the idea of eliminating most todo state changes, because then there isn't an issue with ellipses on empty headilnes.. I.e. no need to cycle to see if a headline is empty because it only contains a logbook drawer. Of course, you will still need semi-manual interaction to track a headline that changes and has a todo state change in the same commit. On 2009-12-02, Jason Dunsmore wrote: > 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 > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Q: How many CDC "scientists" does it take to change a lightbulb? A: You only think it's dark. [CDC has denied ME/CFS for 25 years] ================================================================= Retrovirus: http://www.wpinstitute.org/xmrv/xmrv_qa.html