webgit
13 years agoa shellscipt to start a mini-httpd in place and a example config
Christian Thaeter [Thu, 17 Jan 2008 17:01:10 +0000 (18:01 +0100)]
a shellscipt to start a mini-httpd in place and a example config

13 years agoimplement 'raw' links from tree
Christian Thaeter [Wed, 16 Jan 2008 14:55:27 +0000 (15:55 +0100)]
implement 'raw' links from tree

13 years agolet the git submodule point to my patched git for now
Christian Thaeter [Wed, 16 Jan 2008 14:09:48 +0000 (15:09 +0100)]
let the git submodule point to my patched git for now

13 years agothe summary_action
Christian Thaeter [Wed, 16 Jan 2008 13:22:15 +0000 (14:22 +0100)]
the summary_action

13 years agorefactored log listing
Christian Thaeter [Wed, 16 Jan 2008 13:22:01 +0000 (14:22 +0100)]
refactored log listing

13 years agocorrect ...message_parse() and ...header_parse() to commit_..._parse()
Christian Thaeter [Wed, 16 Jan 2008 13:20:55 +0000 (14:20 +0100)]
correct ...message_parse() and ...header_parse() to commit_..._parse()

13 years agoCleanup, types and compiler warnings
Christian Thaeter [Wed, 16 Jan 2008 13:10:54 +0000 (14:10 +0100)]
Cleanup, types and compiler warnings

13 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

13 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

13 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

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

13 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

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

13 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

13 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

13 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

13 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

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

13 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

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

13 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

13 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

13 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

13 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

13 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

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

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

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

13 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

13 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

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

13 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

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

13 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

13 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

13 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

13 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

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

13 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

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

13 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

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

13 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)

13 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

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

13 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

13 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

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

13 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

13 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

13 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

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

13 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

13 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

13 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

13 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

13 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

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

13 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

13 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

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

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

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

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

13 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

13 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

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

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