summaryrefslogtreecommitdiffstatshomepage
path: root/cgit.c
Commit message (Expand)AuthorAge
...
* cgit_print_snapshot_links: use url to specify snapshot nameLars Hjemli2007-07-23
* Merge branch 'master' of git://git.klever.net/patchwork/cgitLars Hjemli2007-07-22
|\
| * allow selective enabling of snapshotsMichael Krelin2007-07-21
| * shorten snapshot names to repo basenameMichael Krelin2007-07-21
| * add support for snapshot tarballsMichael Krelin2007-07-18
* | Add ui-tag.cLars Hjemli2007-07-22
|/
* make config adjustable via env variable CGIT_CONFIGMichael Krelin2007-07-03
* Merge branch 'lh/menu'Lars Hjemli2007-06-29
|\
| * Include querystring as part of cached filename for repo summary pageLars Hjemli2007-06-18
* | Add version info from git-describeLars Hjemli2007-06-18
|/
* Add cgit_diff_link()Lars Hjemli2007-06-17
* ui-log: honor id=sha1 on querystringLars Hjemli2007-06-17
* Add cgit_commit_link() + support for id=sha1 to commit viewLars Hjemli2007-06-17
* ui-tree: unify with ui-view, use path to select tree/blobLars Hjemli2007-06-16
* Add option to disable pager to cgit_print_log().Ondrej Jirman2007-05-31
* Enable url=value querystring parameterLars Hjemli2007-05-18
* Move cgit_get_repoinfo into shared.cLars Hjemli2007-05-18
* Add support for commitdiff via h parameterLars Hjemli2007-05-16
* Change commit-view to expect h parameter, not idLars Hjemli2007-05-16
* Enable default value for head parameterLars Hjemli2007-05-16
* Don't hardcode urls when SCRIPT_NAME is availableLars Hjemli2007-05-15
* Let makefile override the configfile locationLars Hjemli2007-05-14
* cgit.c: fix whitespace breakageLars Hjemli2007-05-14
* Add log filtering by path and link to it from tree viewLars Hjemli2007-05-14
* Add commitdiff between commit and each of it's parentLars Hjemli2007-05-13
* Add max-commit-count parameter to cgitrcLars Hjemli2007-05-13
* Add support for downloading single blobsLars Hjemli2007-05-09
* ui-view: show pathname if specified in querystringLars Hjemli2007-05-08
* Layout updateLars Hjemli2007-02-21
* Make snapshot feature configurableLars Hjemli2007-02-08
* Add support for snapshotsLars Hjemli2007-02-08
* Read repo-info from /etc/cgitrcLars Hjemli2007-02-04
* WIP: add paths/backlinks to tree/blobviewLars Hjemli2007-01-12
* Remove troublesome chars from cachefile namesLars Hjemli2007-01-12
* Move cache_prepare() to cgitLars Hjemli2007-01-12
* Use TTL-settings even in nocache modeLars Hjemli2007-01-05
* Add basic log filteringLars Hjemli2006-12-28
* Add generic support for search box in page headerLars Hjemli2006-12-28
* Add basic diff viewLars Hjemli2006-12-20
* Allow relative paths for cgit_cache_rootLars Hjemli2006-12-16
* Add argument parsing + switch for uncached operationLars Hjemli2006-12-16
* Add ui-commit.c + misc ui cleanupsLars Hjemli2006-12-16
* Add simple pager to log pageLars Hjemli2006-12-14
* Add display of tree content w/ui-tree.cLars Hjemli2006-12-13
* Don't truncate valid cachefilesLars Hjemli2006-12-11
* Move global variables + callback functions into shared.cLars Hjemli2006-12-11
* Move functions for generic object output into ui-view.cLars Hjemli2006-12-11
* Move log-functions into ui-log.cLars Hjemli2006-12-11
* Move repo summary functions into ui-summary.cLars Hjemli2006-12-11
* Move functions for repolist output into ui-repolist.cLars Hjemli2006-12-11
">"$TEST_DIRECTORY/valgrind" CGIT_VALGRIND=$(cd ../valgrind && pwd) PATH="$CGIT_VALGRIND/bin:$PATH" export GIT_VALGRIND CGIT_VALGRIND else PATH="$(pwd)/../..:$PATH" fi FILTER_DIRECTORY=$(cd ../filters && pwd) if cgit --version | grep -F -q "[+] Lua scripting"; then export CGIT_HAS_LUA=1 else export CGIT_HAS_LUA=0 fi mkrepo() { name=$1 count=$2 test_create_repo "$name" ( cd "$name" n=1 while test $n -le $count do echo $n >file-$n git add file-$n git commit -m "commit $n" n=$(expr $n + 1) done if test "$3" = "testplus" then echo "hello" >a+b git add a+b git commit -m "add a+b" git branch "1+2" fi ) } setup_repos() { rm -rf cache mkdir -p cache mkrepo repos/foo 5 >/dev/null mkrepo repos/bar 50 >/dev/null mkrepo repos/foo+bar 10 testplus >/dev/null mkrepo "repos/with space" 2 >/dev/null mkrepo repos/filter 5 testplus >/dev/null cat >cgitrc <<EOF virtual-root=/ cache-root=$PWD/cache cache-size=1021 snapshots=tar.gz tar.bz zip enable-log-filecount=1 enable-log-linecount=1 summary-log=5 summary-branches=5 summary-tags=5 clone-url=git://example.org/\$CGIT_REPO_URL.git enable-filter-overrides=1 repo.url=foo repo.path=$PWD/repos/foo/.git # Do not specify a description for this repo, as it then will be assigned # the constant value "[no description]" (which actually used to cause a # segfault). repo.url=bar repo.path=$PWD/repos/bar/.git repo.desc=the bar repo repo.url=foo+bar repo.path=$PWD/repos/foo+bar/.git repo.desc=the foo+bar repo repo.url=with space repo.path=$PWD/repos/with space/.git repo.desc=spaced repo repo.url=filter-exec repo.path=$PWD/repos/filter/.git repo.desc=filtered repo repo.about-filter=exec:$FILTER_DIRECTORY/dump.sh repo.commit-filter=exec:$FILTER_DIRECTORY/dump.sh repo.email-filter=exec:$FILTER_DIRECTORY/dump.sh repo.source-filter=exec:$FILTER_DIRECTORY/dump.sh repo.readme=master:a+b EOF if [ $CGIT_HAS_LUA -eq 1 ]; then cat >>cgitrc <<EOF repo.url=filter-lua repo.path=$PWD/repos/filter/.git repo.desc=filtered repo repo.about-filter=lua:$FILTER_DIRECTORY/dump.lua repo.commit-filter=lua:$FILTER_DIRECTORY/dump.lua repo.email-filter=lua:$FILTER_DIRECTORY/dump.lua repo.source-filter=lua:$FILTER_DIRECTORY/dump.lua repo.readme=master:a+b EOF fi } cgit_query() { CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="$1" cgit } cgit_url() { CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="url=$1" cgit } strip_headers() { while read -r line do test -z "$line" && break done cat } test -z "$CGIT_TEST_NO_CREATE_REPOS" && setup_repos