summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-24remain compatible with slightly older libgit versions for nowHiltjo Posthuma
2022-05-24Allow git to run on an other user repositoryAnton Lindqvist
Reported by Anton: "Recent versions of libgit2 broke stagit for me due to the added opt-out GIT_OPT_SET_OWNER_VALIDATION configuration knob. My repositories are owned by root:vcs and I run stagit as another user which happens to be in vcs group but not the owner of the repository. Disabling the validation makes stagit work as expected again." Some notes: When using regular git it also provides a knob. This is due to a security concern in some cases, which is not applicable to stagit. git log somerepo fatal: unsafe repository ('somerepo' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory somerepo See also / related: - https://github.blog/2022-04-12-git-security-vulnerability-announced/
2022-04-02bump version to 1.1Hiltjo Posthuma
2022-03-19improve stream read and write error handlingHiltjo Posthuma
2022-03-19add dark mode support for the example stylesheetHiltjo Posthuma
2022-01-03bump LICENSE yearHiltjo Posthuma
2022-01-03libgit2 config opts: set the search to an empty pathHiltjo Posthuma
Otherwise this would search outside the unveiled paths and cause an unveil violation. Reported by Anton Lindqvist, thanks!
2021-12-14do not percent-encode: ',' or '-' or '.' it looks uglyHiltjo Posthuma
2021-11-30bump version to 1.0Hiltjo Posthuma
2021-11-16Print the number of remaining commitsQuentin Rameau
2021-11-16ignore '\r' in writing the blob aswellHiltjo Posthuma
Follow-up on commit 295e4b8cb95114bb74b582c7332bc4c171f36dd3 which changed it for diffs.
2021-11-16percent encode characters in path namesHiltjo Posthuma
Paths could contain characters like # (fragment), '?', control-characters, etc.
2021-11-16encode the name, it could contain XML entitiesHiltjo Posthuma
Like ", which would unquote the attribute value. Crazy but true.
2021-08-03man pages: add EXAMPLES sectionHiltjo Posthuma
2021-07-31small typo fixes and url -> URLHiltjo Posthuma
2021-05-27bump version to 0.9.6Hiltjo Posthuma
2021-05-18man page: codemadness is the primary server. make logo brandless (not 2f30)Hiltjo Posthuma
2021-05-18README: improve a bit the usage examplesQuentin Rameau
2021-05-05do not simplify the history by first-parentHiltjo 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-25tiny comment changeHiltjo Posthuma
2021-03-25add function to print a single line, ignoring \r and \nHiltjo 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-19add meta viewport on stagit-index tooHiltjo Posthuma
Patch by Oscar Benedito, thanks!
2021-03-14bump version to 0.9.5Hiltjo Posthuma
2021-03-05LICENSE: updateHiltjo Posthuma
2021-03-05change STAGIT_BASEURL to an -u option and also update the example scriptHiltjo Posthuma
2021-03-05add $STAGIT_BASEURL environment variable to make Atom links absoluteHiltjo Posthuma
With feedback from adc, thanks!
2021-03-05README: mention tags.xml featureHiltjo Posthuma
2021-01-09micro-optimization: fputc (function) -> putc (macro/inline function)Hiltjo Posthuma
2021-01-08LICENSE: bump yearHiltjo Posthuma
2020-11-28fix warning with libgit2 v0.99+, remain compatible with older versionsHiltjo 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-23add abbreviated commit hash to submodule fileOscar Benedito
2020-11-15add meta viewport for scaling on mobileHiltjo Posthuma
Patch by Augustin Fabre <augustin@augfab.fr>
2020-11-15style.css: improve contrastHiltjo Posthuma
https://webaim.org/resources/contrastchecker/?fcolor=555555&bcolor=FFFFFF Patch by Augustin Fabre <augustin@augfab.fr> and adapted.
2020-11-15use size_t to count linesHiltjo Posthuma
2020-11-15avoid shadowed `name' global variableHiltjo Posthuma
by Augustin Fabre <augustin@augfab.fr>
2020-11-15refs_cmp: remove unneeded castHiltjo Posthuma
2020-11-15use LEN() macros for arraysHiltjo Posthuma
from Augustin Fabre <augustin@augfab.fr>
2020-08-17bump version to 0.9.4Hiltjo Posthuma
2020-08-10fix a small memleak in writeatom()Hiltjo Posthuma
non-tag references were not freed.
2020-08-08stagit-index: remove unveil support for argvHiltjo Posthuma
This can reach the unveil argument limits and it is not a good case for using unveil.
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-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-02-23bump version to 0.9.3Hiltjo Posthuma
2020-02-21atom.xml: improve output format a bitHiltjo Posthuma
2020-02-12improve includes, stagit-index does not need compat.hHiltjo Posthuma
2019-12-29style.css: highlight anchor ids, useful for linking highlighting lines in a diffHiltjo Posthuma
2019-12-22small code-style white-space/newlineHiltjo 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.