Move the example code from doc/3 to contrib/gitweb/ and modify it to work with both wildcard and non-wildcard setups. Signed-off-by: Teemu Matilainen <teemu.matilainen@reaktor.fi>