webgit
12 years agoFunctions for displayin and handling branches
Christian Thaeter [Wed, 16 Jan 2008 13:09:03 +0000 (14:09 +0100)]
Functions for displayin and handling branches

12 years agowebgit_enter_repository is now webgit_repo_enter and returns a repo_info
Christian Thaeter [Tue, 15 Jan 2008 15:50:15 +0000 (16:50 +0100)]
webgit_enter_repository is now webgit_repo_enter and returns a repo_info

12 years agomoved log_menu|content_action to log.c|h
Christian Thaeter [Tue, 15 Jan 2008 14:38:43 +0000 (15:38 +0100)]
moved log_menu|content_action to log.c|h

12 years agocleanup and cosmetics
Christian Thaeter [Tue, 15 Jan 2008 10:16:12 +0000 (11:16 +0100)]
cleanup and cosmetics

12 years agosilence a lot of compiler warnings with some stubs
Christian Thaeter [Tue, 15 Jan 2008 10:15:17 +0000 (11:15 +0100)]
silence a lot of compiler warnings with some stubs

12 years agothe log_action
Christian Thaeter [Tue, 15 Jan 2008 10:11:50 +0000 (11:11 +0100)]
the log_action

12 years agoforgotten to commit the count_def declaration in webgit_query
Christian Thaeter [Tue, 15 Jan 2008 10:10:31 +0000 (11:10 +0100)]
forgotten to commit the count_def declaration in webgit_query

12 years agofew more parameters for webgit_log_link
Christian Thaeter [Tue, 15 Jan 2008 10:08:28 +0000 (11:08 +0100)]
few more parameters for webgit_log_link

12 years agocount parameter for cgi query and config options
Christian Thaeter [Tue, 15 Jan 2008 09:42:10 +0000 (10:42 +0100)]
count parameter for cgi query and config options

setting the 'count' will be used to limits items listed on one page

12 years agoadd parsers to get information out of gits commit objects
Christian Thaeter [Tue, 15 Jan 2008 09:39:33 +0000 (10:39 +0100)]
add parsers to get information out of gits commit objects

12 years agobuild gits difflib along
Christian Thaeter [Tue, 15 Jan 2008 09:36:45 +0000 (10:36 +0100)]
build gits difflib along

12 years agoDo a scan for 'last' information only when necessary
Christian Thaeter [Tue, 15 Jan 2008 07:38:37 +0000 (08:38 +0100)]
Do a scan for 'last' information only when necessary

all 'lasts' information is NULL default initialized and one has to call
webgit_repoinfo_find_last() on a per repository base only when needed

12 years agoinline images as raw action
Christian Thaeter [Tue, 8 Jan 2008 05:54:18 +0000 (06:54 +0100)]
inline images as raw action

12 years agoimplement action=raw which sends just the data-blob
Christian Thaeter [Tue, 8 Jan 2008 05:53:34 +0000 (06:53 +0100)]
implement action=raw which sends just the data-blob

12 years agoFIX: webgit_mimetype() to return strduped buffer or NULL
Christian Thaeter [Tue, 8 Jan 2008 05:45:50 +0000 (06:45 +0100)]
FIX: webgit_mimetype() to return strduped buffer or NULL

12 years agoadd a 'path' query parameter to maintain path and filename in queries
Christian Thaeter [Tue, 8 Jan 2008 04:46:21 +0000 (05:46 +0100)]
add a 'path' query parameter to maintain path and filename in queries

12 years agocontent type handling
Christian Thaeter [Tue, 8 Jan 2008 03:29:14 +0000 (04:29 +0100)]
content type handling

store content_type for the generated html in query
webgit_mimetype() queries a mimetype from /etc/mime.types for a given path

12 years agowebgit_enter_directory() to pick and setup a git repository
Christian Thaeter [Tue, 8 Jan 2008 03:26:22 +0000 (04:26 +0100)]
webgit_enter_directory() to pick and setup a git repository

12 years agorenamed 'giturl' option to 'url'
Christian Thaeter [Tue, 8 Jan 2008 03:22:48 +0000 (04:22 +0100)]
renamed 'giturl' option to 'url'

12 years agorecent patched git
Christian Thaeter [Tue, 8 Jan 2008 00:18:58 +0000 (01:18 +0100)]
recent patched git

