]> git.cameronkatri.com Git - cgit.git/log
cgit.git
16 years agoCleanup page header
Lars Hjemli [Mon, 14 Apr 2008 22:00:11 +0000 (00:00 +0200)]
Cleanup page header

Fix some invalid html, remove dead code.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoFix search in repo index even if caching is enabled
Lars Hjemli [Mon, 14 Apr 2008 21:07:52 +0000 (23:07 +0200)]
Fix search in repo index even if caching is enabled

The repository index page needed to include the querystring in the cache
filename.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMake a few more columns in repolist and log view clickable
Lars Hjemli [Mon, 14 Apr 2008 20:23:48 +0000 (22:23 +0200)]
Make a few more columns in repolist and log view clickable

Less mouse movement is nice.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMake branches, tags and log play better together in the summary view
Lars Hjemli [Mon, 14 Apr 2008 20:13:38 +0000 (22:13 +0200)]
Make branches, tags and log play better together in the summary view

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoFix more css ugliness
Lars Hjemli [Mon, 14 Apr 2008 20:10:33 +0000 (22:10 +0200)]
Fix more css ugliness

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agocgit.css: set form margins
Lars Hjemli [Mon, 14 Apr 2008 08:17:33 +0000 (10:17 +0200)]
cgit.css: set form margins

According to the css2 spec, htmlforms have 1.12em top and bottom margins. That
doesn't play well with the placement of the search form, so lets force it to
use 0em margins.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoFix css font-family
Lars Hjemli [Mon, 14 Apr 2008 08:00:59 +0000 (10:00 +0200)]
Fix css font-family

When the sidebar was introduced in v0.7 the default font-family property
got messed up, but this commit should fix the issue.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMerge branch 'lh/layout'
Lars Hjemli [Sun, 13 Apr 2008 10:48:44 +0000 (12:48 +0200)]
Merge branch 'lh/layout'

* lh/layout:
  Make repository search case insensitive
  Remove 'patch' link from tab, add to commit view
  Implement minimal freetext search in the repolist
  More layout fixes
  Minor fixup in tree-view css
  Reintroduce the branch switcher
  Add fixed link to index page from repo header
  Include diff in commit view
  Replace sidebar/logo

16 years agoMake repository search case insensitive
Lars Hjemli [Sun, 13 Apr 2008 10:42:27 +0000 (12:42 +0200)]
Make repository search case insensitive

This reuses the strcasestr() compiled or linked by libgit.a to implement a
case insensitive variation of the repository search.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoRemove 'patch' link from tab, add to commit view
Lars Hjemli [Sun, 13 Apr 2008 10:20:00 +0000 (12:20 +0200)]
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>
16 years agoImplement minimal freetext search in the repolist
Lars Hjemli [Sun, 13 Apr 2008 09:57:10 +0000 (11:57 +0200)]
Implement minimal freetext search in the repolist

This makes the repolist much more usable when there's a lot of repositories
registered in cgitrc.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMore layout fixes
Lars Hjemli [Sun, 13 Apr 2008 08:57:11 +0000 (10:57 +0200)]
More layout fixes

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMinor fixup in tree-view css
Lars Hjemli [Sat, 12 Apr 2008 18:18:16 +0000 (20:18 +0200)]
Minor fixup in tree-view css

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoReintroduce the branch switcher
Lars Hjemli [Sat, 12 Apr 2008 18:11:49 +0000 (20:11 +0200)]
Reintroduce the branch switcher

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoAdd fixed link to index page from repo header
Lars Hjemli [Sat, 12 Apr 2008 17:59:41 +0000 (19:59 +0200)]
Add fixed link to index page from repo header

This makes it easier to get back to the index page, and also re-enables
the usage of logo-link in cgitrc.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoInclude diff in commit view
Lars Hjemli [Sat, 12 Apr 2008 13:53:53 +0000 (15:53 +0200)]
Include diff in commit view

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoReplace sidebar/logo
Lars Hjemli [Sat, 12 Apr 2008 13:53:31 +0000 (15:53 +0200)]
Replace sidebar/logo

