aboutsummaryrefslogtreecommitdiffstats
path: root/ui-commit.c
Commit message (Expand)AuthorAgeFilesLines
...
* Add decorations to commit pages•••This adds the tag and branch head decorations to the commit pages. This is similar to how commits are displayed in the standard gitweb interface. Signed-off-by: Justin Waters <justin.waters@timesys.com> Justin Waters2009-01-271-0/+4
* Added `local-time` option to cgitrc•••When `local-time` is set, commit, tag and patch timestamps will be printed in the servers timezone. Also, regardless of the value of `local-time`, these timestamps will now always show the timezone. Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Stefan Naewe2008-08-011-2/+2
* ui-commit: handle root commits•••Both cgit_print_diff() and cgit_diff_tree() handles root commits nicely, but cgit_print_commit() forgot to check the case of 0 parents. This fixes it, and adds tests to avoid future regressions. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-05-181-3/+7
* Integrate diffstat with diff•••This creates a generic diffstat function in ui-diff, which then is invoked from cgit_print_diff with the result that both commit and diff- view gets a diffstat. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-04-241-142/+4
* Fix commitdiff annoyance•••Someone were a bit sloppy when the commitdiff got included 'inline' in commit 89aa3c0d0a4c6d9885272602005975b763ea1604. This patch deletes a stray `)` and makes sure the diffstat summary `<div>` is closed before the full diff is printed. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-04-171-1/+1
* Remove 'patch' link from tab, add to commit view•••It's a bit confusing to enter the patch view from the tab, since it has no layout. And the commit view has always lacked showing the commit id. Both of these warts are fixed by this commit, which adds a new header line in the commit view which shows the commit id as a 'permalink' to the current commit and also adds a link to the patch view of the current commit. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-04-131-0/+6
* Include diff in commit view•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2008-04-121-3/+5
* 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-3/+4
* 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-2/+2
* 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-7/+7
* Fix html error detected by test-suite•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-11-111-3/+3
* ui-commit.c: link to diff instead of tree from diffstat•••This makes each entry in the diffstat link to a path-restricted diff. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-10-011-2/+2
* cgit_print_snapshot_links: use url to specify snapshot name•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-07-231-1/+2
* allow selective enabling of snapshots••• snapshot configuration parameter now can be a space/slash/comma/colon/semicolon/pipe-separated list of snaphot suffixes as listed in ui-snapshot.c Signed-off-by: Michael Krelin <hacker@klever.net> Michael Krelin2007-07-211-1/+1
* add support for snapshot tarballs•••- reworked cgit_print_snapshot to use a list of supported archivers and pick one for the suffix supplied - moved printing of snaphot links into ui-snapshot and make it iterate through the said list Michael Krelin2007-07-181-6/+3
* Add cgit_diff_link()•••This adds a new function used to generate links to the diff page and uses it everywhere such links appear (expect for single files in the diffstat displayed on the commit page: this is now a link to the tree page). The updated diff-page now expects zero, one or two revision specifiers, in parameters head, id and id2. Id defaults to head unless otherwise specified, while head (as usual) defaults to repo.defbranch. If id2 isn't specified, it defaults to the first parent of id1. The most important change is of course that now all repo pages (summary, log, tree, commit and diff) has support for passing on the current branch and revision, i.e. the road is now open for a 'static' menu with links to all of these pages. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-06-171-30/+16
* ui-commit: use cgit_commit_link() for parent links•••This replaces the old cgit_pageurl() function with the brand new cgit_commit_link() function, making parent links in commit view preserve the current branch. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-06-171-6/+4
* 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-0/+3
* 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-4/+6
* 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-2/+1
* Use &amp; instead of & in URLs.•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Ondrej Jirman2007-05-311-4/+4
* 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 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
* Add link to commitdiff below diffstat•••This link is a lot easier to locate than the links to the right of the parent entries. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-161-1/+5
* 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-1/+1
* Use tables and css to create the diffstat graph, fix scaling•••There was no need to use image-files for the graphs, so lets drop them. At the same time, fix scaling of the graphs so that the full width is used only if atleast 100 LOC are changed in one of the files. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-151-12/+8
* 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-4/+4
* 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-1/+2
* Add commitdiff between commit and each of it's parent•••A link is added next to each parent of a commit, leading to the new diff-functionality in ui-diff.c. Also added support for a path-parameter to filelevel diffs accessed via the diffstat. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-131-4/+15
* Add graphical diffstat to commit view•••The diffstat is calculated against the leftmost parent of the commit. This gives nice information for "normal" merges while octopus merges are less than optimal, so the diffstat isn't calculated for those merges. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-131-31/+101
* Use standard tree-diff function when showing diffstat for single commit•••Remove unneeded code from ui-commit.c and replace with call to standard diff-functions. Also fix some whitespace issues. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-05-131-51/+15
* Make snapshot feature configurable•••Snapshots can now be enabled/disabled by default for all repositories in cgitrc with param "snapshots". Additionally, any repo can override the default setting with param "repo.snapshots". By default, no snapshotting is enabled. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-02-081-5/+7
* Add support for snapshots•••Make a link from the commit viewer to a snapshot of the corresponding tree. Currently only zip-format is supported. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2007-02-081-0/+7
* Add missing diff-link in ui-commit.c•••Gaah. This should have been a part of 36aba00273e7af1b94bf8c5dd5068709d983d01e Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-221-2/+3
* Don't show new and old filemode for added/removed files•••It gives us no extra info whatsoever to show "----------" for either new or old mode, it's just noise (especially since we now show the "old" filemode for deleted files) Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-171-2/+9
* Show list of modified files in ui-commit.c•••Compare current commit with 1.parent, and for each affected file display current filemode, old filemode if changed, current filename and source filename if it was a copy/rename. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-171-0/+111
* Reformat code to avoid excessive line lengths•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-8/+9
* Add cgit_free_commitinfo() and use where needed•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-4/+1
* Simplify ui-commit.c•••Replace the call to lookup_commit() with a call to lookup_commit_reference, since it handles reading and parsing of the commit object internally. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-16/+1
* Show emails and timestamps in ui-commit.c•••Use the extra info found in commitinfo struct when generating commit view. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-2/+8
* Add head comment to ui-commit.c•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-0/+8
* Move cgit_print_date into ui-shared, reuse in ui-summary•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-11/+0
* Add ui-commit.c + misc ui cleanups•••Signed-off-by: Lars Hjemli <hjemli@gmail.com> Lars Hjemli2006-12-161-0/+80