aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tree.c
Commit message (Expand)AuthorAgeFilesLines
* ui-tree.c: avoid peeking at GITLINK objects•••When an object in the tree has GITLINK mode-bits we don't need to get any more info about that particular object (and trying to get more info about it will usually generate an annoying warning on stderr since the object typically doesn't exist in the repo anyways). Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-05-201-6/+8
* Don't specify mimetype in ui-blob.c•••But be sure to specify correct filename. This way, the client can hopefully guess a sensible mimetype based on the filename suffix, and cgit can ignore the issue altogether. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-04-081-1/+2
* Add ui-shared.h•••This is finally a proper headerfile for the shared ui-functions which used to reside in cgit.h Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-03-241-0/+1
* Introduce html.h•••All html-functions can be quite easily separated from the rest of cgit, so lets do it; the only issue was html_filemode which uses some git-defined macros so the function is moved into ui-shared.c::cgit_print_filemode(). Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-03-181-1/+2
* Move cgit_repo into cgit_context•••This removes the global variable which is used to keep track of the currently selected repository, and adds a new variable in the cgit_context structure. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-02-161-1/+1
* Introduce struct cgit_context•••This struct will hold all the cgit runtime information currently found in a multitude of global variables. The first cleanup removes all querystring-related variables. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-02-161-10/+10
* Fix html error detected by test-suite•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-11-111-3/+3
* Add search parameters to cgit_log_link•••This makes the [prev] and [next] links work correctly on search results. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-11-031-1/+1
* Remove a few compiler warnings•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-09-201-1/+1
* ui-tree: show last line of blob•••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> Lars Hjemli2007-09-201-2/+5
* ui-tree: specify parameter position for all htmlf formats•••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> Lars Hjemli2007-09-191-1/+1
* Merge branch 'jo/dirlink'•••* jo/dirlink: Rename dirlink to gitlink. Conflicts: ui-tree.c Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-09-031-2/+2
|\
| * Rename dirlink to gitlink.•••Git changed from dirlink to gitlink in 302b9282c9ddfcc704ca759bdc98c1d5f75eba2f. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us> Jeffrey C. Ollie2007-06-041-2/+2
* | Add support for line number in url fragment•••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> Lars Hjemli2007-07-231-1/+1
* | link raw blob from tree file view•••Signed-off-by: Michael Krelin <hacker@klever.net> Michael Krelin2007-07-211-0/+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
* | Change S/L/T to summary/log/tree•••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> Lars Hjemli2007-06-181-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-1/+0
* | 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-8/+4
* | ui-tree: html/css cleanup•••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> Lars Hjemli2007-06-171-10/+8
* | Add and use cgit_tree_link()•••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> Lars Hjemli2007-06-171-15/+18
* | ui-tree: make blob viewer generate valid html•••A leftover '</td></tr>' made ui-tree generate invalid html for blob content. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-06-161-1/+0
* | ui-tree: unify with ui-view, use path to select tree/blob•••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. Lars Hjemli2007-06-161-42/+152
|/
* Use &amp; instead of & in URLs.•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Ondrej Jirman2007-05-311-3/+3
* Fixed unexpected tags in html output.•••At least those that were catched by tidy. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Ondrej Jirman2007-05-311-1/+1
* Add support for tree listing via h parameter•••This makes the tree page benefit from repo.defbranch. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-161-0/+10
* Add log filtering by path and link to it from tree view•••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> Lars Hjemli2007-05-141-6/+19
* Add submodule links in tree listing•••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> Lars Hjemli2007-05-111-9/+10
* Update to libgit 1.5.2-rc2•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-081-11/+13
* Layout updateLars Hjemli2007-02-211-1/+0
* 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-1/+1
* WIP: add paths/backlinks to tree/blobviewLars Hjemli2007-01-121-3/+9
* Use html_filemode in ui-tree.c•••No reason to show "100644" when we can show "-rw-r--r--" Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-171-4/+7
* Add ui-commit.c + misc ui cleanups•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-3/+3
* Add display of tree content w/ui-tree.c•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-131-0/+70