[RFC] CommitTemplate (was Re: [ANN bzr-vim] syntax and ftplugin for bzr_log.* files)

Adeodato Simó dato at net.com.org.es
Fri Jul 28 03:06:26 BST 2006


* Martin Pool [Wed, 26 Jul 2006 13:38:49 +1000]:

> On 25 Jul 2006, Adeodato Simó <dato at net.com.org.es> wrote:
> > * Adeodato Simó [Tue, 25 Jul 2006 17:54:18 +0200]:

> > >     - a function to insert the diff of the files being commited into the
> > >       file.

> > Oh dear. I really wonder why didn't I think of doing this in a plugin
> > adding a --with-diff option to bzr commit instead, until right after
> > having sent the message. I guess this is what nights with little sleep
> > do to you.

> Actually I'd be happy to see such a thing as a patch (with tests :-) for
> bzr itself.

Okay. :) Only, I started and it felt awkward to add an option for
specifically that, and I ended up generalizing it a bit. This would be
my first intent to get a big hunk of code commited into mainline, so
let's see how it goes.

I'm sending a first revision, a bit rough and still without tests, to
hear what you think of it, and if it's worth going this way. If you
think so, then we can start going over all the necessary implementation
details. ;-)

Bundle attached. There is a branch at:

  http://people.debian.org/~adeodato/code/bzr/branches/commit_templates

All further updates will go only to the branch, unless requested to do
otherwise.

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
Mankind are very odd creatures: one half censure what they practice, the
other half practice what they censure; the rest always say and do as
they ought.
                -- Michel de Montaigne





More information about the bazaar mailing list