aboutsummaryrefslogtreecommitdiff
path: root/stagit.c
Commit message (Collapse)AuthorAgeFilesLines
* stagit: log: indicate when using the -l option and there are more commitsHiltjo Posthuma2018-08-221-0/+4
|
* assume OpenBSD 5.9+, always try pledge(2) on OpenBSDHiltjo Posthuma2018-05-251-4/+2
|
* Clarify usage regarding -c and -l mutual exclusionQuentin Rameau2018-05-091-1/+1
|
* pledge after git_libgit2_initHiltjo Posthuma2018-03-261-5/+8
| | | | | this is because libgit uses curl which uses some initialization checks, namely an IPv6 check which creates a socket.
* optimization: only diff the tree when it is needed for the diffstat...Hiltjo Posthuma2018-03-181-17/+27
| | | | | | | ... also clear all fields in the structure on failure. This is not as big an optimization as stagit-gopher, because the diffstat is displayed in the log, but the difference is still measurable.
* stagit: add -l option: limit the amount of commits for the log.html fileHiltjo Posthuma2018-01-211-12/+37
|
* fix: add "fattr" pledge for chmod(2) for cachefileHiltjo Posthuma2017-11-191-7/+5
| | | | improve checks for when head is NULL (empty repo)
* fix file permissions for cachefile and respect umask(2)Hiltjo Posthuma2017-11-101-2/+10
|
* more verbose errors: show which file failed on openHiltjo Posthuma2017-11-101-2/+2
|
* allow umask to handle permissionsHiltjo Posthuma2017-09-041-1/+1
|
* separate getstats from getbyoid: slightly fasterHiltjo Posthuma2017-06-231-2/+4
|
* for the commit Date: header use the git format-patch formatHiltjo Posthuma2017-05-071-1/+1
|
* dont truncate summary length anymoreHiltjo Posthuma2017-05-071-14/+2
| | | | | | | | make sure not partial (invalid) utf-8 sequences are written. The old logic truncated by bytelen was wrong. It is too complex to implement it in a correct way with git: it is not assured a commit message is UTF-8 encoded. remove showlinecount and summarylen variables.
* improve commitinfo_getstatsHiltjo Posthuma2017-05-071-5/+2
| | | | | - reorder: unnecessary allocation when git_patch_from_diff fails. - no need to free patch object when git_patch_from_diff fails.
* align line numbers to 8 spacesHiltjo Posthuma2017-04-171-1/+1
| | | | ... now it is done.
* writeblobhtml: minor style fixHiltjo Posthuma2017-04-171-1/+1
| | | | using len instead of the loop 'i' is slightly more clear
* stagit: fix rendering of first TAB in fileHiltjo Posthuma2017-04-171-1/+1
| | | | | else TABs wont render properly (interpreted as part of HTML whitespace) at the first TAB of the line.
* writeblobhtml: fix possible uninitialized variable n when len == 0Hiltjo Posthuma2017-04-161-2/+2
| | | | ... whoops
* writeblobhtml: improve file view for text-browsersHiltjo Posthuma2017-04-161-16/+19
| | | | | | | browsers such as lynx and w3m have some quirks displaying tables and pre elements. links is a bit better with this.
* text-browser improvementsHiltjo Posthuma2017-04-161-12/+18
| | | | | | | for links, lynx, w3m, dil[dl]o etc: - set oldschool align attribute. - apply bold markup to table header.
* browser compatibility: use numeric entity for 'Hiltjo Posthuma2017-04-151-1/+1
| | | | | ' is a XHTML entity, browsers such as links, w3m, lynx and dillo don't support it.
* writeblobhtml, make fprintf format string constHiltjo Posthuma2017-04-011-1/+1
|
* fix potential leak, found by clang-analyzerHiltjo Posthuma2017-03-121-0/+1
|
* fix memory leak of commitinfoHiltjo Posthuma2017-03-121-1/+1
|
* atom.xml: add newline before EOFHiltjo Posthuma2017-03-121-1/+1
|
* fix memory leak of commitinfo->parentHiltjo Posthuma2017-03-121-0/+1
|
* fix memory leak of blob objectHiltjo Posthuma2017-03-121-0/+1
|
* simplify/shorten pledge stubHiltjo Posthuma2017-03-121-5/+1
|
* reduce scope of repodir, remove unused branch parameterHiltjo Posthuma2017-03-121-6/+6
|
* also remove language and text direction attribute from <html>Hiltjo Posthuma2016-11-091-1/+1
|
* remove Content-Language: enHiltjo Posthuma2016-11-091-1/+1
| | | | thanks Aymeric Mansoux!
* treat an empty repo (without a HEAD) as validHiltjo Posthuma2016-05-291-5/+10
| | | | and create the standard files. Disable caching if there is no HEAD.
* refs_cmp: simplify check, functionally the sameHiltjo Posthuma2016-05-211-6/+3
|
* check if LICENSE, README and .gitmodules is a file blobHiltjo Posthuma2016-05-081-3/+8
| | | | don't link to directory trees, etc. Thanks 600360 for reporting it!
* simplify, id is unusedHiltjo Posthuma2016-05-071-3/+2
|
* simplify, no need for gotoHiltjo Posthuma2016-05-071-5/+3
|
* consistency for messages for special-case in diffstatHiltjo Posthuma2016-05-071-4/+4
|
* fix error in "code cleanup" commit 9328d2690e118127bcaa5cf9f665d8e7711f7a03Hiltjo Posthuma2016-05-071-1/+0
| | | | | ... the loop was simplified, but forgot to remove p++ (double used) while rebasing the change.
* fix and simplify time offsetHiltjo Posthuma2016-05-061-8/+7
|
* make diffstat files an anchor (jump to delta)Hiltjo Posthuma2016-05-061-4/+4
|
* fix joinpath(): use of global 'repodir', should be 'path'Hiltjo Posthuma2016-05-031-22/+17
| | | | use joinpath for another case.
* fix regression from last commitHiltjo Posthuma2016-05-031-1/+1
|
* code cleanupHiltjo Posthuma2016-05-031-43/+18
|
* remove config.h, add options to stagit.cHiltjo Posthuma2016-05-031-1/+5
|
* add OpenBSD pledge(2) support using -DUSE_PLEDGEHiltjo Posthuma2016-05-031-0/+11
|
* style: write atom feed end in one write, kills 2 linesHiltjo Posthuma2016-05-021-3/+1
|
* cache support (-c option)Hiltjo Posthuma2016-05-021-38/+113
| | | | | | | | "Optionally the -c cachefile option can be used to cache the entries of the log page up to the point of the last commit. The cachefile will store the last commit id and the entries in the HTML table." this caches the diffstat and commits, it is an expensive operation (twss).
* small code cleanup: no need for status variableHiltjo Posthuma2016-05-011-4/+3
|
* atom feed: use published for author commit date, updated for committer dateHiltjo Posthuma2016-05-011-1/+8
| | | | this is the same as cgit.
* fix times (and timezone)Hiltjo Posthuma2016-05-011-11/+27
| | | | | | - in the index and log show the short time (GMT). - in the Atom feed use GMT time. - for commits show the time + offset.