Closed GoogleCodeExporter closed 9 years ago
We probably should use our PatternString class which uses ${foo} for
string expansions rather than %foo%, because it then matches what
we do in the LDAP section. But otherwise I agree that we can do a
more generic configuration approach here.
However, gitweb and cgit are the two "top dogs" when it comes to
web based viewers. They are popular enough that we should have
configuration settings out of the box for them, just like we do with
Active Directory and OpenLDAP when it comes to our LDAP setup.
So I also want to embed the cgit rules into the code.
Original comment by sop@google.com
on 27 Dec 2009 at 11:07
I wasn't aware of the PatternString class and its uses (having not used LDAP
support)
otherwise I would have suggested that as it makes sense to keep everything as
similar
as possible.
Original comment by Shane...@gmail.com
on 27 Dec 2009 at 11:11
I've submitted a patch for this at https://review.source.android.com/13074
(Change-Id
Ic681af1300b9c7cbae1f0f0ce31a5272378feac6).
It adds 4 new settings to the [gitweb] block, `type`, `revision`, `project` and
`branch`
type can be either "gitweb", "cgit" or "custom". (If ommited, or blank,
"gitweb" is
assumed, anything else will disable the gitweb links)
If custom is used, then patterns must be defined such as:
[gitweb]
revision = ${project}/commit/?id=${commit}
project = ${project}/summary
branch = ${project}/log/?h=${branch}
Original comment by Shane...@gmail.com
on 28 Dec 2009 at 5:09
See change Ic681af1300b9c7cbae1f0f0ce31a5272378feac6
Original comment by sop@google.com
on 29 Dec 2009 at 2:42
Original comment by sop@google.com
on 29 Dec 2009 at 2:54
Original comment by sop@google.com
on 28 Mar 2012 at 2:55
Original issue reported on code.google.com by
Shane...@gmail.com
on 27 Dec 2009 at 10:00