webgit
12 years agofirst simple rxpd access check
Christian Thaeter [Wed, 23 Jan 2008 13:22:07 +0000 (14:22 +0100)]
first simple rxpd access check

this checks the tuple
 HOST=%s:USER-AGENT=%s:ACTION=%s:REPO=%s:HEAD=%s
against the list 'webgit/access' on the configured rxpd

An example rxpd webgit/access list looks like following:
# format: HOST=%s:USER-AGENT=%s:ACTION=%s:REPO=%s:HEAD=%s
:allow:^HOST=10\.20\.[^:]*:
:allow:^HOST=127\.0\.0\.1:
:deny::ACTION=config:
:allow:

12 years agoadd skin handling
Christian Thaeter [Tue, 22 Jan 2008 20:47:59 +0000 (21:47 +0100)]
add skin handling

remove stylesheet config option

add functions:
 webgit_buffer_provide() - 32 cycling buffers
 webgit_webskinpath() - construct path string
 webgit_skinpath() - constuct path string

add defines to be configured later:
 WEBGIT_SKINDIR_DEFAULT
 WEBGIT_WEBSKINDIR_DEFAULT
 WEBGIT_DEFAULT_SKIN

options for webgit and repo config:
 skindir - set the dir where the skins are installed
 webskindir - set the dir from webroot to access the skins
 skin - set default skin name

cgi query parameter:
 skin - choose custom skin

12 years agoadd check preventing path traversals
Christian Thaeter [Tue, 22 Jan 2008 20:36:25 +0000 (21:36 +0100)]
add check preventing path traversals

just a crude check forbiding any '..' in a string for now

12 years agoadd emacs variables to all source files
Christian Thaeter [Tue, 22 Jan 2008 18:01:09 +0000 (19:01 +0100)]
add emacs variables to all source files

we use 'gnu' style with spaces, no tabs

12 years agoPost merge fixes
Christian Thaeter [Tue, 22 Jan 2008 17:15:40 +0000 (18:15 +0100)]
Post merge fixes

revert .gitignore, please use a build dir!
removed unnecessary whitespaces
reindenting and replacing tabs by spaces
remove webgit_header() from webgit.c

12 years agoadjusting id/css for object-commit
Cillian de Roiste [Mon, 21 Jan 2008 22:49:49 +0000 (22:49 +0000)]
adjusting id/css for object-commit

12 years agoadding id for object-commit
Cillian de Roiste [Mon, 21 Jan 2008 22:43:30 +0000 (22:43 +0000)]
adding id for object-commit

12 years agoadding id for object-commit
Cillian de Roiste [Mon, 21 Jan 2008 22:28:53 +0000 (22:28 +0000)]
adding id for object-commit

12 years agoadjusting table css (typo)
Cillian de Roiste [Mon, 21 Jan 2008 21:57:09 +0000 (21:57 +0000)]
adjusting table css (typo)

12 years agoadjusting table css
Cillian de Roiste [Mon, 21 Jan 2008 21:56:28 +0000 (21:56 +0000)]
adjusting table css

12 years agoadjusting header.inc and footer.inc css
Cillian de Roiste [Mon, 21 Jan 2008 21:46:00 +0000 (21:46 +0000)]
adjusting header.inc and footer.inc css

12 years agoadding header.inc and footer.inc (for skinning)
Cillian de Roiste [Mon, 21 Jan 2008 21:39:31 +0000 (21:39 +0000)]
adding header.inc and footer.inc (for skinning)

12 years agoadding header.inc and footer.inc (for skinning)
Cillian de Roiste [Mon, 21 Jan 2008 21:36:17 +0000 (21:36 +0000)]
adding header.inc and footer.inc (for skinning)

12 years agoadding header.inc and footer.inc (for skinning)
Cillian de Roiste [Mon, 21 Jan 2008 21:34:35 +0000 (21:34 +0000)]
adding header.inc and footer.inc (for skinning)

12 years agoadding header.inc and footer.inc (for skinning)
Cillian de Roiste [Mon, 21 Jan 2008 21:30:19 +0000 (21:30 +0000)]
adding header.inc and footer.inc (for skinning)

12 years agoadding header.inc and footer.inc (for skinning) to webgit.c
Cillian de Roiste [Mon, 21 Jan 2008 21:08:02 +0000 (21:08 +0000)]
adding header.inc and footer.inc (for skinning) to webgit.c

12 years agoadding header.inc and footer.inc (for skinning) to webgit.c
Cillian de Roiste [Mon, 21 Jan 2008 21:07:42 +0000 (21:07 +0000)]
adding header.inc and footer.inc (for skinning) to webgit.c

12 years agoadding header.inc and footer.inc (for skinning) to webgit.c
Cillian de Roiste [Mon, 21 Jan 2008 21:06:40 +0000 (21:06 +0000)]
adding header.inc and footer.inc (for skinning) to webgit.c

