summaryrefslogtreecommitdiff
path: root/stagit.c
AgeCommit message (Collapse)Author
2018-11-18detect filetype changes in diff (for example a normal file to symlink)Hiltjo Posthuma
2018-11-11detect more names for README and LICENSEHiltjo Posthuma
- for license: LICENSE, LICENSE.md, COPYING. - for readme: README, README.md.
2018-11-11detect copies and renames based on the threshold of changesHiltjo Posthuma
2018-08-22simplify range checkHiltjo Posthuma
2018-08-22stagit: log: indicate when using the -l option and there are more commitsHiltjo Posthuma
2018-05-25assume OpenBSD 5.9+, always try pledge(2) on OpenBSDHiltjo Posthuma
2018-05-09Clarify usage regarding -c and -l mutual exclusionQuentin Rameau
2018-03-26pledge after git_libgit2_initHiltjo Posthuma
this is because libgit uses curl which uses some initialization checks, namely an IPv6 check which creates a socket.
2018-03-18optimization: only diff the tree when it is needed for the diffstat...Hiltjo Posthuma
... 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.
2018-01-21stagit: add -l option: limit the amount of commits for the log.html fileHiltjo Posthuma
2017-11-19fix: add "fattr" pledge for chmod(2) for cachefileHiltjo Posthuma
improve checks for when head is NULL (empty repo)
2017-11-10fix file permissions for cachefile and respect umask(2)Hiltjo Posthuma
2017-11-10more verbose errors: show which file failed on openHiltjo Posthuma
2017-09-04allow umask to handle permissionsHiltjo Posthuma
2017-06-23separate getstats from getbyoid: slightly fasterHiltjo Posthuma
2017-05-07for the commit Date: header use the git format-patch formatHiltjo Posthuma
2017-05-07dont truncate summary length anymoreHiltjo Posthuma
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.
2017-05-07improve commitinfo_getstatsHiltjo Posthuma
- reorder: unnecessary allocation when git_patch_from_diff fails. - no need to free patch object when git_patch_from_diff fails.
2017-04-17align line numbers to 8 spacesHiltjo Posthuma
... now it is done.
2017-04-17writeblobhtml: minor style fixHiltjo Posthuma
using len instead of the loop 'i' is slightly more clear
2017-04-17stagit: fix rendering of first TAB in fileHiltjo Posthuma
else TABs wont render properly (interpreted as part of HTML whitespace) at the first TAB of the line.
2017-04-16writeblobhtml: fix possible uninitialized variable n when len == 0Hiltjo Posthuma
... whoops
2017-04-16writeblobhtml: improve file view for text-browsersHiltjo Posthuma
browsers such as lynx and w3m have some quirks displaying tables and pre elements. links is a bit better with this.
2017-04-16text-browser improvementsHiltjo Posthuma
for links, lynx, w3m, dil[dl]o etc: - set oldschool align attribute. - apply bold markup to table header.
2017-04-15browser compatibility: use numeric entity for 'Hiltjo Posthuma
' is a XHTML entity, browsers such as links, w3m, lynx and dillo don't support it.
2017-04-01writeblobhtml, make fprintf format string constHiltjo Posthuma
2017-03-12fix potential leak, found by clang-analyzerHiltjo Posthuma
2017-03-12fix memory leak of commitinfoHiltjo Posthuma
2017-03-12atom.xml: add newline before EOFHiltjo Posthuma
2017-03-12fix memory leak of commitinfo->parentHiltjo Posthuma
2017-03-12fix memory leak of blob objectHiltjo Posthuma
2017-03-12simplify/shorten pledge stubHiltjo Posthuma
2017-03-12reduce scope of repodir, remove unused branch parameterHiltjo Posthuma
2016-11-09also remove language and text direction attribute from <html>Hiltjo Posthuma
2016-11-09remove Content-Language: enHiltjo Posthuma
thanks Aymeric Mansoux!
2016-05-29treat an empty repo (without a HEAD) as validHiltjo Posthuma
and create the standard files. Disable caching if there is no HEAD.
2016-05-21refs_cmp: simplify check, functionally the sameHiltjo Posthuma
2016-05-08check if LICENSE, README and .gitmodules is a file blobHiltjo Posthuma
don't link to directory trees, etc. Thanks 600360 for reporting it!
2016-05-07simplify, id is unusedHiltjo Posthuma
2016-05-07simplify, no need for gotoHiltjo Posthuma
2016-05-07consistency for messages for special-case in diffstatHiltjo Posthuma
2016-05-07fix error in "code cleanup" commit 9328d2690e118127bcaa5cf9f665d8e7711f7a03Hiltjo Posthuma
... the loop was simplified, but forgot to remove p++ (double used) while rebasing the change.
2016-05-06fix and simplify time offsetHiltjo Posthuma
2016-05-06make diffstat files an anchor (jump to delta)Hiltjo Posthuma
2016-05-03fix joinpath(): use of global 'repodir', should be 'path'Hiltjo Posthuma
use joinpath for another case.
2016-05-03fix regression from last commitHiltjo Posthuma
2016-05-03code cleanupHiltjo Posthuma
2016-05-03remove config.h, add options to stagit.cHiltjo Posthuma
2016-05-03add OpenBSD pledge(2) support using -DUSE_PLEDGEHiltjo Posthuma
2016-05-02style: write atom feed end in one write, kills 2 linesHiltjo Posthuma