[oe] shorter git URLs

Rolf Leggewie no2spam at nospam.arcornews.de
Mon Jul 28 12:38:52 UTC 2008


Hi,

it looks like the switch to git is coming nearer.  gitweb is nice and
fast.  But it produces rather long URLs.  I assume we'll want to point
to recipes and stuff often and gitweb is a convenient way to do that
publicly.  I suggest we implement a couple of apache rewrite rules.

a) file access against .dev
http://gitweb.openembedded.net/file/dev/$1
http://gitweb.openembedded.net/?p=org.openembedded.dev.git;a=blob_plain;f=$1;hb=HEAD

b) file access against .stable
http://gitweb.openembedded.net/file/stable/$1
http://gitweb.openembedded.net/?p=org.openembedded.stable.git;a=blob_plain;f=$1;hb=HEAD

c) directory access against .dev
http://gitweb.openembedded.net/dir/dev/$1
http://gitweb.openembedded.net/?p=org.openembedded.dev.git;a=tree;f=$1;hb=HEAD

d) directory access against .stable
http://gitweb.openembedded.net/dir/stable/$1
http://gitweb.openembedded.net/?p=org.openembedded.stable.git;a=tree;f=$1;hb=HEAD


I have not tested this out and I am not sure if this will be error-free.
What I am sure about is that this would be a nice thing to have.

Regards

Rolf





More information about the Openembedded-devel mailing list