This replaces the sidebar with a more 'common' header layout and also
updates the logo.

Not quite finished yet, though.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoUse GIT-1.5.5
Lars Hjemli [Wed, 9 Apr 2008 16:05:30 +0000 (18:05 +0200)]
Use GIT-1.5.5

16 years agoDon't specify mimetype in ui-blob.c
Lars Hjemli [Tue, 25 Mar 2008 01:43:51 +0000 (02:43 +0100)]
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>
16 years agoMerge branch 'lh/cleanup'
Lars Hjemli [Tue, 8 Apr 2008 19:29:21 +0000 (21:29 +0200)]
Merge branch 'lh/cleanup'

* lh/cleanup: (21 commits)
  Reset ctx.repo to NULL when the config parser is finished
  Move cgit_parse_query() from parsing.c to html.c as http_parse_querystring()
  Move function for configfile parsing into configfile.[ch]
  Add cache.h
  Remove global and obsolete cgit_cmd
  Makefile: copy the QUIET constructs from the Makefile in git.git
  Move cgit_version from shared.c to cgit.c
  Makefile: autobuild dependency rules
  Initial Makefile cleanup
  Move non-generic functions from shared.c to cgit.c
  Add ui-shared.h
  Add separate header-files for each page/view
  Refactor snapshot support
  Add command dispatcher
  Remove obsolete cacheitem parameter to ui-functions
  Add struct cgit_page to cgit_context
  Introduce html.h
  Improve initialization of git directory
  Move cgit_repo into cgit_context
  Add all config variables into struct cgit_context
  ...

16 years agoReset ctx.repo to NULL when the config parser is finished
Lars Hjemli [Tue, 8 Apr 2008 19:27:12 +0000 (21:27 +0200)]
Reset ctx.repo to NULL when the config parser is finished

This global variable is used by the config parsing callback to keep track
of the currently configured repository. If it is not reset to NULL when
the config parser is finished, and neither `url` or `r` is specified on the
querystring, cgit will wrongly consider the last configured repo as
selected.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMove cgit_parse_query() from parsing.c to html.c as http_parse_querystring()
Lars Hjemli [Tue, 8 Apr 2008 19:11:36 +0000 (21:11 +0200)]
Move cgit_parse_query() from parsing.c to html.c as http_parse_querystring()

This is a generic http-function.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoUse GIT-1.5.5-rc2
Lars Hjemli [Mon, 31 Mar 2008 22:59:55 +0000 (00:59 +0200)]
Use GIT-1.5.5-rc2

16 years agoMove function for configfile parsing into configfile.[ch]
Lars Hjemli [Thu, 27 Mar 2008 23:09:11 +0000 (00:09 +0100)]
Move function for configfile parsing into configfile.[ch]

This is a generic function which wanted its own little object file.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoAdd cache.h
Lars Hjemli [Thu, 27 Mar 2008 08:22:13 +0000 (09:22 +0100)]
Add cache.h

The functions found in cache.c are only used by cgit.c, so there's no
point in rebuilding all object files when the cache interface is changed.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoRemove global and obsolete cgit_cmd
Lars Hjemli [Tue, 25 Mar 2008 01:00:09 +0000 (02:00 +0100)]
Remove global and obsolete cgit_cmd

This variable was obsoleted by cmd.c.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMakefile: copy the QUIET constructs from the Makefile in git.git
Lars Hjemli [Tue, 25 Mar 2008 00:41:10 +0000 (01:41 +0100)]
Makefile: copy the QUIET constructs from the Makefile in git.git

These constructs were introduced by Shawn O. Pearce in commit
74f2b2a8d006a49e1be7e30731c2f7365d2741d1.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMove cgit_version from shared.c to cgit.c
Lars Hjemli [Mon, 24 Mar 2008 22:10:59 +0000 (23:10 +0100)]
Move cgit_version from shared.c to cgit.c

With the matching Makefile change, this makes sure that only cgit.o and cgit
proper needs to be rebuildt when VERSION has been modified.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMakefile: autobuild dependency rules
Lars Hjemli [Mon, 24 Mar 2008 22:01:44 +0000 (23:01 +0100)]
Makefile: autobuild dependency rules

