cgit
11 years agoadd libcwa submodule libcwa
Christian Thaeter [Fri, 14 Dec 2007 17:01:45 +0000 (18:01 +0100)]
add libcwa submodule

11 years agoCoverted most of the sidebar menu to libcwa
Christian Thaeter [Fri, 14 Dec 2007 15:14:09 +0000 (16:14 +0100)]
Coverted most of the sidebar menu to libcwa

11 years agoMerge commit 'origin/master' into libcwa
Christian Thaeter [Wed, 12 Dec 2007 18:16:26 +0000 (19:16 +0100)]
Merge commit 'origin/master' into libcwa

Conflicts:

Makefile
cgit.h
shared.c
ui-shared.c

11 years agolet REQUEST_METHOD default to GET
Christian Thaeter [Wed, 12 Dec 2007 17:58:11 +0000 (18:58 +0100)]
let REQUEST_METHOD default to GET

11 years agotags in summary
Christian Thaeter [Wed, 12 Dec 2007 17:56:56 +0000 (18:56 +0100)]
tags in summary

11 years agocrude time-stats report
Christian Thaeter [Wed, 12 Dec 2007 15:07:39 +0000 (16:07 +0100)]
crude time-stats report

11 years agotest config file update, enable more features
Christian Thaeter [Tue, 11 Dec 2007 19:08:19 +0000 (20:08 +0100)]
test config file update, enable more features

11 years agosome small mixed fixes
Christian Thaeter [Tue, 11 Dec 2007 19:07:48 +0000 (20:07 +0100)]
some small mixed fixes

11 years agoWIP: Huge libcwa'fication
Christian Thaeter [Tue, 11 Dec 2007 19:06:45 +0000 (20:06 +0100)]
WIP: Huge libcwa'fication

Start deploying from ui-summary top down

11 years agoremove some 'cgit_docend()' calls
Christian Thaeter [Tue, 11 Dec 2007 18:59:49 +0000 (19:59 +0100)]
remove some 'cgit_docend()' calls

11 years agoFIX: cmdline arg handling
Christian Thaeter [Tue, 11 Dec 2007 18:59:16 +0000 (19:59 +0100)]
FIX: cmdline arg handling

11 years agopagetemplate roundup, put diagnostics at the end
Christian Thaeter [Tue, 11 Dec 2007 18:54:38 +0000 (19:54 +0100)]
pagetemplate roundup, put diagnostics at the end

11 years agoreworked cgit_log_link(), new repolink()
Christian Thaeter [Tue, 11 Dec 2007 10:14:54 +0000 (11:14 +0100)]
reworked cgit_log_link(), new repolink()

11 years agoAdd plain patch view origin/HEAD origin/master
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>
12 years agoWIP: cgit_log_link returning Html tree, should be simplified
Christian Thaeter [Sun, 9 Dec 2007 00:52:44 +0000 (01:52 +0100)]
WIP: cgit_log_link returning Html tree, should be simplified

12 years ago'cgit_print_error()' conversion to libcwa
Christian Thaeter [Fri, 7 Dec 2007 11:49:44 +0000 (12:49 +0100)]
'cgit_print_error()' conversion to libcwa

12 years agomake 'struct cgitpage cgit_page' global
Christian Thaeter [Fri, 7 Dec 2007 11:32:51 +0000 (12:32 +0100)]
make 'struct cgitpage cgit_page' global

libgit callbacks can't handle user supplied data :(

12 years agoWIP: pass 'page' around when generating results
Christian Thaeter [Fri, 7 Dec 2007 07:09:16 +0000 (08:09 +0100)]
WIP: pass 'page' around when generating results

12 years agoremoved redundant 'html_str()', few cosmetics
Christian Thaeter [Fri, 7 Dec 2007 07:08:23 +0000 (08:08 +0100)]
removed redundant 'html_str()', few cosmetics

12 years agorename html() function
Christian Thaeter [Fri, 7 Dec 2007 05:02:09 +0000 (06:02 +0100)]
rename html() function

new libcwa renamed 'html_env()' to 'html()' , rename exisiting 'html()'
to 'old_html()'

