]>
git.cameronkatri.com Git - cgit.git/log
Lars Hjemli [Sun, 20 May 2007 22:29:11 +0000 (00:29 +0200)]
css: make column headings bold
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 20 May 2007 22:14:28 +0000 (00:14 +0200)]
Make frontpage friendlier
This is an attempt to make the index page more usable by changing how
repo groups and repo links are displayed.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 20 May 2007 20:13:17 +0000 (22:13 +0200)]
Merge branch 'repogroups'
* repogroups:
Adjust apperance of repogroup headers
Don't highlight repogroup headings
Teach cgit how to group repositories by category
Lars Hjemli [Sun, 20 May 2007 20:12:54 +0000 (22:12 +0200)]
Adjust apperance of repogroup headers
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 20 May 2007 20:09:55 +0000 (22:09 +0200)]
Merge branch 'virtual-url'
* virtual-url:
Don't be fooled by trailing '/' in url-parameter
cache_safe_filename() needs more buffers
Enable url=value querystring parameter
Add lookup-function for valid repo commands
Move cgit_get_repoinfo into shared.c
Lars Hjemli [Sun, 20 May 2007 12:33:59 +0000 (14:33 +0200)]
Merge branch 'index-header'
* index-header:
Teach cgit howto include an external file on index page.
Add html_include()
Lars Hjemli [Sun, 20 May 2007 11:14:36 +0000 (13:14 +0200)]
Use git-1.5.2
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 22:00:25 +0000 (00:00 +0200)]
Teach cgit howto include an external file on index page.
The new parameter index-header can be used to name an external file
which will be included verbatim at the top of the index page.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 21:56:10 +0000 (23:56 +0200)]
Add html_include()
This is a function used to include external htmlfiles in cgit-
generated pages.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 21:17:09 +0000 (23:17 +0200)]
Don't highlight repogroup headings
Specify class='nohover' to avoid highlighting this row.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 20:48:22 +0000 (22:48 +0200)]
Teach cgit how to group repositories by category
The new parameter 'repo.group' is used to set the repository group
for the following repositores. Whenever this parameter changes value,
a subheading is generated in the index page (printing the current value
of repo.group).
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 11:06:45 +0000 (13:06 +0200)]
Don't be fooled by trailing '/' in url-parameter
cgit_parse_url() didn't check if the path-part of urls contained a
real path or just a trailing slash. This made the log-page die since
the path filtering supplied an invalid path argument. This fixes it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 01:54:15 +0000 (03:54 +0200)]
cache_safe_filename() needs more buffers
The single static buffer makes it impossible to use the result of two
different calls to this function simultaneously. Fix it by using 4
buffers.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 01:00:54 +0000 (03:00 +0200)]
Enable url=value querystring parameter
This makes is possible to use repo-urls like '/pub/scm/git/git.git' and
even add path specifications, like '/pub/scm/git/git.git/log/documentation'.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Thu, 17 May 2007 22:50:46 +0000 (00:50 +0200)]
Add lookup-function for valid repo commands
This will be usefull when parsing url arguments.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Thu, 17 May 2007 22:47:47 +0000 (00:47 +0200)]
Move cgit_get_repoinfo into shared.c
This function will be usefull when parsing url arguments.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 20:50:11 +0000 (22:50 +0200)]
Remove unused extern declarations from cgit.h
Some unused declarations from the early days of cgit are removed.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 18 May 2007 11:55:52 +0000 (13:55 +0200)]
Add knobs to enable/disable files/lines changed in log view
These columns can cause lots of IO on the server, so add settings to
explicitly enable them. Also, add per repo settings to optionally disable
the columns if sitewide enabled.
While at it, do not allow repo.snapshot to enable snapshots if the global
setting is disabled.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Wed, 16 May 2007 08:45:45 +0000 (10:45 +0200)]
Restrict length of repo description on repolist page
If any repo has a very long description, all repos suffer since the
repo-links in the right-most column gets pushed out of sight.
Fix it by introducing max-repodesc-length parameter in cgitrc, and default
to 60 chars.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Wed, 16 May 2007 02:21:06 +0000 (04:21 +0200)]
Don't die when diffing trees with subprojects
The subprojects needs special handling, since they refer to objects
which normally won't exist in the refering repository.
Fix some extended header bugs and missing features while at it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Wed, 16 May 2007 01:30:57 +0000 (03:30 +0200)]
Do not wrap filemode column in diffstat table
The diffstat looks rather ugly when the filemode is wrapped to one
char per line, so lets force it to not wrap.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Wed, 16 May 2007 00:12:06 +0000 (02:12 +0200)]
Add C D L and T links to index page
These are of course Commit, Diff, Log and Tree pages, all accessed w.o.
specifying refname or sha1.
Sadly, the layout is neither pretty nor accessible.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Wed, 16 May 2007 00:06:28 +0000 (02:06 +0200)]
Make git_pageurl handle NULL querystrings
This is suddenly useful after the repo.defbranch-related changes.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 15 May 2007 23:38:02 +0000 (01:38 +0200)]
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 Hjemli [Tue, 15 May 2007 23:16:56 +0000 (01:16 +0200)]
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 Hjemli [Tue, 15 May 2007 22:58:35 +0000 (00:58 +0200)]
Add support for commitdiff via h parameter
The commitdiff will be generated against the first parent, and the
diff page also gets the benefit of repo.defbranch.
Cleaned up some bad whitespace in cgit.h while at it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 15 May 2007 22:26:23 +0000 (00:26 +0200)]
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 Hjemli [Tue, 15 May 2007 22:14:51 +0000 (00:14 +0200)]
Enable default value for head parameter
Pages which expect head to be specified in the querystring can now be
given a default value, configurable per repository (via repo.defbranch,
which defaults to "master").
Currently, only the log page actually works without parameters, but the
defbranch is bound to be exploited.
This also removes some dead code from shared.c
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 15 May 2007 21:28:40 +0000 (23:28 +0200)]
Restrict deep nesting of configfiles
There is no point in restricting the number of included config-
files, but there is a point in restricting the nestinglevel
of configfiles: to avoid recursive inclusions. This is easily
achieved by decrementing the static nesting-variable upon exit
from cgit_read_config().
Also fix some whitespace breakage.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 15 May 2007 16:38:31 +0000 (18:38 +0200)]
Include cgit.conf in Makefile
This allows persistent overrides of Makefile settings without touching
the Makefile.
Suggested in a patch by Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 15 May 2007 07:27:27 +0000 (09:27 +0200)]
ui-diff: show /dev/null as filename for add/delete
The diff headers showed an invalid filename when a patch created or
deleted a file. Fix it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 15 May 2007 00:13:11 +0000 (02:13 +0200)]
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 Hjemli [Mon, 14 May 2007 23:05:39 +0000 (01:05 +0200)]
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 Hjemli [Mon, 14 May 2007 22:48:31 +0000 (00:48 +0200)]
Don't hardcode urls when SCRIPT_NAME is available
Also, let the makefile define the name of the installed cgi and
use that definition as a default value for cgit_script_name variable.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Mon, 14 May 2007 22:22:03 +0000 (00:22 +0200)]
ui-shared.c: fix whitespace breakage
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Mon, 14 May 2007 22:07:37 +0000 (00:07 +0200)]
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 Hjemli [Mon, 14 May 2007 21:58:29 +0000 (23:58 +0200)]
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 Hjemli [Mon, 14 May 2007 21:40:33 +0000 (23:40 +0200)]
Add include-parameter to config files
This parameter can be used to include another config-file, like
a standalone repository listing.
Suggested in a patch by Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Mon, 14 May 2007 21:09:49 +0000 (23:09 +0200)]
Let makefile override the configfile location
Pass CGIT_CONFIG from makefile during build, to enable stuff like
make CGIT_CONFIG=/var/cgit/cgit.conf
Noticed by Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Mon, 14 May 2007 20:58:01 +0000 (22:58 +0200)]
cgit.c: fix whitespace breakage
Lars Hjemli [Mon, 14 May 2007 16:31:05 +0000 (18:31 +0200)]
cgit.css: try to make diffs look a little bit nicer
This makes the diffview look more like 'git-diff' in a terminal.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Mon, 14 May 2007 16:08:03 +0000 (18:08 +0200)]
cgit.css: try do make diffstat a little bit nicer
I'm still no webdesigner, but this seems to be a more pleasant "visual
experience".
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Mon, 14 May 2007 09:10:59 +0000 (11:10 +0200)]
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 Hjemli [Sun, 13 May 2007 21:28:19 +0000 (23:28 +0200)]
cgit v0.4
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 13 May 2007 21:13:12 +0000 (23:13 +0200)]
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 Hjemli [Sun, 13 May 2007 20:25:14 +0000 (22:25 +0200)]
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 Hjemli [Sun, 13 May 2007 15:15:06 +0000 (17:15 +0200)]
Add max-commit-count parameter to cgitrc
This enabled customizing number of commits shown per page in log view. It
also changes the default from 100 to 50, mainly due to the more cpu
intensive log pages (number of files/lines changed) but also since 100
log messages requires excessive scrolling.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 13 May 2007 15:03:27 +0000 (17:03 +0200)]
Show number of changed lines in log view
Use the new file-diff interface to calculate number of changed lines
per commit.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 13 May 2007 12:21:46 +0000 (14:21 +0200)]
Simplify ui-diff.c using the new file-level diff interface
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 13 May 2007 12:21:19 +0000 (14:21 +0200)]
Add standard interface for file diff functions
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 13 May 2007 09:27:46 +0000 (11:27 +0200)]
Show number of changed files in log view
This uses the new tree-diff functions to calculate number of files
changed per commit.
Also fix some whitespace issues.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 13 May 2007 09:26:23 +0000 (11:26 +0200)]
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 Hjemli [Sun, 13 May 2007 09:24:23 +0000 (11:24 +0200)]
Add shared diff-handling functions
This adds a standard interface for tree diffing.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 11 May 2007 22:29:37 +0000 (00:29 +0200)]
css: fix bad rendering in Internet Explorer
The layout-tables used border-collapse:separate, which maked all pages look
really bad in IE. Fix it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 11 May 2007 21:44:42 +0000 (23:44 +0200)]
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 Hjemli [Fri, 11 May 2007 18:41:14 +0000 (20:41 +0200)]
Makefile: add support for building w.o. preinstalled git
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 11 May 2007 10:15:44 +0000 (12:15 +0200)]
Tag release v0.3
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 11 May 2007 10:13:15 +0000 (12:13 +0200)]
Update README with submodule build info
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 11 May 2007 10:12:48 +0000 (12:12 +0200)]
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 Hjemli [Thu, 10 May 2007 09:25:12 +0000 (11:25 +0200)]
Add submodules.sh and use it during builds
This adds a shell script which can be be used to initialize, list and
update submodules in a git repository. It reads the file .gitmodules
to find a mapping between submodule path and repository url for the
initial clone of all submodules.
The script is used during cgit builds to enable automatic download and
checkout of the git git repository.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Thu, 10 May 2007 06:50:49 +0000 (08:50 +0200)]
Added git as a submodule
This commit adds the subdirectory 'git' as a submodule containing
the git git repository, but doesn't add support for automatically
cloning the submodule.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 8 May 2007 22:48:09 +0000 (00:48 +0200)]
Add support for downloading single blobs
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 8 May 2007 21:52:56 +0000 (23:52 +0200)]
ui-view: show pathname if specified in querystring
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 8 May 2007 20:40:59 +0000 (22:40 +0200)]
Update to libgit 1.5.2-rc2
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sat, 17 Feb 2007 12:46:18 +0000 (13:46 +0100)]
Layout update
Lars Hjemli [Thu, 8 Feb 2007 13:47:56 +0000 (14:47 +0100)]
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 Hjemli [Thu, 8 Feb 2007 12:53:13 +0000 (13:53 +0100)]
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 Hjemli [Sun, 4 Feb 2007 23:21:06 +0000 (00:21 +0100)]
cgit v0.2
Main changes since v0.1:
-list tags in repo summary
-allow search in log-view
-read repository paths from cgitrc
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 4 Feb 2007 22:57:34 +0000 (23:57 +0100)]
Add support for prefix and gitsrc arguments to 'make'
This should improve the installation a little, especially since the new
options are mentioned in the README. Also, add a make-rule to build the
git binaries if necessary + a dependency between cgit and libgit.a.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 4 Feb 2007 22:24:08 +0000 (23:24 +0100)]
Update cgitrc template
Make the descriptions more helpfull.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 4 Feb 2007 21:55:19 +0000 (22:55 +0100)]
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 Hjemli [Sat, 3 Feb 2007 14:02:55 +0000 (15:02 +0100)]
Read repo-info from /etc/cgitrc
This makes cgit read all repo-info from the configfile, instead of scanning for
possible git-dirs below a common root path. This is primarily done to get
better security (separate physical path from logical repo-name).
In /etc/cgitrc each repo is registered with the following keys:
repo.url
repo.name
repo.path
repo.desc
repo.owner
Note:
*Required keys are repo.url and repo.path, all others are optional
*Each occurrence of repo.url starts a new repository registration
*Default value for repo.name is taken from repo.url
*The value of repo.url cannot contain characters with special meaning for
urls (i.e. one of /?%&), while repo.name can contain anything.
Example:
repo.url=cgit-pub
repo.name=cgit/public
repo.path=/pub/git/cgit
repo.desc=My public cgit repo
repo.owner=Lars Hjemli
repo.url=cgit-priv
repo.name=cgit/private
repo.path=/home/larsh/src/cgit/.git
repo.desc=My private cgit repo
repo.owner=Lars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sat, 3 Feb 2007 15:11:41 +0000 (16:11 +0100)]
Do not die if tag has no message
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sat, 3 Feb 2007 12:08:21 +0000 (13:08 +0100)]
Fix search for non-virtual urls
When cgit don't use virtual urls, the current repo and page
url parameters must be included in the search form as hidden
input fields.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 28 Jan 2007 12:18:23 +0000 (13:18 +0100)]
Update README with install/config information
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 28 Jan 2007 11:52:14 +0000 (12:52 +0100)]
Add template for /etc/cgitrc
This doubles as documentation of the parameteres :)
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 28 Jan 2007 11:17:03 +0000 (12:17 +0100)]
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 Hjemli [Sun, 28 Jan 2007 11:01:21 +0000 (12:01 +0100)]
Set explicit font size
This might be bad style, but cgit really needed smaller fonts.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Sun, 28 Jan 2007 10:33:55 +0000 (11:33 +0100)]
Change global document layout
Use a document-wide table for the main layout
Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Lars Hjemli [Sun, 28 Jan 2007 10:31:57 +0000 (11:31 +0100)]
Unified install path
Install all files into single directory
Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Lars Hjemli [Sat, 27 Jan 2007 23:39:26 +0000 (00:39 +0100)]
Cleanup table listings
Make the output for <table class='list'> a bit nicer
Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Lars Hjemli [Wed, 17 Jan 2007 00:13:05 +0000 (01:13 +0100)]
Enable building with debuginfo
Add -g to CFLAGS when running make with DEBUG=1
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Wed, 17 Jan 2007 00:10:39 +0000 (01:10 +0100)]
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 Hjemli [Wed, 17 Jan 2007 00:09:51 +0000 (01:09 +0100)]
Add function cgit_parse_tag()
Teach cgit how to extract author info from a tag.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Wed, 17 Jan 2007 00:07:31 +0000 (01:07 +0100)]
Add some more decls from git (cache.h, tag.h)
This is in preparation for extended tag support in cgit
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Tue, 16 Jan 2007 17:41:01 +0000 (18:41 +0100)]
Handle empty/malformed commit messages
An empty commit message would trigger a segfault in the current
cgit_parse_commit().
Also, make sure that all char-pointers are properly initialized.
Lars Hjemli [Thu, 11 Jan 2007 23:46:17 +0000 (00:46 +0100)]
WIP: add paths/backlinks to tree/blobview
Lars Hjemli [Thu, 11 Jan 2007 23:24:35 +0000 (00:24 +0100)]
Remove troublesome chars from cachefile names
Add a funtion cache_safe_filename() which replaces possibly bad filename
characters with '_'.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Thu, 11 Jan 2007 23:00:15 +0000 (00:00 +0100)]
Move cache_prepare() to cgit
This moves some cgit-specific stuff away from cache.c
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 5 Jan 2007 17:20:23 +0000 (18:20 +0100)]
Use long instead of int when converting from TTL to seconds
Just to be really, really sure about embarrasing overflow settings
Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
Lars Hjemli [Fri, 5 Jan 2007 17:18:58 +0000 (18:18 +0100)]
Use TTL-settings even in nocache mode
In nocace mode an uninitialized ttl-setting was used to generate http-Expires
header. Fix it.
Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
Lars Hjemli [Thu, 4 Jan 2007 15:53:03 +0000 (16:53 +0100)]
Handle %xx encoding in querystring
Convert valid %xx expressions in querystring to ascii, ignore invalid
expressions (i.e. eat the three characters %xx).
Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
Lars Hjemli [Thu, 28 Dec 2006 01:51:46 +0000 (02:51 +0100)]
Handle '+' in querystring
Translate '+' to ' ' in querystring parser (still doesn't handle %xx)
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Thu, 28 Dec 2006 01:45:28 +0000 (02:45 +0100)]
Add basic log filtering
This enables case-insensitive grep on logentris using the new search box
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Thu, 28 Dec 2006 01:01:49 +0000 (02:01 +0100)]
Add generic support for search box in page header
This adds the ability to show a search box in any pageheader with correct href and
hidden form data, but does not enable the box on any pages.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Thu, 28 Dec 2006 00:54:43 +0000 (01:54 +0100)]
Test for NULL-pointers in html_txt() and friends
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 22 Dec 2006 00:44:32 +0000 (01:44 +0100)]
Minor style fixes
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Fri, 22 Dec 2006 00:38:37 +0000 (01:38 +0100)]
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 Hjemli [Thu, 21 Dec 2006 23:58:18 +0000 (00:58 +0100)]
Only show first 80 characters of commit subject in log and summary
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli [Thu, 21 Dec 2006 23:56:02 +0000 (00:56 +0100)]
Add missing ttl-options in config
Signed-off-by: Lars Hjemli <hjemli@gmail.com>