12 years agocosmetics, divide source more visible
Christian Thaeter [Tue, 8 Jan 2008 00:18:33 +0000 (01:18 +0100)]
cosmetics, divide source more visible

12 years agowebgit_tree_action() dereferences an treeish to the tree object
Christian Thaeter [Tue, 8 Jan 2008 00:16:54 +0000 (01:16 +0100)]
webgit_tree_action() dereferences an treeish to the tree object

This is used for seamless module integration, a commit sha1 (module)
suffice to jump right to the tree of a submodule

12 years agosupport for last_committer and last_author when scanning repos
Christian Thaeter [Mon, 7 Jan 2008 21:12:49 +0000 (22:12 +0100)]
support for last_committer and last_author when scanning repos

12 years agoadd an email_link() function
Christian Thaeter [Mon, 7 Jan 2008 21:11:14 +0000 (22:11 +0100)]
add an email_link() function

12 years agouse path as name if no name was given
Christian Thaeter [Mon, 7 Jan 2008 21:09:12 +0000 (22:09 +0100)]
use path as name if no name was given

The former method of using basenames only yielded name clashes

12 years agoremoved git popen'ing
Christian Thaeter [Sun, 6 Jan 2008 02:37:33 +0000 (03:37 +0100)]
removed git popen'ing

12 years agouse (enhanced) libgit to iterate over the repository list
Christian Thaeter [Sun, 6 Jan 2008 01:41:14 +0000 (02:41 +0100)]
use (enhanced) libgit to iterate over the repository list

12 years agoMakefile fix for better rebuilding of libgit and new git version
Christian Thaeter [Sun, 6 Jan 2008 01:20:41 +0000 (02:20 +0100)]
Makefile fix for better rebuilding of libgit and new git version

12 years agoBig rename! ctgit is dead, long live webgit
Christian Thaeter [Thu, 3 Jan 2008 21:24:01 +0000 (22:24 +0100)]
Big rename! ctgit is dead, long live webgit

12 years agocrude input validation against a blacklist
Christian Thaeter [Thu, 3 Jan 2008 21:14:03 +0000 (22:14 +0100)]
crude input validation against a blacklist

This weeds out bad shell characters (for the few cases where we popen git)
path traversal is not yet addressed and is not a problem since we never
pass direct file names around so far

12 years agofirst crude blob display
Christian Thaeter [Thu, 3 Jan 2008 20:49:36 +0000 (21:49 +0100)]
first crude blob display

12 years agosubmodule repo links in tree view
Christian Thaeter [Thu, 3 Jan 2008 16:58:55 +0000 (17:58 +0100)]
submodule repo links in tree view

12 years agofirst tree display
Christian Thaeter [Thu, 3 Jan 2008 05:23:52 +0000 (06:23 +0100)]
first tree display

12 years agorefactor ctgit_object_link to be more flexible
Christian Thaeter [Wed, 2 Jan 2008 21:26:30 +0000 (22:26 +0100)]
refactor ctgit_object_link to be more flexible

12 years agofirst object ui for commits
Christian Thaeter [Wed, 2 Jan 2008 18:06:13 +0000 (19:06 +0100)]
first object ui for commits

12 years agocleanup and cosmetics
Christian Thaeter [Wed, 2 Jan 2008 18:04:54 +0000 (19:04 +0100)]
cleanup and cosmetics

add comments about to be done input validation and remove the libgit
prototypes in favor of including git headers
(TODO: add checks to configure)

12 years agoFix: set 'main' action after the query dispatch
Christian Thaeter [Mon, 31 Dec 2007 00:05:12 +0000 (01:05 +0100)]
Fix: set 'main' action after the query dispatch

12 years agosome cosmetics and commenting
Christian Thaeter [Sun, 30 Dec 2007 20:58:41 +0000 (21:58 +0100)]
some cosmetics and commenting

12 years agocompleting the links for the repo listing page
Christian Thaeter [Sun, 30 Dec 2007 20:57:55 +0000 (21:57 +0100)]
completing the links for the repo listing page

12 years agoadd ctgit_git_open/ctgit_git_close functionality
Christian Thaeter [Sun, 30 Dec 2007 20:55:39 +0000 (21:55 +0100)]
add ctgit_git_open/ctgit_git_close functionality

