summaryrefslogtreecommitdiff
path: root/stagit.c
AgeCommit message (Collapse)Author
2020-11-06add font stylesheetBenjamin Chausse
2020-10-17Initial CommitBenjamin Chausse
2020-09-22Fix wrong memory deallocationMiquel Ortega
2020-09-10Fix memory leakOscar Benedito
2020-09-10Improve directory navigation UXOscar Benedito
Current directory path is now shown and navigation to parent directory has been added. The style for directory entries has changed to diferentiate from files.
2020-09-10Add separate listing page for every directoryMiquel Ortega
Instead of listing all the files in files.html, add dir.html at file/path/to/dir.html, which lists files in directory, for every directory. This generates a possible conflict with a directory with path path/to/dir.html.
2020-09-10Add tracked commit short OID to submodulesOscar Benedito
2020-09-05Add raw file outputOscar Benedito
2020-08-18Merge tag '0.9.4'Oscar Benedito
2020-08-11Logo from png to svg fileOscar Benedito
2020-08-11Design changesOscar Benedito
2020-08-11Add about page for repos with REAMDEOscar Benedito
This commits adds a new dependency: md4c (https://github.com/mity/md4c). Now stagit will generate an about page for each repo with a README, converting it to HTML if it is a Markdown file.
2020-08-10fix a small memleak in writeatom()Hiltjo Posthuma
non-tag references were not freed.
2020-08-06fix submodule lookup in bare reposkst
git_submodule_lookup does not work without a working tree [1], so the current approach fails to recognize any submodules in bare repos. Instead, notice that $ git ls-tree HEAD lists any submodules as commit objects regardless of a working tree. This is the only instance commit object is used in a tree, so we will use this to check for submodules. [1]: https://github.com/libgit2/libgit2/pull/4305/files
2020-07-30Added contributing informationOscar Benedito
2020-07-30Responsive designOscar Benedito
2020-07-20regression: do not show unset or empty tagsHiltjo Posthuma
2020-07-19refactor get reference, add another feed for tags/releasesHiltjo Posthuma
A separate Atom feed is helpful to ports maintainers to monitor new tags/releases.
2020-07-19sort branches and tags by time (descending)Hiltjo Posthuma
In general version tags are done in chronological order, so this will have a better sorting for tagged (versioned) releases. Request from Caltlgin Stsodaat and others, thanks!
2020-07-10Unify assetsOscar Benedito
2020-06-22favicon: png to icoOscar Benedito
2020-02-21atom.xml: improve output format a bitHiltjo Posthuma
2020-02-12improve includes, stagit-index does not need compat.hHiltjo Posthuma
2019-12-01add OpenBSD unveil supportHiltjo Posthuma
The unveil() system call first appeared in OpenBSD 6.4. For stagit it has the following properties now: - stagit-index: only read-access to the file-system for the specified directories/repositories. - stagit: read-access to the specified directory/repository. read-write and creation access to the current directory for the output files. read-write and creation access to the specified cache file.
2019-03-16escape HTML in pathsHiltjo Posthuma
- escape paths in diff line. - escape path in anchor href attribute in files.html
2019-03-09pedantic snprintf() improvementHiltjo Posthuma
POSIX says: "If an output error was encountered, these functions shall return a negative value and set errno to indicate the error."
2019-02-16change order of commits in log from most recent to old to applied orderHiltjo Posthuma
2019-02-16fix compile: libgit2 0.28 changed giterr_last to git_error_lastHiltjo Posthuma
libgit2 commit: https://github.com/libgit2/libgit2/commit/a27a4de6f8003961d38958893c6c637395c7cc04
2018-11-18in the diffstat prefix the type of change, allow CSS stylingHiltjo Posthuma
2018-11-18don't use a heuristic for renames, the content must match exactlyHiltjo Posthuma
this prevents showing files as renames when most (but not all) of the file was changed.
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