Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-11-16 | Print the number of remaining commits | Quentin Rameau | |
2021-11-16 | ignore '\r' in writing the blob aswell | Hiltjo Posthuma | |
Follow-up on commit 295e4b8cb95114bb74b582c7332bc4c171f36dd3 which changed it for diffs. | |||
2021-11-16 | percent encode characters in path names | Hiltjo Posthuma | |
Paths could contain characters like # (fragment), '?', control-characters, etc. | |||
2021-11-16 | encode the name, it could contain XML entities | Hiltjo Posthuma | |
Like ", which would unquote the attribute value. Crazy but true. | |||
2021-05-05 | do not simplify the history by first-parent | Hiltjo Posthuma | |
Reference: https://libgit2.org/libgit2/#HEAD/group/revwalk/git_revwalk_simplify_first_parent Noticed on merge commits on: https://git.simple-cc.org/scc/ Reported by quinq, thanks! | |||
2021-03-25 | tiny comment change | Hiltjo Posthuma | |
2021-03-25 | add function to print a single line, ignoring \r and \n | Hiltjo Posthuma | |
This can happen when there is no newline at end of file in the diff which is served by libgit2 as: "\n\ No newline at end of file\n". | |||
2021-03-05 | change STAGIT_BASEURL to an -u option and also update the example script | Hiltjo Posthuma | |
2021-03-05 | add $STAGIT_BASEURL environment variable to make Atom links absolute | Hiltjo Posthuma | |
With feedback from adc, thanks! | |||
2021-01-09 | micro-optimization: fputc (function) -> putc (macro/inline function) | Hiltjo Posthuma | |
2020-11-28 | fix warning with libgit2 v0.99+, remain compatible with older versions | Hiltjo Posthuma | |
git_blob_rawsize now returns with git_object_size_t (unsigned). This was git_off_t (signed). In my current version 1.1.0: types.h:typedef uint64_t git_object_size_t; v0.28.5: https://libgit2.org/libgit2/#v0.28.5/group/blob/git_blob_rawsize changed from v0.99 onwards: https://libgit2.org/libgit2/#v0.99.0/group/blob/git_blob_rawsize Fix: use size_t to remain compatible (with a possible warning in older versions), since git_object_size_t is a new defined type. This assumes size_t is atleast uint32_t / uint64_t size. Adapted from a patch by Augustin Fabre <augustin@augfab.fr>, thanks! | |||
2020-11-23 | add abbreviated commit hash to submodule file | Oscar Benedito | |
2020-11-15 | add meta viewport for scaling on mobile | Hiltjo Posthuma | |
Patch by Augustin Fabre <augustin@augfab.fr> | |||
2020-11-15 | use size_t to count lines | Hiltjo Posthuma | |
2020-11-15 | avoid shadowed `name' global variable | Hiltjo Posthuma | |
by Augustin Fabre <augustin@augfab.fr> | |||
2020-11-15 | refs_cmp: remove unneeded cast | Hiltjo Posthuma | |
2020-11-15 | use LEN() macros for arrays | Hiltjo Posthuma | |
from Augustin Fabre <augustin@augfab.fr> | |||
2020-08-10 | fix a small memleak in writeatom() | Hiltjo Posthuma | |
non-tag references were not freed. | |||
2020-08-06 | fix submodule lookup in bare repos | kst | |
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-20 | regression: do not show unset or empty tags | Hiltjo Posthuma | |
2020-07-19 | refactor get reference, add another feed for tags/releases | Hiltjo Posthuma | |
A separate Atom feed is helpful to ports maintainers to monitor new tags/releases. | |||
2020-07-19 | sort 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-02-21 | atom.xml: improve output format a bit | Hiltjo Posthuma | |
2020-02-12 | improve includes, stagit-index does not need compat.h | Hiltjo Posthuma | |
2019-12-01 | add OpenBSD unveil support | Hiltjo 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-16 | escape HTML in paths | Hiltjo Posthuma | |
- escape paths in diff line. - escape path in anchor href attribute in files.html | |||
2019-03-09 | pedantic snprintf() improvement | Hiltjo 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-16 | change order of commits in log from most recent to old to applied order | Hiltjo Posthuma | |
2019-02-16 | fix compile: libgit2 0.28 changed giterr_last to git_error_last | Hiltjo Posthuma | |
libgit2 commit: https://github.com/libgit2/libgit2/commit/a27a4de6f8003961d38958893c6c637395c7cc04 | |||
2018-11-18 | in the diffstat prefix the type of change, allow CSS styling | Hiltjo Posthuma | |
2018-11-18 | don't use a heuristic for renames, the content must match exactly | Hiltjo Posthuma | |
this prevents showing files as renames when most (but not all) of the file was changed. | |||
2018-11-18 | detect filetype changes in diff (for example a normal file to symlink) | Hiltjo Posthuma | |
2018-11-11 | detect more names for README and LICENSE | Hiltjo Posthuma | |
- for license: LICENSE, LICENSE.md, COPYING. - for readme: README, README.md. | |||
2018-11-11 | detect copies and renames based on the threshold of changes | Hiltjo Posthuma | |
2018-08-22 | simplify range check | Hiltjo Posthuma | |
2018-08-22 | stagit: log: indicate when using the -l option and there are more commits | Hiltjo Posthuma | |
2018-05-25 | assume OpenBSD 5.9+, always try pledge(2) on OpenBSD | Hiltjo Posthuma | |
2018-05-09 | Clarify usage regarding -c and -l mutual exclusion | Quentin Rameau | |
2018-03-26 | pledge after git_libgit2_init | Hiltjo Posthuma | |
this is because libgit uses curl which uses some initialization checks, namely an IPv6 check which creates a socket. | |||
2018-03-18 | optimization: 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-21 | stagit: add -l option: limit the amount of commits for the log.html file | Hiltjo Posthuma | |
2017-11-19 | fix: add "fattr" pledge for chmod(2) for cachefile | Hiltjo Posthuma | |
improve checks for when head is NULL (empty repo) | |||
2017-11-10 | fix file permissions for cachefile and respect umask(2) | Hiltjo Posthuma | |
2017-11-10 | more verbose errors: show which file failed on open | Hiltjo Posthuma | |
2017-09-04 | allow umask to handle permissions | Hiltjo Posthuma | |
2017-06-23 | separate getstats from getbyoid: slightly faster | Hiltjo Posthuma | |
2017-05-07 | for the commit Date: header use the git format-patch format | Hiltjo Posthuma | |
2017-05-07 | dont truncate summary length anymore | Hiltjo 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-07 | improve commitinfo_getstats | Hiltjo Posthuma | |
- reorder: unnecessary allocation when git_patch_from_diff fails. - no need to free patch object when git_patch_from_diff fails. | |||
2017-04-17 | align line numbers to 8 spaces | Hiltjo Posthuma | |
... now it is done. |