12 years agoMerge branch 'fixes' of git.pipapo.org:cgit into libcwa
Christian Thaeter [Thu, 6 Dec 2007 05:51:55 +0000 (06:51 +0100)]
Merge branch 'fixes' of git.pipapo.org:cgit into libcwa

Conflicts:

ui-shared.c

12 years agotwo small fixes handling uninitialized data fixes
Christian Thaeter [Thu, 6 Dec 2007 05:12:35 +0000 (06:12 +0100)]
two small fixes handling uninitialized data

* When someone passed a non existent repository "r=nothere" then the ttl
  was not initialized.

* cgit_get_repoinfo() returns NULL on failure which was not acknowledged
  when creating the pageheader

12 years agonow the sidebar, incomplete yet.
Christian Thaeter [Wed, 5 Dec 2007 08:14:46 +0000 (09:14 +0100)]
now the sidebar, incomplete yet.

12 years agocrude repolist generation with libcwa
Christian Thaeter [Wed, 5 Dec 2007 04:53:20 +0000 (05:53 +0100)]
crude repolist generation with libcwa

12 years agocreate a html template page, not used yet
Christian Thaeter [Tue, 4 Dec 2007 07:44:58 +0000 (08:44 +0100)]
create a html template page, not used yet

12 years agolibcwd sync
Christian Thaeter [Tue, 4 Dec 2007 07:41:47 +0000 (08:41 +0100)]
libcwd sync

12 years agoAdd a pagetemplate structure/constructor
Christian Thaeter [Tue, 4 Dec 2007 03:21:18 +0000 (04:21 +0100)]
Add a pagetemplate structure/constructor

cgitpage holds the whole generated page under a handle and gives access
to handles into the template, to be filled with content later.

12 years agoobsolete old_html_include
Christian Thaeter [Mon, 3 Dec 2007 09:43:05 +0000 (10:43 +0100)]
obsolete old_html_include

12 years agoMerge branch 'master' of git://hjemli.net/pub/git/cgit into libcwa
Christian Thaeter [Mon, 3 Dec 2007 09:10:43 +0000 (10:10 +0100)]
Merge branch 'master' of git://hjemli.net/pub/git/cgit into libcwa

12 years agofix Makefile, create and run configure in libcwa only when needed
Christian Thaeter [Mon, 3 Dec 2007 09:10:32 +0000 (10:10 +0100)]
fix Makefile, create and run configure in libcwa only when needed

12 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>
12 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

12 years agoHandle missing timestamp in commit/tag objects origin/stable
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>
12 years agoWIP: cwa integration, obsolete/commenting out some code, fixups
Christian Thaeter [Sun, 2 Dec 2007 03:29:53 +0000 (04:29 +0100)]
WIP: cwa integration, obsolete/commenting out some code, fixups

12 years agoadd emacs file variables
Christian Thaeter [Sun, 2 Dec 2007 02:28:14 +0000 (03:28 +0100)]
add emacs file variables

12 years agointegrated building of libcwa
Christian Thaeter [Sat, 1 Dec 2007 19:33:35 +0000 (20:33 +0100)]
integrated building of libcwa

12 years agoWIP: various changes (amend this commit) test.tar.bz2 master
Christian Thaeter [Tue, 27 Nov 2007 04:06:18 +0000 (05:06 +0100)]
WIP: various changes (amend this commit)

12 years agoadded upload form
Christian Thaeter [Fri, 23 Nov 2007 20:55:37 +0000 (21:55 +0100)]
added upload form

12 years agoWIP: work on edit UI, debug output for do_commit
Christian Thaeter [Fri, 23 Nov 2007 19:17:49 +0000 (20:17 +0100)]
WIP: work on edit UI, debug output for do_commit

12 years agobarely working edit ui
Christian Thaeter [Fri, 23 Nov 2007 02:56:17 +0000 (03:56 +0100)]
barely working edit ui

12 years agoadding goibhniu's html skeleton
Christian Thaeter [Fri, 23 Nov 2007 00:51:43 +0000 (01:51 +0100)]
adding goibhniu's html skeleton

