aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/shared.c
Commit message (Expand)AuthorAge
* ui-repolist: implement lazy caching of repo->mtimeLars Hjemli2008-11-29
* Move cgit_parse_query() from parsing.c to html.c as http_parse_querystring()Lars Hjemli2008-04-08
* Move cgit_version from shared.c to cgit.cLars Hjemli2008-03-24
* Move non-generic functions from shared.c to cgit.cLars Hjemli2008-03-24
* Refactor snapshot supportLars Hjemli2008-03-24
* Add command dispatcherLars Hjemli2008-03-24
* Add struct cgit_page to cgit_contextLars Hjemli2008-03-24
* Introduce html.hLars Hjemli2008-03-18
* Move cgit_repo into cgit_contextLars Hjemli2008-02-16
* Add all config variables into struct cgit_contextLars Hjemli2008-02-16
* Introduce struct cgit_contextLars Hjemli2008-02-16
* Use GIT-1.5.4.rc4Lars Hjemli2008-01-21
* Merge branch 'stable'Lars Hjemli2008-01-13
|\
| * Default repo description to "[no description]"Evan Martin2007-12-03
* | Add plain patch viewLars Hjemli2007-12-11
* | Add support for automatic and custom clone urlsLars Hjemli2007-12-03
* | Add support for "robots" meta-tagLars Hjemli2007-11-11
* | Merge branch 'stable'Lars Hjemli2007-11-08
|\|
| * Support "/" as virtual-rootLars Hjemli2007-11-08
* | Add commit->msg_encoding, allocate msg dynamicly.Jonathan Bastien-Filiatrault2007-11-05
|/
* Change the cgit layoutLars Hjemli2007-10-30
* Add config param 'index-info'Lars Hjemli2007-10-30
* Teach log search about --grep, --author and --committerLars Hjemli2007-10-28
* Add support for refs viewLars Hjemli2007-10-27
* Add support for config param summary-branchesLars Hjemli2007-10-27
* Add support for config param summary-tagsLars Hjemli2007-10-27
* Add functions and types for ref listsLars Hjemli2007-10-27
* Add prefix parameter to cgit_diff_tree()Lars Hjemli2007-10-01
* Add support for a renamelimit option in cgitrcLars Hjemli2007-09-25
* Use trim_end() to remove trailing slashesLars Hjemli2007-09-20
* Remove a few compiler warningsLars Hjemli2007-09-20
* Make cgit honor CACHE_ROOT as defined in MakefileChris Pickel2007-09-08
* Set xdemitconf_t.findfunc=NULLLars Hjemli2007-09-04
* Merge branch 'master' of git://git.klever.net/patchwork/cgitLars Hjemli2007-07-22
|\
| * allow selective enabling of snapshotsMichael Krelin2007-07-21
| * added a chk_non_negative checkMichael Krelin2007-07-20
* | Add ui-tag.cLars Hjemli2007-07-22
|/
* Merge branch 'lh/menu'Lars Hjemli2007-06-29
|\
| * Add trim_end() and use it to remove trailing slashes from repo pathsLars Hjemli2007-06-26
| * Add setting to enable/disable extra links on index pageLars Hjemli2007-06-19
* | Add version info from git-describeLars Hjemli2007-06-18
|/
* Add cgit_diff_link()Lars Hjemli2007-06-17
* ui-tree: unify with ui-view, use path to select tree/blobLars Hjemli2007-06-16
* Implemented configurable HEAD shortlog on summary page.Ondrej Jirman2007-05-31
* Add repo.readme parameterLars Hjemli2007-05-23
* Show time since last change on index pageLars Hjemli2007-05-22
* Merge branch 'repogroups'Lars Hjemli2007-05-20
|\
| * Teach cgit how to group repositories by categoryLars Hjemli2007-05-18
* | Merge branch 'virtual-url'Lars Hjemli2007-05-20
|\ \
| * | Enable url=value querystring parameterLars Hjemli2007-05-18
span class="n">cgit_query_ofs = 0; int htmlfd = 0; void cgit_global_config_cb(const char *name, const char *value) { if (!strcmp(name, "root")) cgit_root = xstrdup(value); else if (!strcmp(name, "root-title")) cgit_root_title = xstrdup(value); else if (!strcmp(name, "css")) cgit_css = xstrdup(value); else if (!strcmp(name, "logo")) cgit_logo = xstrdup(value); else if (!strcmp(name, "logo-link")) cgit_logo_link = xstrdup(value); else if (!strcmp(name, "virtual-root")) cgit_virtual_root = xstrdup(value); else if (!strcmp(name, "nocache")) cgit_nocache = atoi(value); else if (!strcmp(name, "cache-root")) cgit_cache_root = xstrdup(value); else if (!strcmp(name, "cache-root-ttl")) cgit_cache_root_ttl = atoi(value); else if (!strcmp(name, "cache-repo-ttl")) cgit_cache_repo_ttl = atoi(value); else if (!strcmp(name, "cache-static-ttl")) cgit_cache_static_ttl = atoi(value); else if (!strcmp(name, "cache-dynamic-ttl")) cgit_cache_dynamic_ttl = atoi(value); } void cgit_repo_config_cb(const char *name, const char *value) { if (!strcmp(name, "name")) cgit_repo_name = xstrdup(value); else if (!strcmp(name, "desc")) cgit_repo_desc = xstrdup(value); else if (!strcmp(name, "owner")) cgit_repo_owner = xstrdup(value); } void cgit_querystring_cb(const char *name, const char *value) { if (!strcmp(name,"r")) { cgit_query_repo = xstrdup(value); } else if (!strcmp(name, "p")) { cgit_query_page = xstrdup(value); } else if (!strcmp(name, "q")) { cgit_query_search = xstrdup(value); } else if (!strcmp(name, "h")) { cgit_query_head = xstrdup(value); cgit_query_has_symref = 1; } else if (!strcmp(name, "id")) { cgit_query_sha1 = xstrdup(value); cgit_query_has_sha1 = 1; } else if (!strcmp(name, "id2")) { cgit_query_sha2 = xstrdup(value); cgit_query_has_sha1 = 1; } else if (!strcmp(name, "ofs")) { cgit_query_ofs = atoi(value); } } void *cgit_free_commitinfo(struct commitinfo *info) { free(info->author); free(info->author_email); free(info->committer); free(info->committer_email); free(info->subject); free(info); return NULL; }