This uses gcc to generate dependency rules for each `.o` file, based on the
corresponding `.c` file, into a new set of `.d` files (which are also defined
to depend on the same set of source files as their `.o` files).

Result:
* all objectfile dependencies are correctly calculated
* only the necessary dependencies are recalculated when a sourcefile is updated

Inspiration for the build rules:
* http://www.gnu.org/software/make/manual/make.html#Automatic-Prerequisites
* http://make.paulandlesley.org/autodep.html

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoInitial Makefile cleanup
Lars Hjemli [Mon, 24 Mar 2008 19:49:41 +0000 (20:49 +0100)]
Initial Makefile cleanup

Sort the list of object files to improve readability/mergeability and remove
manual dependency information which will soon be generated automatically.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMove non-generic functions from shared.c to cgit.c
Lars Hjemli [Mon, 24 Mar 2008 16:26:08 +0000 (17:26 +0100)]
Move non-generic functions from shared.c to cgit.c

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoAdd ui-shared.h
Lars Hjemli [Mon, 24 Mar 2008 15:50:57 +0000 (16:50 +0100)]
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>
16 years agoAdd separate header-files for each page/view
Lars Hjemli [Mon, 24 Mar 2008 15:38:47 +0000 (16:38 +0100)]
Add separate header-files for each page/view

Yet another step towards removing cgit.h.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoRefactor snapshot support
Lars Hjemli [Mon, 24 Mar 2008 15:00:27 +0000 (16:00 +0100)]
Refactor snapshot support

The snapshot support needs to be split between output- and config-related
functions to get the layering between shared.c and ui-*.c right. There
is also some codestyle-issues which needs fixing to make the snapshot
functions more similar to the rest of the cgit code.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoAdd command dispatcher
Lars Hjemli [Mon, 24 Mar 2008 00:09:39 +0000 (01:09 +0100)]
Add command dispatcher

This simplifies the code in cgit.c and makes it easier to extend cgit with
new pages/commands.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoRemove obsolete cacheitem parameter to ui-functions
Lars Hjemli [Mon, 24 Mar 2008 00:00:36 +0000 (01:00 +0100)]
Remove obsolete cacheitem parameter to ui-functions

This parameter hasn't been used for a very long time...

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoAdd struct cgit_page to cgit_context
Lars Hjemli [Sun, 23 Mar 2008 23:51:19 +0000 (00:51 +0100)]
Add struct cgit_page to cgit_context

This struct is used when generating http headers, and as such is another
small step towards the goal of the whole cleanup series; to invoke each
page/view function with a function pointer.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoUse GIT-1.5.5.rc1
Lars Hjemli [Sun, 23 Mar 2008 10:36:38 +0000 (11:36 +0100)]
Use GIT-1.5.5.rc1

16 years agoIntroduce html.h
Lars Hjemli [Sat, 23 Feb 2008 21:45:33 +0000 (22:45 +0100)]
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>
16 years agoFix segfault in patch view for root commit
Lars Hjemli [Mon, 17 Mar 2008 22:13:16 +0000 (23:13 +0100)]
Fix segfault in patch view for root commit

The code for patch view assumed the current commit would always have a parent,
which made cgit segfault when that wasn't the case.

This fixes the bug and adds a test-script for patch view which includes a test
for the inital commit.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoUse GIT-1.5.4.4
Lars Hjemli [Mon, 17 Mar 2008 21:59:09 +0000 (22:59 +0100)]
Use GIT-1.5.4.4

16 years agotests/setup.sh: cleanup test script output and logging
Lars Hjemli [Sun, 24 Feb 2008 18:53:51 +0000 (19:53 +0100)]
tests/setup.sh: cleanup test script output and logging

Log the complete output from each test-script in test-output.log and tell the
user about the logfile when a test-script fails.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agot0010-validate.sh: return on cgit errors
Lars Hjemli [Sun, 24 Feb 2008 18:43:46 +0000 (19:43 +0100)]
t0010-validate.sh: return on cgit errors

