aboutsummaryrefslogtreecommitdiff
path: root/ui-commit.c
AgeCommit message (Collapse)Author
2007-05-13Use standard tree-diff function when showing diffstat for single commitLars Hjemli
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>
2007-02-08Make snapshot feature configurableLars Hjemli
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>
2007-02-08Add support for snapshotsLars Hjemli
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>
2006-12-22Add missing diff-link in ui-commit.cLars Hjemli
Gaah. This should have been a part of 36aba00273e7af1b94bf8c5dd5068709d983d01e Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2006-12-17Don't show new and old filemode for added/removed filesLars Hjemli
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>
2006-12-17Show list of modified files in ui-commit.cLars Hjemli
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>
2006-12-16Reformat code to avoid excessive line lengthsLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2006-12-16Add cgit_free_commitinfo() and use where neededLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2006-12-16Simplify ui-commit.cLars Hjemli
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>
2006-12-16Show emails and timestamps in ui-commit.cLars Hjemli
Use the extra info found in commitinfo struct when generating commit view. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2006-12-16Add head comment to ui-commit.cLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2006-12-15Move cgit_print_date into ui-shared, reuse in ui-summaryLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2006-12-15Add ui-commit.c + misc ui cleanupsLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>