Respect copyright headers

Dimiter Naydenov dimiter.naydenov at canonical.com
Tue May 21 07:38:25 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

Recently Martin made a change to include copyright and licensing
comments in all Go files in the source. This was needed for packaging
reasons and compliance. I see increasing number of new commits not
respecting that, so if we keep doing this we'll need to do it again in
the near future. Please, let's stick to what's been agreed upon and add
these 2 lines for all new code:

// Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

In addition to make things easier for maintenance there's the excellent
bzr update-copyright plugin which can be used like this:

Install (if not present)
$ mkdir -p ~/.bazaar/plugins
$ bzr branch lp:bzr-update-copyright ~/.bazaar/plugins/update_copyright

Usage (once you add the 2 lines above):
$ bzr update-copyright

It'll update the years accordingly so you don't have to worry about
listing all of them.
On the LP page it's mentioned a pre-commit hook is also supported but I
couldn't find it or how to enable it.

Cheers,
Dimiter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRmyRwAAoJENzxV2TbLzHwF+sIAKyk5hSouchPVzYQFvK2too4
008qh2pkdImZ9d6S22LIcaXVF62BQJ+qG+PFUKkr2++i6wMrwbe3YZUM+nKac8aG
SHhWpxkRd8C6qSPI3ZTQYiXWr4tolxmNxAjFnRpBKzW6cvIltXtwvnXzrAY0Wd8Y
z8TyAYojXMBIkCUTXiMmk/5s66t0txqLUSjuNsAwGwwWvh9vpDCg75dcoKjdmI7P
k8aJ8D3a/GZrfyFBuLozP54oRTkRxeXy3eAEeJmuKYEWuv565qIV1UIMgfiyy/aG
u/r7j77B+lirl4r8rhJmaho59TDwuZe1EdG39nLSIIuvwVmcgtXcJn9MG2EwAjo=
=v7pM
-----END PGP SIGNATURE-----




More information about the Juju-dev mailing list