[RFC][PATCH] Show the diff in the commit messages
Goffredo Baroncelli
kreijack at tiscalinet.it
Tue Jul 10 20:28:53 BST 2007
Hi all,
I found sometime useful to add at the bottom of the commit message (the one
which will be discarded) the diff which I will commit. So I added the
option "--diff" to the commit command. Obviusly the diff is only a help for
providing a good commit message and it will not be recorded in the log.
Any thoughts ?
BR
Goffredo
$ ~/bazaar/repo/bzr-ci-verbose/bzr diff
=== added file '123'
--- 123 1970-01-01 00:00:00 +0000
+++ 123 2007-07-10 19:22:15 +0000
@@ -0,0 +1,2 @@
+line added
+line added
$ EDITOR=cat ~/bazaar/repo/bzr-ci-verbose/bzr ci --diff
added 123
-------------- This line and the following will be ignored --------------
added:
123
=== added file '123'
--- a/123 1970-01-01 00:00:00 +0000
+++ b/123 2007-07-10 19:22:15 +0000
@@ -0,0 +1,2 @@
+line added
+line added
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack at inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-ci-diff.diff
Type: text/x-diff
Size: 2872 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070710/9211a7c4/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070710/9211a7c4/attachment.pgp
More information about the bazaar
mailing list