Skip to contentSkip to conversation

shorter git URLs

DISCUSSION Rolf Leggewie 1 participant 1 message Jul 28, 2008

lore
Share & tools
lore
#0 lore raw

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