12 years agoundo Makefile changes, using cgit.conf now
Christian Thaeter [Thu, 22 Nov 2007 11:29:04 +0000 (12:29 +0100)]
undo Makefile changes, using cgit.conf now

12 years agoWIP: merged old test code, for a serious start now
Christian Thaeter [Wed, 21 Nov 2007 22:19:32 +0000 (23:19 +0100)]
WIP: merged old test code, for a serious start now

12 years agoadd mini-httpd.sh and configs for running in place
Christian Thaeter [Wed, 21 Nov 2007 21:35:04 +0000 (22:35 +0100)]
add mini-httpd.sh and configs for running in place

12 years agomerge with Lars
Christian Thaeter [Tue, 20 Nov 2007 19:29:23 +0000 (20:29 +0100)]
merge with Lars

12 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>
12 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>
12 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>
12 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>
12 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>
12 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

12 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>
12 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>
12 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>
12 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>
12 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

12 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>
12 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>
12 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>
12 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

12 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>
12 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>
12 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 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.

12 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>
12 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>
12 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.

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

12 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.

12 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.

12 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>
12 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>
12 years agoCGIT 0.7 v0.7
Lars Hjemli [Sat, 3 Nov 2007 10:35:55 +0000 (11:35 +0100)]
CGIT 0.7

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 years agoChange the cgit layout
Lars Hjemli [Tue, 30 Oct 2007 09:47:38 +0000 (10:47 +0100)]
Change the cgit layout

This modifies and hopefully improves the layout of all cgit pages:

  * Remove the header from all pages and replace it with a sidebar;
    most pages have sufficient width but many needs more height.

  * Add a dropdown-box to switch between branches, using a one-liner
    javascript to reload the current page in context of the selected branch.

  * Include refs found below refs/archives in the sidebar, appearing as a
    set of menuitems below a 'download' heading.

  * Include the brand new cgit logo

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoAdd config param 'index-info'
Lars Hjemli [Tue, 30 Oct 2007 09:39:59 +0000 (10:39 +0100)]
Add config param 'index-info'

This parameter will be used to include a html file in the upcoming sidebar
on the index page.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoTeach cgit_object_link() about tag objects
Lars Hjemli [Sun, 28 Oct 2007 14:40:47 +0000 (15:40 +0100)]
Teach cgit_object_link() about tag objects

This makes random tag links more helpfull, e.g. when a branch head references
a tag object, link to the tag page.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoMake print_branch() handle refs not pointing at commits
Lars Hjemli [Sun, 28 Oct 2007 14:36:18 +0000 (15:36 +0100)]
Make print_branch() handle refs not pointing at commits

The master branch of stable/linux-2.6.20 currently references a tag
object, which makes print_branch() die with a segfault. This teaches
print_branch() to handle such cases more gracefully.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoTeach log search about --grep, --author and --committer
Lars Hjemli [Sun, 28 Oct 2007 14:23:00 +0000 (15:23 +0100)]
Teach log search about --grep, --author and --committer

This makes the log searching more explicit, using a dropdown box to specify
the commit field to match against.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoAdd html_option() function
Lars Hjemli [Sun, 28 Oct 2007 11:08:45 +0000 (12:08 +0100)]
Add html_option() function

This is a generic function used to output html "option" tags.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoMerge branch 'stable'
Lars Hjemli [Sat, 27 Oct 2007 11:55:44 +0000 (13:55 +0200)]
Merge branch 'stable'

* stable:
  cgit_parse_commit(): Add missing call to xstrdup()

12 years agocgit_parse_commit(): Add missing call to xstrdup()
Lars Hjemli [Sat, 27 Oct 2007 11:50:18 +0000 (13:50 +0200)]
cgit_parse_commit(): Add missing call to xstrdup()

It's rather silly to point into random memory-locations. Also, remove a
call to strdup() used on a literal char *.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoCleanup code introduced by the filter-refs topic
Lars Hjemli [Sat, 27 Oct 2007 11:34:17 +0000 (13:34 +0200)]
Cleanup code introduced by the filter-refs topic

