Website Summary Files Commits Branches @commit @diff @stats
path: root / ui-tree.c
Commit message (Collapse)AuthorAgeLinesSHA
* Remove a few compiler warnings
 Lars Hjemli
2007-09-20-1/+10835ffe
| | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* ui-tree: show last line of blob
 Lars Hjemli
2007-09-20-2/+5ff7a394
| | | | | | | | | The last line in a blob was never printed by ui-tree::print_object(), which was particularly annoying when the blob missed a final newline. This fixes the issue. Noticed-by: <mkraai@beckman.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* ui-tree: specify parameter position for all htmlf formats
 Lars Hjemli
2007-09-19-1/+163d5f5e
| | | | | | | | The GNU C library manual tells us that behavior is undefined if only some formats has a specification for the parameter position. Noticed-by: <mkraai@beckman.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Merge branch 'jo/dirlink'
 Lars Hjemli
2007-09-03-2/+2ff13396
|\ | | | | | | | | | | | | | | | | | | | | * jo/dirlink: Rename dirlink to gitlink. Conflicts: ui-tree.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * Rename dirlink to gitlink.
 Jeffrey C. Ollie
2007-06-04-2/+2e651cb0
| | | | | | | | | | | | | | Git changed from dirlink to gitlink in 302b9282c9ddfcc704ca759bdc98c1d5f75eba2f. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
* | Add support for line number in url fragment
 Lars Hjemli
2007-07-23-1/+1f405d0b
| | | | | | | | | | | | | | With this change, urls like http://hjemli.net/git/cgit/tree/ui-tree.c#43 can be used to jump directly to the specified line number. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | link raw blob from tree file view
 Michael Krelin
2007-07-21-0/+4d6b01da
| | | | | | | | Signed-off-by: Michael Krelin <hacker@klever.net>
* | Add ofs argument to cgit_log_link and use it in ui-log.c
 Lars Hjemli
2007-06-29-1/+1103940f
| | | | | | | | | | | | | | 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>
* | Change S/L/T to summary/log/tree
 Lars Hjemli
2007-06-18-1/+1a215bf4
| | | | | | | | | | | | | | | | In yet another attempt at better usability, the cryptic S/L/T links are changed to show their full name. Suggested-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | Add cgit_commit_link() + support for id=sha1 to commit view
 Lars Hjemli
2007-06-17-1/+042a7eb9
| | | | | | | | | | | | | | | | 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>
* | Add git_log_link() and fix bug in generic repolink function
 Lars Hjemli
2007-06-17-8/+448c487d
| | | | | | | | | | | | | | | | | | | | | | 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>
* | ui-tree: html/css cleanup
 Lars Hjemli
2007-06-17-10/+8426032f
| | | | | | | | | | | | | | | | Various fixes to make html and css more "clean". The only visible change is the link to file/directory log: it is now printed as "L" (for Log) instead of "H" (for History). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | Add and use cgit_tree_link()
 Lars Hjemli
2007-06-17-15/+1844947bf
| | | | | | | | | | | | | | This creates a new function used to generate links to 'tree' page and uses the function everywhere a link to the 'tree' page is generated. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | ui-tree: make blob viewer generate valid html
 Lars Hjemli
2007-06-16-1/+0f91b969
| | | | | | | | | | | | | | A leftover '</td></tr>' made ui-tree generate invalid html for blob content. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | ui-tree: unify with ui-view, use path to select tree/blob
 Lars Hjemli
2007-06-16-42/+152ffc6973
|/ | | | | | This teaches ui-tree to show both trees and blobs, thereby making ui-view superfluous. At the same time, ui-tree is extended to honour the specified path instead of requiering a tree/blob sha1.
* Use &amp; instead of & in URLs.
 Ondrej Jirman
2007-05-31-3/+31a63cfc
| | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Fixed unexpected tags in html output.
 Ondrej Jirman
2007-05-31-1/+10928d88
| | | | | | At least those that were catched by tidy. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Add support for tree listing via h parameter
 Lars Hjemli
2007-05-16-0/+1097de8f0
| | | | | | This makes the tree page benefit from repo.defbranch. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Add log filtering by path and link to it from tree view
 Lars Hjemli
2007-05-14-6/+199fb53af
| | | | | | | This enables path-filtering in log-view, and adds a link per entry in tree-view to show the log for each file/directory. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Add submodule links in tree listing
 Lars Hjemli
2007-05-11-9/+10ded9393
| | | | | | | | | When a submodule occurs in a tree, generate a link to show the module/commit. The link is specified as a sprintf string in /etc/cgitrc, using parameters 'module-link' and 'repo.module-link'. This should probably be extended with repo.module-link.$path. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Update to libgit 1.5.2-rc2
 Lars Hjemli
2007-05-08-11/+1361c3ca9
| | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Layout update
 Lars Hjemli
2007-02-21-1/+066cacd0
|
* Cleanup table listings
 Lars Hjemli
2007-01-28-1/+1777faf7
| | | | | | Make the output for <table class='list'> a bit nicer Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
* WIP: add paths/backlinks to tree/blobview
 Lars Hjemli
2007-01-12-3/+95cd2bf7
|
* Use html_filemode in ui-tree.c
 Lars Hjemli
2006-12-17-4/+7a530428
| | | | | | No reason to show "100644" when we can show "-rw-r--r--" Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Add ui-commit.c + misc ui cleanups
 Lars Hjemli
2006-12-16-3/+39a8f886
| | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Add display of tree content w/ui-tree.c
 Lars Hjemli
2006-12-13-0/+7006fe0c2
Signed-off-by: Lars Hjemli <hjemli@gmail.com>