aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* src/lib.c: Mark local FILE* variable as constEuAndreh2021-08-271-1/+1
|
* src/*.c: Add newline between function return type and its nameEuAndreh2021-08-279-78/+164
| | | | | | | | | | | | | The purpose of this change is two-fold: - make function and variable declarations grep-friendly (one can use a pattern /^fn_name/ to find the definition); - make the lines shorter, so less functions need to have their arguments span over many lines. This is more grep-friendly both for finding the function definition, but also for matching on the return type of the function or the variable. Update tests/c-lint.sh to enforce this.
* src/lib.c: Stick to 80 columnsEuAndreh2021-08-241-1/+2
|
* src/lib.{c,h}: Make args to gistatic_main() constEuAndreh2021-08-242-2/+2
|
* src/lib.c: Move unit_tests_gistatic to the end of the fileEuAndreh2021-08-241-19/+19
|
* src/: Move logerr* functions to src/logerr.{c,h}; forward tarballs_fd to ↵EuAndreh2021-08-235-39/+220
| | | | src/tar.c
* src/tar.c: Add link to the reference specificationEuAndreh2021-08-221-0/+7
|
* re 's/write_tarball_from_directory/tarball_write_from_directory/g'EuAndreh2021-08-223-3/+3
|
* src/: s/tarzify/tarball_write_from_directory/gEuAndreh2021-08-223-3/+3
|
* src/tar.c: tarzify(): Return 0 by default for nowEuAndreh2021-08-221-1/+1
|
* src/lib.c: Fix logic condition for deciding when to generate tarbalssEuAndreh2021-08-221-1/+1
|
* src/lib.c: Write repo_tarballs_refs_each, calling stub tarzify() functionEuAndreh2021-08-223-18/+95
|
* src/lib.c: Tweak test_start() nameEuAndreh2021-08-221-1/+1
|
* src/lib.c: Add strsjoin() with testsEuAndreh2021-08-221-0/+104
|
* src/lib.c: Differentiate between -1 and other errors when looping through ↵EuAndreh2021-08-221-2/+10
| | | | Git references
* Rename src/gistatic.* src/lib.*EuAndreh2021-08-224-10/+11
|
* src/gistatic.c: Remove unused MSGsEuAndreh2021-08-222-16/+8
|
* Have a single top-level main for running unit-testsEuAndreh2021-08-225-39/+27
| | | | | | | | | | | | | | | | | | | Instead of each .c file becoming a self-standing .t executable file, and being run for executing the unit tests local to the file, now each .c becomes a .to object (akin to a .o object, but one where the -DTEST flag is given to the compiler). After that, all the .to objects are linked together in a gistatic-tests executable, in a equivalent way that all .o files get linked together in a gistatic executable. This change was necessary in order to allow dependencies between objects. The next task will be making a tar of a repository tree checkout, and src/gistatic.{o,to} will start depending on src/tar.{o,to}. If each file has its own main function when -DTEST is given, then I wont be able to link them together. I took the opportunity that I had to change the Makefile, and I improved the dependency between targets and dependencies greatly. From what I can tell now, it is correct.
* src/gistatic.c: Remove .logo bogus color attributeEuAndreh2021-08-221-4/+0
|
* src/gistatic.c: Suppress "Download" and "Commit message" columns from tags ↵EuAndreh2021-08-221-27/+1
| | | | table in refs.html
* src/gistatic.c: repo_refs_({tag => tags}|{branch => branches})_eachEuAndreh2021-08-211-4/+4
|
* src/gistatic.c: create functions for loops; encode refs.html page dynamic ↵EuAndreh2021-08-211-165/+196
| | | | content
* src/gistatic.c: Use <OBJECT>_<PART>_<VERB> nomenclature for function namesEuAndreh2021-08-211-15/+15
|
* src/tests-lib.c: Move testing helper function and share it with other filesEuAndreh2021-08-214-26/+55
|
* src/gistatic.c: Add dark mode CSS media queryEuAndreh2021-08-201-5/+39
|
* src/gistatic.c: s/snapshots/tarballs/EuAndreh2021-08-201-9/+9
|
* src/gistatic.c: Handle overflow of size_t valuesEuAndreh2021-08-201-6/+73
|
* src/gistatic.c: Reword comment on date formatEuAndreh2021-08-201-1/+1
|
* src/gistatic.c: Write actual usage and help textsEuAndreh2021-08-192-5/+30
|
* src/gistatic.c: Include usage message on -h flagEuAndreh2021-08-191-1/+1
|
* src/gistatic.c: Enforce fn(void) ruleEuAndreh2021-08-191-11/+14
|
* src/gistatic.c: Move main() to src/main.cEuAndreh2021-08-193-6/+19
|
* src/tar.{h,c}: Add src/tar.hEuAndreh2021-08-192-1/+9
|
* src/gistatic.c: Add <meta name="description" .../> to HTML <head>EuAndreh2021-08-172-2/+10
|
* src/gistatic.c: Split alt messages of index and repository pagesEuAndreh2021-08-172-49/+55
|
* src/gistatic.c: Keep default <a> underline lookEuAndreh2021-08-171-5/+0
| | | | | This is more accessible, as the links have the extra visual queue that they're links.
* Add stub src/tar.cEuAndreh2021-08-071-0/+15
|
* src/gistatic.c: trim_newline() => strtrim(), trim more chars and a sequence ↵EuAndreh2021-08-061-14/+116
| | | | of them
* src/gistatic.c: Trim trailing newline of description filesEuAndreh2021-08-051-0/+55
|
* tests/: Add integration tests, also test with ValgrindEuAndreh2021-08-051-2/+2
|
* Move tests/resources{ => /repositories}/repo*EuAndreh2021-08-051-4/+6
|
* Use .git symlink to simplify testing of embedded repositoriesEuAndreh2021-08-051-4/+4
|
* tests/resources/*: Embed Git repositories directlyEuAndreh2021-08-041-3/+3
| | | | Implements #question-5414aee2-031a-5759-2a22-d572ee899ac0.
* src/gistatic.c: Use "loop_cleanup" goto tagEuAndreh2021-08-041-10/+16
|
* src/gistatic.c: Mark test helper functions as staticEuAndreh2021-08-021-3/+3
|
* src/gistatic.c: Use <th> over <tr> inside <thead>EuAndreh2021-08-021-26/+25
|
* aux/assert-catgets.sh: Add, include in "check" target on Makefile; update ↵EuAndreh2021-08-021-0/+30
| | | | gistatic.msg
* src/gistatic.c: WIP implementation of repo_write_snapshots()EuAndreh2021-08-021-0/+67
|
* src/gistatic.c: Tweak CSS and HTML, and some libgit2 error loggingEuAndreh2021-08-021-15/+24
|
* src/gistatic.c: Support generating refs.html fileEuAndreh2021-08-012-252/+773
|