The earlier segfault in cgit passed by unnoticed by this test-script due to
the pipe between cgit and sed.

There might be a more elegant solution to this problem, but my shellscript-
foo is weak.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMake output from `make test` more readable
Lars Hjemli [Sun, 24 Feb 2008 15:05:58 +0000 (16:05 +0100)]
Make output from `make test` more readable

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoBrown paper bag: don't use `grep -v`
Lars Hjemli [Sun, 24 Feb 2008 14:35:52 +0000 (15:35 +0100)]
Brown paper bag: don't use `grep -v`

For some inexplicable reason I'd gotten the semantics of `grep -v` totally
backwards, thinking it somehow would make the exitcode from grep indicate
the non-match of the specified pattern.

This fixes the broken tests and gives me a valuable lession about shell
programming at the same time.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoAdd regression-test for description-less repos
Lars Hjemli [Sun, 24 Feb 2008 14:27:33 +0000 (15:27 +0100)]
Add regression-test for description-less repos

The segfault fixed in commit eacde43d7184452e1fdc90b982b531f1f5239923 was
triggered when the html-functions manipulated string literals. One callpatch
which could trigger the bug is in ui-repolist.c when repo descriptions are
passed to html_ntxt(): if a repo is lacking a description, the literal
string "[no description]" is used.

This patch changes test/setup.sh such that the first repo has no description,
and adds tests for both "[no description]" and "the bar repo" (description
of the other repo) to tests/t0101-index.sh, which should be enought to catch
regressions in these functions.

Noticed-by: Hiroki Hattori <seagull.kamome@gmail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMerge branch 'stable'
Lars Hjemli [Sat, 23 Feb 2008 19:13:57 +0000 (20:13 +0100)]
Merge branch 'stable'

* stable:
  Fix segfault

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoFix segfault
Hiroki Hattori [Sat, 23 Feb 2008 17:57:34 +0000 (02:57 +0900)]
Fix segfault

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoImprove initialization of git directory
Lars Hjemli [Sat, 16 Feb 2008 20:16:53 +0000 (21:16 +0100)]
Improve initialization of git directory

Using the functions offered by libgit feels like the right thing to do. Also,
make sure that config errors gets properly reported.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoMove cgit_repo into cgit_context
Lars Hjemli [Sat, 16 Feb 2008 12:56:09 +0000 (13:56 +0100)]
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>
16 years agoAdd all config variables into struct cgit_context
Lars Hjemli [Sat, 16 Feb 2008 12:07:13 +0000 (13:07 +0100)]
Add all config variables into struct cgit_context

This removes another big set of global variables, and introduces the
cgit_prepare_context() function which populates a context-variable with
compile-time default values.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
16 years agoIntroduce struct cgit_context
Lars Hjemli [Sat, 16 Feb 2008 10:53:40 +0000 (11:53 +0100)]
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>
16 years agoUse GIT-1.5.4.1
Lars Hjemli [Sat, 16 Feb 2008 10:22:06 +0000 (11:22 +0100)]
Use GIT-1.5.4.1

16 years agoUse GIT-1.5.4
Lars Hjemli [Sat, 2 Feb 2008 07:55:09 +0000 (08:55 +0100)]
Use GIT-1.5.4

16 years agoUse GIT-1.5.4.rc5
Lars Hjemli [Mon, 28 Jan 2008 20:18:28 +0000 (21:18 +0100)]
Use GIT-1.5.4.rc5

16 years agoUse GIT-1.5.4.rc4
Lars Hjemli [Sun, 13 Jan 2008 18:16:23 +0000 (19:16 +0100)]
Use GIT-1.5.4.rc4

17 years agoMerge branch 'stable'
Lars Hjemli [Sun, 13 Jan 2008 17:34:37 +0000 (18:34 +0100)]
Merge branch 'stable'

* stable:
  CGIT 0.7.2
  Use GIT-1.5.3.8
  Compare string lengths when parsing the snapshot mask
  Default repo description to "[no description]"

