emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jason Dunsmore <jason.public@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Org and git blame integration?
Date: Wed, 02 Dec 2009 18:13:11 -0600	[thread overview]
Message-ID: <87r5rcncdk.fsf@riotblast.dunsmor.com> (raw)

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

             reply	other threads:[~2009-12-03  0:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03  0:13 Jason Dunsmore [this message]
2009-12-03  8:17 ` Org and git blame integration? Martin Pohlack
2009-12-08  0:20 ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5rcncdk.fsf@riotblast.dunsmor.com \
    --to=jason.public@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).