The functions used to print branches and tags were only half-done and
somewhat confused. Fix it.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoMerge branch 'filter-refs'
Lars Hjemli [Sat, 27 Oct 2007 08:55:10 +0000 (10:55 +0200)]
Merge branch 'filter-refs'

* filter-refs:
  Add links to the new refs page from summary page
  Add support for refs view
  Make cgit_print_branches()/cgit_print_tags() external
  Add descriptions of summary-branches and summary-tags to cgitrc
  Add support for config param summary-branches
  Move logic for age comparision from cmp_tag_age into cmp_age()
  Add support for config param summary-tags
  Sort tags by age
  Use reflist to print tag info
  Use reflist to print branch info
  Add functions and types for ref lists

12 years agoAdd links to the new refs page from summary page
Lars Hjemli [Sat, 27 Oct 2007 08:47:44 +0000 (10:47 +0200)]
Add links to the new refs page from summary page

If either branches or tags are filtered on the summary page, add a link to
refs/heads and/or refs/tags right below the last branch/tag.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoAdd support for refs view
Lars Hjemli [Sat, 27 Oct 2007 08:36:53 +0000 (10:36 +0200)]
Add support for refs view

This enables the new urls $repo/refs, $repo/refs/heads and $repo/refs/tags,
which can be used to print _all_ branches and/or tags.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoMake cgit_print_branches()/cgit_print_tags() external
Lars Hjemli [Sat, 27 Oct 2007 08:25:40 +0000 (10:25 +0200)]
Make cgit_print_branches()/cgit_print_tags() external

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoAdd descriptions of summary-branches and summary-tags to cgitrc
Lars Hjemli [Sat, 27 Oct 2007 08:15:54 +0000 (10:15 +0200)]
Add descriptions of summary-branches and summary-tags to cgitrc

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoAdd support for config param summary-branches
Lars Hjemli [Sat, 27 Oct 2007 08:13:42 +0000 (10:13 +0200)]
Add support for config param summary-branches

This parameter can be used to specify max number of branches to show
on the summary page (if not all branches will be displayed, the "most
idle" branches are the ones to be pruned). The default value for this
parameter is 0, which disables the pruning.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoMove logic for age comparision from cmp_tag_age into cmp_age()
Lars Hjemli [Sat, 27 Oct 2007 08:06:03 +0000 (10:06 +0200)]
Move logic for age comparision from cmp_tag_age into cmp_age()

Simple refactoring to enable later filtering of branches based on age.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoAdd support for config param summary-tags
Lars Hjemli [Thu, 25 Oct 2007 08:40:16 +0000 (10:40 +0200)]
Add support for config param summary-tags

This parameter can be used to specify max number of tags to show on
the summary page. If not specified, all tags are printed.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoSort tags by age
Lars Hjemli [Thu, 25 Oct 2007 18:33:04 +0000 (20:33 +0200)]
Sort tags by age

This adds a function to compare timestamps and then uses it as callback
for qsort() before printing out tags.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoUse reflist to print tag info
Lars Hjemli [Thu, 25 Oct 2007 08:28:15 +0000 (10:28 +0200)]
Use reflist to print tag info

This updates ui-summary.c to use a reflist instead of for_each_tag_ref(),
as a step towards more flexible tag handling (filtering/sorting).

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoUse reflist to print branch info
Lars Hjemli [Thu, 25 Oct 2007 08:13:25 +0000 (10:13 +0200)]
Use reflist to print branch info

This updates ui-summary.c to use a reflist instead of for_each_branch_ref(),
as a step towards more flexible branch handling (filtering/sorting).

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoAdd functions and types for ref lists
Lars Hjemli [Thu, 25 Oct 2007 07:30:06 +0000 (09:30 +0200)]
Add functions and types for ref lists

This adds two structs, refinfo and reflist, and functions for building
a list of refs.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
12 years agoMerge branch 'stable'
Lars Hjemli [Sat, 27 Oct 2007 07:15:41 +0000 (09:15 +0200)]
Merge branch 'stable'

* stable:
  Skip unknown header fields when parsing tags and commits