Skip to content

Instantly share code, notes, and snippets.

@spearce
spearce / gist:2503548
Created April 26, 2012 22:03
notify config in project.config
[notify "developers"]
email = group developers
email = user bob@example.com
email = dev-list@example.com
filter = visibleto:developers
changes = new
changes = merged
comments = all
[notify "boss"]
@spearce
spearce / gist:1895230
Created February 23, 2012 21:43
gerrit release notes log.pl
#!/usr/bin/perl
my $prio = shift;
my $curr = shift;
my @changes;
open(I,'-|','git','log','--reverse','--pretty=raw','--no-merges',"$prio..$curr");
while (<I>) {
die "Invalid line: $_" unless /^commit /;
/*
* Copyright (C) 2011, Chris Aniszczyk <caniszczyk@gmail.com>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution License v1.0 which
* accompanies this distribution, is reproduced below, and is
* available at http://www.eclipse.org/org/documents/edl-v10.php
*
* All rights reserved.