17 years agoCGIT 0.7.2 v0.7.2
Lars Hjemli [Thu, 10 Jan 2008 12:50:22 +0000 (13:50 +0100)]
CGIT 0.7.2

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUse GIT-1.5.3.8
Lars Hjemli [Thu, 10 Jan 2008 12:47:18 +0000 (13:47 +0100)]
Use GIT-1.5.3.8

17 years agoCheck for NULL-subject in patch view
Lars Hjemli [Tue, 18 Dec 2007 08:26:50 +0000 (08:26 +0000)]
Check for NULL-subject in patch view

While at it, make sure the commit message ends with a '\n'.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoHandle missing default branch and error out on invalid branch names
Lars Hjemli [Fri, 4 Jan 2008 12:43:40 +0000 (13:43 +0100)]
Handle missing default branch and error out on invalid branch names

When no branch is specified and the repository does not have a default branch,
use the first branch.

Also, print sensible errormessages when the repository does not contain any
branches and when invalid branchnames are specified.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd plain patch view
Lars Hjemli [Mon, 10 Dec 2007 20:47:29 +0000 (21:47 +0100)]
Add plain patch view

The new view mimics the output from `git format-patch`, making it possible
to cherry-pick directly from cgit with something like `curl $url | git am`.

Inspired by a patch to `git-apply` by Mike Hommey:
  http://thread.gmane.org/gmane.comp.version-control.git/67611/focus=67610

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd support for automatic and custom clone urls
Lars Hjemli [Mon, 3 Dec 2007 00:49:38 +0000 (01:49 +0100)]
Add support for automatic and custom clone urls

This adds support for two new parameters to cgitrc: clone-prefix and
repo.clone-url.

If clone-prefix is specified, all repos will get a clone url printed in the
sidebar; the url is generated by clone-prefix + repo.url.

Additionally, each repo can specify repo.clone-url which will override any
such auto-generated url.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoCompare string lengths when parsing the snapshot mask
Lars Hjemli [Sun, 2 Dec 2007 23:39:20 +0000 (00:39 +0100)]
Compare string lengths when parsing the snapshot mask

We used to rely on the result from strncmp() without comparing the length of
the strings involved. Even worse, any single-character format specifier would
enable zip-format due to the optional '.'-prefix since the length of the
mask then would become zero.

Noticed-by: Evan Martin <sys@neugierig.org>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoDefault repo description to "[no description]"
Evan Martin [Sun, 2 Dec 2007 22:39:30 +0000 (14:39 -0800)]
Default repo description to "[no description]"

Otherwise, when you leave out a description for a repository, the NULL
default causes cgit to print out titles like "cgit - (null)".

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'stable'
Lars Hjemli [Sun, 2 Dec 2007 21:28:37 +0000 (22:28 +0100)]
Merge branch 'stable'

* stable:
  Handle missing timestamp in commit/tag objects
  Set commit date on snapshot contents

17 years agoHandle missing timestamp in commit/tag objects
Lars Hjemli [Sun, 2 Dec 2007 21:11:35 +0000 (22:11 +0100)]
Handle missing timestamp in commit/tag objects

When a commit or tag lacks author/committer/tagger timestamp, do not skip
the next line in the commit/tag object.

Also, do not bother to print timestamps with value 0 as it is close to certain
to be bogus.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd cell-spacing in html
Lars Hjemli [Fri, 16 Nov 2007 09:28:29 +0000 (10:28 +0100)]
Add cell-spacing in html

There are some browsers which don't support the border-spacing property

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUse tables for page layout
Lars Hjemli [Fri, 16 Nov 2007 08:52:03 +0000 (09:52 +0100)]
Use tables for page layout

It feels like the Right Thing, and it fixes some rendering problems in a
much used webbrowser.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoGimp my logo
Lars Hjemli [Fri, 16 Nov 2007 08:51:35 +0000 (09:51 +0100)]
Gimp my logo

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd support for "robots" meta-tag
Lars Hjemli [Sun, 11 Nov 2007 20:57:21 +0000 (21:57 +0100)]
Add support for "robots" meta-tag

