summaryrefslogtreecommitdiff
path: root/cgit.h (follow)
Commit message (Expand)AuthorAgeFilesLines
* Add support for downloading single blobsLars Hjemli2007-05-091-0/+1
* ui-view: show pathname if specified in querystringLars Hjemli2007-05-081-1/+1
* Update to libgit 1.5.2-rc2Lars Hjemli2007-05-081-4/+16
* Make snapshot feature configurableLars Hjemli2007-02-081-0/+2
* Add support for snapshotsLars Hjemli2007-02-081-0/+10
* Read repo-info from /etc/cgitrcLars Hjemli2007-02-041-1/+17
* Add parameter to adjust max message length in log listingsLars Hjemli2007-01-281-0/+2
* Add function cgit_parse_tag()Lars Hjemli2007-01-171-0/+8
* WIP: add paths/backlinks to tree/blobviewLars Hjemli2007-01-121-1/+2
* Remove troublesome chars from cachefile namesLars Hjemli2007-01-121-0/+1
* Move cache_prepare() to cgitLars Hjemli2007-01-121-1/+0
* Handle %xx encoding in querystringLars Hjemli2007-01-041-0/+2
* Add basic log filteringLars Hjemli2006-12-281-1/+1
* Add generic support for search box in page headerLars Hjemli2006-12-281-1/+3
* Only show first 80 characters of commit subject in log and summaryLars Hjemli2006-12-221-0/+1
* Add basic diff viewLars Hjemli2006-12-201-0/+2
* Show list of modified files in ui-commit.cLars Hjemli2006-12-171-0/+1
* Add cgit_free_commitinfo() and use where neededLars Hjemli2006-12-161-0/+2
* Teach commit parser about author/committer email + timestampLars Hjemli2006-12-161-0/+4
* Add argument parsing + switch for uncached operationLars Hjemli2006-12-161-0/+1
* Move cgit_print_date into ui-shared, reuse in ui-summaryLars Hjemli2006-12-161-0/+1
* Add ui-commit.c + misc ui cleanupsLars Hjemli2006-12-161-2/+3
* Add a common commit parserLars Hjemli2006-12-151-0/+9
* Add simple pager to log pageLars Hjemli2006-12-141-0/+1
* Add display of tree content w/ui-tree.cLars Hjemli2006-12-131-0/+1
* Don't truncate valid cachefilesLars Hjemli2006-12-111-0/+1
* Move global variables + callback functions into shared.cLars Hjemli2006-12-111-3/+4
* Move functions for generic object output into ui-view.cLars Hjemli2006-12-111-0/+1
* Move log-functions into ui-log.cLars Hjemli2006-12-111-3/+2
* Move repo summary functions into ui-summary.cLars Hjemli2006-12-111-0/+3
* Move functions for repolist output into ui-repolist.cLars Hjemli2006-12-111-0/+8
* Move common output-functions into ui-shared.cLars Hjemli2006-12-111-1/+8
* Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.cLars Hjemli2006-12-111-0/+1
* Avoid infinite loops in caching layerLars Hjemli2006-12-111-0/+1
* Fix cache algorithm loopholeLars Hjemli2006-12-111-1/+2
* Add caching infrastructureLars Hjemli2006-12-101-2/+45
* Import cgit prototype from git treeLars Hjemli2006-12-091-0/+21
3-20 21:08:32 +0100'>2013-03-20html: check return value of writeJason A. Donenfeld1-2/+3 This squelches a gcc warning. It's also correct that we check to see if there are any partial or failed writes. For now, we just print a warning to stderr. In the future, perhaps it will prove wise to exit(1) on partial writes. 2013-03-20ui-shared: squelch compiler warning.Jason A. Donenfeld1-0/+1 Since tail is initialized to 0, we will never get a warning on the last if statement, but recent gcc complains anyway. So, we initialize len as well. Future gcc versions should be able to optimize this out anyway. 2013-03-20cgit.mk: Use SHELL_PATH_SQ to run gen-version.shJohn Keeping1-1/+1 On some platforms (notably Solaris) /bin/sh doesn't support enough of POSIX for gen-version.sh to run. Git's Makefile provides SHELL_PATH_SQ to address this issue so we just have to use it. Signed-off-by: John Keeping <john@keeping.me.uk> 2013-03-20cgit.mk: don't rebuild everything if CGIT_VERSION changesJohn Keeping1-1/+8 If CGIT_VERSION is in CGIT_CFLAGS then a change in version (for example because you have committed your changes) causes all of the CGit objects to be rebuilt. Avoid this by using EXTRA_CPPFLAGS to add the version for only those files that are affected and make them depend on VERSION. Signed-off-by: John Keeping <john@keeping.me.uk> 2013-03-20ui-patch: use cgit_version not CGIT_VERSIONJohn Keeping1-1/+1 We already have a global cgit_version which is set from the #define'd CGIT_VERSION in cgit.c. Change ui-patch.c to use this so that we only need to rebuild cgit.o when the version changes. Signed-off-by: John Keeping <john@keeping.me.uk> 2013-03-20Makefile: re-use Git's Makefile where possibleJohn Keeping3-119/+80 Git does quite a lot of platform-specific detection in its Makefile, which can result in it defining preprocessor variables that are used in its header files. If CGit does not define the same variables it can result in different sizes of some structures in different places in the same application. For example, on Solaris Git uses it's "compat" regex library which has a different sized regex_t structure than that available in the platform regex.h. This has a knock-on effect on the size of "struct rev_info" and leads to hard to diagnose runtime issues. In order to avoid all of this, introduce a "cgit.mk" file that includes Git's Makefile and make all of the existing logic apply to CGit's objects as well. This is slightly complicated because Git's Makefile must run in Git's directory, so all references to CGit files need to be prefixed with "../". In addition, OBJECTS is a simply expanded variable in Git's Makefile so we cannot just add our objects to it. Instead we must copy the two applicable rules into "cgit.mk". This has the advantage that we can split CGit-specific CFLAGS from Git's CFLAGS and hence avoid rebuilding all of Git whenever a CGit-specific value changes. Signed-off-by: John Keeping <john@keeping.me.uk> Acked-by: Jamie Couture <jamie.couture@gmail.com>