12 years agomoving the header inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 20:06:15 +0000 (20:06 +0000)]
moving the header inside the main container

12 years agomoving the header inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 19:55:16 +0000 (19:55 +0000)]
moving the header inside the main container

12 years agomoving the header inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 19:50:56 +0000 (19:50 +0000)]
moving the header inside the main container

12 years agomoving the header inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 19:41:42 +0000 (19:41 +0000)]
moving the header inside the main container

12 years agomoving smaller things inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 19:02:36 +0000 (19:02 +0000)]
moving smaller things inside the main container

12 years agomoving smaller things inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 19:01:32 +0000 (19:01 +0000)]
moving smaller things inside the main container

12 years agomoving smaller things inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 18:48:32 +0000 (18:48 +0000)]
moving smaller things inside the main container

12 years agomoving smaller things inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 18:46:35 +0000 (18:46 +0000)]
moving smaller things inside the main container

12 years agomoving things inside the main container
Cillian de Roiste [Mon, 21 Jan 2008 18:40:47 +0000 (18:40 +0000)]
moving things inside the main container

12 years agovarious css tweaks
Cillian de Roiste [Mon, 21 Jan 2008 18:13:10 +0000 (18:13 +0000)]
various css tweaks

12 years agoremoving heights for layout elements, stretching container to fill the page, putting...
Cillian de Roiste [Mon, 21 Jan 2008 17:44:14 +0000 (17:44 +0000)]
removing heights for layout elements, stretching container to fill the page, putting the timer on the bottom

12 years agoadding favicon from upstream git
Cillian de Roiste [Mon, 21 Jan 2008 17:34:26 +0000 (17:34 +0000)]
adding favicon from upstream git

12 years agobasic css in place for summary table, and major page elements
Cillian de Roiste [Mon, 21 Jan 2008 17:29:50 +0000 (17:29 +0000)]
basic css in place for summary table, and major page elements

12 years agoexperimenting with git summary table, to see if it gets the right id .. also some...
Cillian de Roiste [Mon, 21 Jan 2008 17:07:48 +0000 (17:07 +0000)]
experimenting with git summary table, to see if it gets the right id .. also some minor css additions

12 years agofixing after merge with pipapo
Cillian de Roiste [Mon, 21 Jan 2008 13:02:15 +0000 (13:02 +0000)]
fixing after merge with pipapo

12 years agoMerge commit 'muq/master'; commit 'origin/master'
Cillian de Roiste [Sun, 20 Jan 2008 23:20:01 +0000 (23:20 +0000)]
Merge commit 'muq/master'; commit 'origin/master'

12 years agoMerge branch 'master' of git://git.pipapo.org/webgit
Cillian de Roiste [Sun, 20 Jan 2008 22:40:09 +0000 (22:40 +0000)]
Merge branch 'master' of git://git.pipapo.org/webgit

12 years agotesting git from machine 2
Cillian [Sun, 20 Jan 2008 22:32:30 +0000 (22:32 +0000)]
testing git from machine 2

12 years agogit workflow test
Cillian de Roiste [Sun, 20 Jan 2008 22:30:17 +0000 (22:30 +0000)]
git workflow test

12 years agoplaying around with libcwa and webgit .. added a tiny bit of css
Cillian [Sun, 20 Jan 2008 21:46:47 +0000 (21:46 +0000)]
playing around with libcwa and webgit .. added a tiny bit of css

12 years agogit config file viewing and editing
Christian Thaeter [Sun, 20 Jan 2008 20:25:01 +0000 (21:25 +0100)]
git config file viewing and editing

12 years agoadd a 'blob' query parameter which is used for content when editing
Christian Thaeter [Sun, 20 Jan 2008 20:24:12 +0000 (21:24 +0100)]
add a 'blob' query parameter which is used for content when editing

12 years agoexport the error and warning functions for general use
Christian Thaeter [Sun, 20 Jan 2008 20:23:02 +0000 (21:23 +0100)]
export the error and warning functions for general use

12 years agoadd stylesheet and rxpd option / config
Christian Thaeter [Sun, 20 Jan 2008 15:56:18 +0000 (16:56 +0100)]
add stylesheet and rxpd option / config

stylesheet can be used in the webgit.conf to set a default stylesheet
and in withing [web] to set repository specific stylesheets

rxpd needs to be set to host:port to enable rxpd policy support

12 years agofactored the single object types out into their own sources
Christian Thaeter [Fri, 18 Jan 2008 13:38:38 +0000 (14:38 +0100)]
factored the single object types out into their own sources

12 years agotag displaying and handling
Christian Thaeter [Thu, 17 Jan 2008 21:29:19 +0000 (22:29 +0100)]
tag displaying and handling

12 years agochange first parameter for object display functions
Christian Thaeter [Thu, 17 Jan 2008 20:33:36 +0000 (21:33 +0100)]
change first parameter for object display functions
from webgit_query* to webgit_repo_info*

12 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

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

12 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

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

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

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

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

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