With this change, cgit will start to generate the "robots" meta-tag, using
a default value of "index, nofollow".

The default value can be modified with a new cgitrc variable, "robots".

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoGenerate valid html for "downloads" menu header
Lars Hjemli [Sun, 11 Nov 2007 12:44:39 +0000 (13:44 +0100)]
Generate valid html for "downloads" menu header

Noticed-by: http://validator.w3.org
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'lh/testsuite'
Lars Hjemli [Sun, 11 Nov 2007 12:17:13 +0000 (13:17 +0100)]
Merge branch 'lh/testsuite'

* lh/testsuite:
  Set commit date on snapshot contents
  Fix html error detected by test-suite
  Create initial testsuite

17 years agoSet commit date on snapshot contents
Lars Hjemli [Sun, 11 Nov 2007 12:14:15 +0000 (13:14 +0100)]
Set commit date on snapshot contents

The testsuite revealed that cgit snapshots don't set any useful timestamp on
the files contained in the snapshot.

Cherry-picked-from: 2ff33a8a0405b420cd75e0e207c7efeecd6f130b
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoSet commit date on snapshot contents
Lars Hjemli [Sun, 11 Nov 2007 12:14:15 +0000 (13:14 +0100)]
Set commit date on snapshot contents

The testsuite revealed that cgit snapshots don't set any useful timestamp on
the files contained in the snapshot.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoFix html error detected by test-suite
Lars Hjemli [Sun, 11 Nov 2007 12:04:28 +0000 (13:04 +0100)]
Fix html error detected by test-suite

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoCreate initial testsuite
Lars Hjemli [Sat, 10 Nov 2007 23:40:58 +0000 (00:40 +0100)]
Create initial testsuite

This creates a simple testsuite, heavily inspired by the testsuite in git.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'stable'
Lars Hjemli [Fri, 9 Nov 2007 12:52:48 +0000 (13:52 +0100)]
Merge branch 'stable'

* stable:
  CGIT 0.7.1
  Makefile install: include cgit.png, do not empty cache

Conflicts:

Makefile

17 years agoCGIT 0.7.1 v0.7.1
Lars Hjemli [Fri, 9 Nov 2007 12:51:00 +0000 (13:51 +0100)]
CGIT 0.7.1

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMakefile install: include cgit.png, do not empty cache
Lars Hjemli [Fri, 9 Nov 2007 12:47:58 +0000 (13:47 +0100)]
Makefile install: include cgit.png, do not empty cache

The cache-cleaning is potentially dangerous, so lets move it away from the
install target. A special emptycache target can be used to run the rm -rf.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMinor css tweaks
Lars Hjemli [Fri, 9 Nov 2007 12:19:56 +0000 (13:19 +0100)]
Minor css tweaks

Don't specify border and background color for input controls, reduce font-
size of heading in sidebar.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'stable'
Lars Hjemli [Thu, 8 Nov 2007 11:22:39 +0000 (12:22 +0100)]
Merge branch 'stable'

* stable:
  Support "/" as virtual-root

17 years agoSupport "/" as virtual-root
Lars Hjemli [Thu, 8 Nov 2007 11:20:05 +0000 (12:20 +0100)]
Support "/" as virtual-root

When the virtual-root was a single "/", it would be normalized to NULL due
to removal of trailing slashes, which in turn would fool us to belive that
we shouldn't generate virtual urls.

This makes the "/" normalize to "", effectively allowing virtual urls like
http://example.com/projectname to be generated without specifying the
full domain name as the virtual root.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMakefile: link with libiconv if NEEDS_LIBICONV is defined
Lars Hjemli [Tue, 6 Nov 2007 08:35:07 +0000 (09:35 +0100)]
Makefile: link with libiconv if NEEDS_LIBICONV is defined

This seems to be needed to compile on cygwin.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoMerge branch 'iconv-rebased' of http://x2a.org/pub/git/cgit
Lars Hjemli [Mon, 5 Nov 2007 23:38:18 +0000 (00:38 +0100)]
Merge branch 'iconv-rebased' of http://x2a.org/pub/git/cgit

