emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Org and git blame integration?


From: Martin Pohlack
Subject: Re: [Orgmode] Org and git blame integration?
Date: Thu, 03 Dec 2009 09:17:25 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Hi Jason,

Jason Dunsmore wrote:
[...]

> 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?

I'm not sure how git blame would help with finding stuck projects, but
if you tweak the output to be similar to this:

  <file>:<line>: message/string

or

  <file>:<line>:<col>: message/string

You could call the script from a compile buffer (M-x compile).  In this
buffer, this kind of output is linked back to the original files and you
could iterated over the found lines.

Cheers,
Martin Pohlack




reply via email to

[Prev in Thread] Current Thread [Next in Thread]