emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Puneeth Chaganti <punchagan@gmail.com>
To: avdi@avdi.org
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Git Changelogs
Date: Fri, 18 Feb 2011 01:19:55 +0530	[thread overview]
Message-ID: <AANLkTi=SYHeORbbQU10m1GsncQvdLK=DH1ZemPnLS7zh@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimkBGJU7-M64A_Zo69d1YC9QaFz=ahnE-2ocmds@mail.gmail.com>

Hi Avdi,

On Thu, Feb 17, 2011 at 9:23 PM, Avdi Grimm <groups@inbox.avdi.org> wrote:
> Is there an easy way to have a version-controlled Org file suck in its
> own changelog and present it as a list of entries?

Using babel, you could do that.

Try out the example below which prints a list of the changes to my
notes.org file as a list.

#+begin_src sh :results output raw
  git log --pretty=format:"+ %s by %an" notes.org
#+end_src

Look at the PRETTY-FORMATS section in the help of git-log [1] to tweak
your git log output.

HTH,
Puneeth

[1] - http://www.kernel.org/pub/software/scm/git/docs/git-log.html

      reply	other threads:[~2011-02-17 19:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17 15:53 Git Changelogs Avdi Grimm
2011-02-17 19:49 ` Puneeth Chaganti [this message]

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='AANLkTi=SYHeORbbQU10m1GsncQvdLK=DH1ZemPnLS7zh@mail.gmail.com' \
    --to=punchagan@gmail.com \
    --cc=avdi@avdi.org \
    --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).