summaryrefslogtreecommitdiffstatshomepage
path: root/parsing.c
Commit message (Collapse)AuthorAge
* cgit_parse_commit(): Add missing call to xstrdup()Lars Hjemli2007-10-27
| | | | | | |
#!/bin/sh

. ./setup.sh

prepare_tests "Check content on index page"

run_test 'generate index page' 'cgit_url "" >trash/tmp'
run_test 'find foo repo' 'grep -e "foo" trash/tmp'
run_test 'find foo description' 'grep -e "\[no description\]" trash/tmp'
run_test 'find bar repo' 'grep -e "bar" trash/tmp'
run_test 'find bar description' 'grep -e "the bar repo" trash/tmp'
run_test 'find foo+bar repo' 'grep -e ">foo+bar<" trash/tmp'
run_test 'verify foo+bar link' 'grep -e "/foo+bar/" trash/tmp'
run_test 'verify "with%20space" link' 'grep -e "/with%20space/" trash/tmp'
run_test 'no tree-link' '! grep -e "foo/tree" trash/tmp'
run_test 'no log-link' '! grep -e "foo/log" trash/tmp'

tests_done
in a patch by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Update to libgit 1.5.2-rc2Lars Hjemli2007-05-08 | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Do not die if tag has no messageLars Hjemli2007-02-04 | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Add function cgit_parse_tag()Lars Hjemli2007-01-17 | | | | | | Teach cgit how to extract author info from a tag. Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Handle empty/malformed commit messagesLars Hjemli2007-01-16 | | | | | | | An empty commit message would trigger a segfault in the current cgit_parse_commit(). Also, make sure that all char-pointers are properly initialized. * Handle %xx encoding in querystringLars Hjemli2007-01-04 | | | | | | | Convert valid %xx expressions in querystring to ascii, ignore invalid expressions (i.e. eat the three characters %xx). Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)> * Handle '+' in querystringLars Hjemli2006-12-28 | | | | | | Translate '+' to ' ' in querystring parser (still doesn't handle %xx) Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Teach commit parser about author/committer email + timestampLars Hjemli2006-12-16 | | | | | | | | | | | We want all four of these when showing a commit, so save them in the commitinfo struct. Btw: There's probably no good reason to save committer timestamp since it's already available in commit->date. But it doesn't hurt us either, and it makes the parser look more complete, so we just do it. Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Add ui-commit.c + misc ui cleanupsLars Hjemli2006-12-16 | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Add a common commit parserLars Hjemli2006-12-15 | | | | | | Make a better commit parser, replacing the ugly one in ui-log.c Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.cLars Hjemli2006-12-11 Signed-off-by: Lars Hjemli <hjemli@gmail.com>