* 'iconv-rebased' of http://x2a.org/pub/git/cgit:
  Use utf8::reencode_string from git
  Convert subject and message with iconv_msg.
  Add iconv_msg function.
  Set msg_encoding according to the header.
  Add commit->msg_encoding, allocate msg dynamicly.

17 years agoShow lines changed as -n/+m in shortlogs
Lars Hjemli [Mon, 5 Nov 2007 23:35:12 +0000 (00:35 +0100)]
Show lines changed as -n/+m in shortlogs

This is way more informative than the total number of changed lines.

Suggested-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoUse utf8::reencode_string from git
Lars Hjemli [Mon, 5 Nov 2007 21:27:43 +0000 (22:27 +0100)]
Use utf8::reencode_string from git

This replaces the iconv-support in cgit with similar functions already
existing in git.

Signed-off-by: Lars Hjemli <hjemli@gmai.com>
17 years agoConvert subject and message with iconv_msg.
Jonathan Bastien-Filiatrault [Fri, 26 Oct 2007 22:13:41 +0000 (18:13 -0400)]
Convert subject and message with iconv_msg.

17 years agoAdd iconv_msg function.
Jonathan Bastien-Filiatrault [Fri, 26 Oct 2007 22:11:26 +0000 (18:11 -0400)]
Add iconv_msg function.

17 years agoSet msg_encoding according to the header.
Jonathan Bastien-Filiatrault [Fri, 26 Oct 2007 22:10:26 +0000 (18:10 -0400)]
Set msg_encoding according to the header.

17 years agoAdd commit->msg_encoding, allocate msg dynamicly.
Jonathan Bastien-Filiatrault [Fri, 26 Oct 2007 22:09:06 +0000 (18:09 -0400)]
Add commit->msg_encoding, allocate msg dynamicly.

17 years agoDon't show the the branch selector button if javascript is enabled
Lars Hjemli [Sat, 3 Nov 2007 13:17:58 +0000 (14:17 +0100)]
Don't show the the branch selector button if javascript is enabled

Suggested-by: Olivier Ramonat <olivier@ramonat.fr>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoDo not require javascript-enabled clients
Lars Hjemli [Sat, 3 Nov 2007 13:05:12 +0000 (14:05 +0100)]
Do not require javascript-enabled clients

A simple submit-button is all that's required to make the branch selector
drop-down work on any client, so lets add one.

Noticed-by: Olivier Ramonat <olivier@ramonat.fr>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoCGIT 0.7 v0.7
Lars Hjemli [Sat, 3 Nov 2007 10:35:55 +0000 (11:35 +0100)]
CGIT 0.7

17 years agoUse GIT-1.5.3.5
Lars Hjemli [Sat, 3 Nov 2007 10:33:54 +0000 (11:33 +0100)]
Use GIT-1.5.3.5

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoDon't include current SHA1 in 'log' menu-item
Lars Hjemli [Sat, 3 Nov 2007 10:33:28 +0000 (11:33 +0100)]
Don't include current SHA1 in 'log' menu-item

This ensures that the menu-item always prints the log for the active branch.
Predictability is good.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoDon't include current path in menu links
Lars Hjemli [Sat, 3 Nov 2007 10:23:47 +0000 (11:23 +0100)]
Don't include current path in menu links

The menu-links are a lot more predictable this way.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoFix search form action/hidden fields
Lars Hjemli [Sat, 3 Nov 2007 10:15:56 +0000 (11:15 +0100)]
Fix search form action/hidden fields

The search form didn't properly honor the current path, so this commit
fixes cgit_fileurl() and add_hidden_formfields() to make the issue go
away.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
17 years agoAdd search parameters to cgit_log_link
Lars Hjemli [Sat, 3 Nov 2007 09:42:37 +0000 (10:42 +0100)]
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>
17 years agoFix typo in css
Shunichi Fuji [Sat, 3 Nov 2007 08:36:09 +0000 (09:36 +0100)]
Fix typo in css

Signed-off-by: Lars Hjemli <hjemli@gmail.com>