summaryrefslogtreecommitdiff
path: root/git-arr
Commit message (Collapse)AuthorAgeFilesLines
* Work around HTTPError status code issuesAlberto Bertogli2013-11-031-1/+11
| | | | | | | | | | | It turned out that bottle.py is not backwards-compatible with the status code change: older versions encode the status in e.status; newer ones use e.status_code (and e.status became a string). This patch works around that by trying to pick up which of the two variants we have, and deciding accordingly. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Show the age of a repository in the index, via javascriptAlberto Bertogli2013-11-021-0/+2
| | | | | | | | | This patch adds the age of the repository to the index view, using javascript to give a nice human string for the age. When javascript is not available, the element remains hidden. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Use the status_code attribute to tell 404s appartAlberto Bertogli2013-11-021-1/+1
| | | | | | | | Newer versions of bottle have a string in the e.status attribute, and the status code can be found in e.status_code, which should be backwards compatible. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Make embedding markdown and images configurable per-repoAlberto Bertogli2013-11-021-0/+5
| | | | | | | | This patch introduces the embed_markdown and embed_images configuration options, so users can enable and disable those features on a per-repository basis. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Add embed data URI image blob supportVanya Sergeev2013-11-021-0/+2
|
* Add markdown blob supportVanya Sergeev2013-11-021-0/+2
|
* Allow calling the executable from any directoryAlberto Bertogli2013-03-101-5/+18
| | | | | | | | | | | | | | | When the tool is invoked like /path/to/git-arr, it currently fails because both the serving of static files and bottle templates assume they're on the current working directory. This patch fixes that by computing the directories based on the executable location. Note this is assuming the static directory and the templates live next to the executable, which will not always be the case, and eventually it should be configurable; but it's ok for the time being. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Use "cloneurl" as a default for git_urlAlberto Bertogli2013-03-101-1/+1
| | | | | | This patch makes git_url have the same default as gitweb. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Fix the "--only" optionAlberto Bertogli2013-03-101-5/+9
| | | | | | | | | | | This patch fixes the --only option, and makes it avoid generating the top-level index so we don't get a broken one with only the specified repositories. The intention is that this option is used in hooks to update the views after a commit or push. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Use heuristics to decide what to colorizeAlberto Bertogli2012-11-181-1/+1
| | | | | | | In practise pygments seems to have a very hard time processing large files and files with long lines, so try to avoid using it in those cases. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Improve the way we find repo pathsAlberto Bertogli2012-11-111-8/+34
| | | | | | | | | | This patch improves the way we find the path to the repositories, both in the recursive and in the non-recursive cases. We now support specifying non-bare repositories directly, and also recursing on them. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Initial commit0.01Alberto Bertogli2012-11-101-0/+390
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>