aboutsummaryrefslogtreecommitdiffstats
path: root/ui-summary.c
Commit message (Expand)AuthorAgeFilesLines
...
* Add links to the new refs page from summary page•••If either branches or tags are filtered on the summary page, add a link to refs/heads and/or refs/tags right below the last branch/tag. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-271-0/+13
* Make cgit_print_branches()/cgit_print_tags() external•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-271-2/+2
* Add support for config param summary-branches•••This parameter can be used to specify max number of branches to show on the summary page (if not all branches will be displayed, the "most idle" branches are the ones to be pruned). The default value for this parameter is 0, which disables the pruning. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-271-3/+28
* Move logic for age comparision from cmp_tag_age into cmp_age()•••Simple refactoring to enable later filtering of branches based on age. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-271-8/+13
* Add support for config param summary-tags•••This parameter can be used to specify max number of tags to show on the summary page. If not specified, all tags are printed. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-271-3/+7
* Sort tags by age•••This adds a function to compare timestamps and then uses it as callback for qsort() before printing out tags. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-271-0/+18
* Use reflist to print tag info•••This updates ui-summary.c to use a reflist instead of for_each_tag_ref(), as a step towards more flexible tag handling (filtering/sorting). Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-271-17/+19
* Use reflist to print branch info•••This updates ui-summary.c to use a reflist instead of for_each_branch_ref(), as a step towards more flexible branch handling (filtering/sorting). Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-271-14/+16
* Add ui-tag.c•••This file implements the tag-command, i.e. printing of annotated tags. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-07-221-29/+4
* Add ofs argument to cgit_log_link and use it in ui-log.c•••This fixes a bug in the prev/next links on the log page: when on the default branch the links to prev/next page would contain h=(null). Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-06-291-1/+1
* Add cgit_commit_link() + support for id=sha1 to commit view•••This adds a function to generate links to the commit page and extends said page to use id from querystring as primary revision specified (fallback to h). Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-06-171-9/+9
* Add git_log_link() and fix bug in generic repolink function•••The generic repolink function compared head with cgit_query_head, which almost always would be the same pointer. The test now compares with repo.defbranch, which is the wanted behavour. Bug discovered while adding cgit_log_link(), so this commit also contain that change. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-06-171-5/+1
* Implemented configurable HEAD shortlog on summary page.•••This mirrors similiar functionality in gitweb. After clicking on project on projectlist you will immediatelly see quick summary of last N commits on HEAD. [lh: changed from HEAD to cgit_query_head] Signed-off-by: Lars Hjemli <hjemli@gmail.com> Ondrej Jirman2007-05-311-1/+7
* Use &amp; instead of & in URLs.•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Ondrej Jirman2007-05-311-1/+1
* Close a <tr> properly•••No reason to generate illegal html. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-241-1/+1
* Add repo.readme parameter•••This parameter can be used to specify a repo-specific includefile, which will then be printed on the summary page for the repo. If the parametervalue is a not an absolute path, it is taken to be relative to repo.path. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-231-6/+8
* Use cgit_print_age() on summary and log pages•••Update the pages to show relative dates instead of yyyy-mm-dd hh:mm:ss Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-221-4/+4
* Add cgit_print_age() function•••This function can be used to print relative dates, just as in gitweb. Next step will be to actually use the new function. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-221-2/+2
* Change commit-view to expect h parameter, not id•••The change makes the commit-page benefit from repo.defbranch. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-161-6/+10
* Do not alter incoming sha1 when handling the download refs.•••The code used to overwrite the const sha1 parameter just to avoid declaring an extra variable. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-151-2/+5
* Show tag heading even if first tag is of the lightweight kind•••The tag printing code waited for valid tags before printing the table heading, but forgot to count unannotated tags. This fixes it. Noticed by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-151-13/+19
* Specify static storage class for file-local declarations•••Also fix some whitespace issues while at it. Noticed by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-151-7/+7
* Add links to enable downloading of tagged blobs•••All tags below refs/archives are shown on the repo summary page as download links. The links referes to the tagged objects, using the tag name as filename for download. This can be used to add shortcuts for release tarballs, documentation and other blobs stored in the object database, especially blobs that are not reachable during cloning. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-111-9/+65
* Update to libgit 1.5.2-rc2•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-081-1/+1
* Layout updateLars Hjemli2007-02-211-2/+4
* Add support for lightweight tags•••There is nothing bad about a tag that has no tag-object, but the old code didn't handle such tags correctly. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-02-041-19/+33
* Add parameter to adjust max message length in log listings•••The parameter "max-message-length" can be specified in cgitrc, default value is 60. This affects the log message shown in repo summary and shortlog. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-01-281-1/+1
* Cleanup table listings•••Make the output for <table class='list'> a bit nicer Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net> Lars Hjemli2007-01-281-2/+2
* Extend repo summary with tag list•••Show all tags in the repo below the branch list. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-01-171-8/+66
* Only show first 80 characters of commit subject in log and summary•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-221-2/+2
* Reformat code to avoid excessive line lengths•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-2/+6
* Add cgit_free_commitinfo() and use where needed•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-0/+1
* Move cgit_print_date into ui-shared, reuse in ui-summary•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-9/+11
* Small layout adjustments to summary and blob view•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-131-1/+1
* Add display of tree content w/ui-tree.c•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-131-1/+6
* Move log-functions into ui-log.c•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-111-1/+1
* Move repo summary functions into ui-summary.c•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-111-0/+55