These functions can be used to fork non reentrant git commands

12 years agoquery handler cleanup ignore/me/test/branch
Christian Thaeter [Sat, 29 Dec 2007 12:22:31 +0000 (13:22 +0100)]
query handler cleanup

12 years agoinclude timestats in error_log for now
Christian Thaeter [Sat, 29 Dec 2007 11:39:44 +0000 (12:39 +0100)]
include timestats in error_log for now

12 years agouse [web] as configfile section
Christian Thaeter [Sat, 29 Dec 2007 11:39:21 +0000 (12:39 +0100)]
use [web] as configfile section

planning to rename ctgit to webgit in future

12 years agoimplicit 'action=object' when 'object=' is given and no action set
Christian Thaeter [Sat, 29 Dec 2007 11:38:27 +0000 (12:38 +0100)]
implicit 'action=object' when 'object=' is given and no action set

12 years agoproper repoinfo ctor/dtor, parsing gitconfig, moved age storage to
Christian Thaeter [Fri, 28 Dec 2007 23:40:38 +0000 (00:40 +0100)]
proper repoinfo ctor/dtor, parsing gitconfig, moved age storage to
repoinfo etc.

12 years agowe need to link with libssl for libgit
Christian Thaeter [Fri, 28 Dec 2007 23:35:11 +0000 (00:35 +0100)]
we need to link with libssl for libgit

This needs to be much better checked and configured in configure.ac later

12 years agogit's error handling can be hooked, unfortunally only by longjmp this way
Christian Thaeter [Fri, 28 Dec 2007 23:33:46 +0000 (00:33 +0100)]
git's error handling can be hooked, unfortunally only by longjmp this way

12 years agoadded a global 'error_log' for debugging
Christian Thaeter [Wed, 26 Dec 2007 20:31:55 +0000 (21:31 +0100)]
added a global 'error_log' for debugging

12 years agoSimple mainpage generation, skeletons for further work
Christian Thaeter [Mon, 24 Dec 2007 00:08:17 +0000 (01:08 +0100)]
Simple mainpage generation, skeletons for further work

12 years agoremove cwa subproject, install libcwa instead
Christian Thaeter [Mon, 24 Dec 2007 00:02:25 +0000 (01:02 +0100)]
remove cwa subproject, install libcwa instead

12 years agoconfig file loading
Christian Thaeter [Mon, 17 Dec 2007 21:46:23 +0000 (22:46 +0100)]
config file loading

12 years agoadd startup time to the query struct
Christian Thaeter [Mon, 17 Dec 2007 12:20:11 +0000 (13:20 +0100)]
add startup time to the query struct

12 years agobuild and link with libgit.a, crude hack for now
Christian Thaeter [Mon, 17 Dec 2007 12:15:31 +0000 (13:15 +0100)]
build and link with libgit.a, crude hack for now

12 years agoWIP: mainpage list of repositories
Christian Thaeter [Sun, 16 Dec 2007 21:31:22 +0000 (22:31 +0100)]
WIP: mainpage list of repositories

12 years agoadding repos
Christian Thaeter [Sun, 16 Dec 2007 21:30:26 +0000 (22:30 +0100)]
adding repos

12 years agoformatting cosmetics
Christian Thaeter [Sun, 16 Dec 2007 21:29:41 +0000 (22:29 +0100)]
formatting cosmetics

12 years agoctgit_query destructor
Christian Thaeter [Sun, 16 Dec 2007 21:27:46 +0000 (22:27 +0100)]
ctgit_query destructor

12 years agoput cgi request inside ctgit_query
Christian Thaeter [Sun, 16 Dec 2007 21:24:44 +0000 (22:24 +0100)]
put cgi request inside ctgit_query

12 years agoadd brief help strings to query/config/action declarations
Christian Thaeter [Sun, 16 Dec 2007 17:35:35 +0000 (18:35 +0100)]
add brief help strings to query/config/action declarations

12 years agoHere we go, first code
Christian Thaeter [Sun, 16 Dec 2007 17:05:39 +0000 (18:05 +0100)]
Here we go, first code

12 years agosubmodules setup
Christian Thaeter [Sun, 16 Dec 2007 13:31:35 +0000 (14:31 +0100)]
submodules setup