Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | prefix usage with the common prefix "usage: " | Hiltjo Posthuma | 2022-08-16 | 1 | -1/+1 |
| | |||||
* | Revert "remain compatible with slightly older libgit versions for now" | Hiltjo Posthuma | 2022-05-27 | 1 | -2/+0 |
| | | | | | | | | | This reverts commit 70541c5e2cbdc141ba94e76899aba5f07047cecf. Reported by Anton: The last commit[1] is not correct as GIT_OPT_SET_OWNER_VALIDATION is not a preprocessor directive but rather an enum. Causing the branch to never be entered. | ||||
* | remain compatible with slightly older libgit versions for now | Hiltjo Posthuma | 2022-05-24 | 1 | -0/+2 |
| | |||||
* | Allow git to run on an other user repository | Anton Lindqvist | 2022-05-24 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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/ | ||||
* | improve stream read and write error handling | Hiltjo Posthuma | 2022-03-19 | 1 | -1/+15 |
| | |||||
* | libgit2 config opts: set the search to an empty path | Hiltjo Posthuma | 2022-01-03 | 1 | -0/+4 |
| | | | | | | | Otherwise this would search outside the unveiled paths and cause an unveil violation. Reported by Anton Lindqvist, thanks! | ||||
* | do not percent-encode: ',' or '-' or '.' it looks ugly | Hiltjo Posthuma | 2021-12-14 | 1 | -2/+2 |
| | |||||
* | percent encode characters in path names | Hiltjo Posthuma | 2021-11-16 | 1 | -1/+23 |
| | | | | Paths could contain characters like # (fragment), '?', control-characters, etc. | ||||
* | do not simplify the history by first-parent | Hiltjo Posthuma | 2021-05-05 | 1 | -1/+0 |
| | | | | | | | | | | 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! | ||||
* | add meta viewport on stagit-index too | Hiltjo Posthuma | 2021-03-19 | 1 | -0/+1 |
| | | | | Patch by Oscar Benedito, thanks! | ||||
* | micro-optimization: fputc (function) -> putc (macro/inline function) | Hiltjo Posthuma | 2021-01-09 | 1 | -1/+1 |
| | |||||
* | stagit-index: remove unveil support for argv | Hiltjo Posthuma | 2020-08-08 | 1 | -4/+0 |
| | | | | | This can reach the unveil argument limits and it is not a good case for using unveil. | ||||
* | improve includes, stagit-index does not need compat.h | Hiltjo Posthuma | 2020-02-12 | 1 | -6/+1 |
| | |||||
* | small code-style white-space/newline | Hiltjo Posthuma | 2019-12-22 | 1 | -0/+1 |
| | |||||
* | add OpenBSD unveil support | Hiltjo Posthuma | 2019-12-01 | 1 | -0/+3 |
| | | | | | | | | | | | | 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. | ||||
* | pedantic snprintf() improvement | Hiltjo Posthuma | 2019-03-09 | 1 | -1/+1 |
| | | | | | | POSIX says: "If an output error was encountered, these functions shall return a negative value and set errno to indicate the error." | ||||
* | change order of commits in log from most recent to old to applied order | Hiltjo Posthuma | 2019-02-16 | 1 | -1/+0 |
| | |||||
* | fix compile: libgit2 0.28 changed giterr_last to git_error_last | Hiltjo Posthuma | 2019-02-16 | 1 | -3/+1 |
| | | | | | libgit2 commit: https://github.com/libgit2/libgit2/commit/a27a4de6f8003961d38958893c6c637395c7cc04 | ||||
* | assume OpenBSD 5.9+, always try pledge(2) on OpenBSD | Hiltjo Posthuma | 2018-05-25 | 1 | -4/+2 |
| | |||||
* | stagit-index: pledge after git_libgit2_init | Hiltjo Posthuma | 2018-04-06 | 1 | -3/+4 |
| | |||||
* | stagit-index: also dont assume someones <html lang> :) | Hiltjo Posthuma | 2017-04-17 | 1 | -1/+1 |
| | |||||
* | stagit-index: remove Content-Language: en | Hiltjo Posthuma | 2017-04-17 | 1 | -1/+1 |
| | | | | | forgot to remove this from stagit-index aswell, see also: commit 9e96062b620088a42c7b345e07cc8c12e2b59ed2 | ||||
* | stagit-index: remove empty h1 and add bold markup to table headers | Hiltjo Posthuma | 2017-04-16 | 1 | -6/+8 |
| | |||||
* | browser compatibility: use numeric entity for ' | Hiltjo Posthuma | 2017-04-15 | 1 | -1/+1 |
| | | | | | ' is a XHTML entity, browsers such as links, w3m, lynx and dillo don't support it. | ||||
* | simplify/shorten pledge stub | Hiltjo Posthuma | 2017-03-12 | 1 | -5/+1 |
| | |||||
* | reduce scope of repodir, remove unused branch parameter | Hiltjo Posthuma | 2017-03-12 | 1 | -1/+1 |
| | |||||
* | fix joinpath(): use of global 'repodir', should be 'path' | Hiltjo Posthuma | 2016-05-03 | 1 | -12/+12 |
| | | | | use joinpath for another case. | ||||
* | code cleanup | Hiltjo Posthuma | 2016-05-03 | 1 | -5/+3 |
| | |||||
* | remove config.h, add options to stagit.c | Hiltjo Posthuma | 2016-05-03 | 1 | -1/+0 |
| | |||||
* | add OpenBSD pledge(2) support using -DUSE_PLEDGE | Hiltjo Posthuma | 2016-05-03 | 1 | -0/+11 |
| | |||||
* | fix times (and timezone) | Hiltjo Posthuma | 2016-05-01 | 1 | -9/+3 |
| | | | | | | - in the index and log show the short time (GMT). - in the Atom feed use GMT time. - for commits show the time + offset. | ||||
* | fix path join '/' | Hiltjo Posthuma | 2016-05-01 | 1 | -23/+19 |
| | | | | add joinpath() function to handle this. | ||||
* | code cleanup + style, functionally equivalent | Hiltjo Posthuma | 2016-05-01 | 1 | -1/+1 |
| | |||||
* | fix: check gmtime, can return NULL on error | Hiltjo Posthuma | 2016-04-27 | 1 | -1/+2 |
| | |||||
* | resolve absolute paths to repodir, remove basename just use strrchr. | Hiltjo Posthuma | 2016-04-27 | 1 | -28/+9 |
| | | | | | | | - resolve repodir, for example: stagit-index ../ used to use ".." as the name, now it will resolve to the real directory name. - just use strrchr(path, '/') instead of basename, '/' path separator is now used. | ||||
* | stagit-index: remove unused efopen function | Hiltjo Posthuma | 2016-04-27 | 1 | -11/+0 |
| | |||||
* | Use the recommended HTML5 document type. | lostd | 2016-02-26 | 1 | -1/+1 |
| | |||||
* | check path truncation | Hiltjo Posthuma | 2016-02-24 | 1 | -6/+18 |
| | | | | be strict about it | ||||
* | strip .git suffix from name | Hiltjo Posthuma | 2016-01-06 | 1 | -7/+7 |
| | | | | also free stripped_name in the case of stagit-index | ||||
* | extra whitespace | Hiltjo Posthuma | 2016-01-06 | 1 | -1/+1 |
| | |||||
* | Be more explicit when stripping the .git suffix | sin | 2016-01-06 | 1 | -1/+2 |
| | |||||
* | stagit-index: Strip per repo .git suffix from generated index | sin | 2016-01-06 | 1 | -1/+9 |
| | |||||
* | stagit-index: continue making list, but return error code | Hiltjo Posthuma | 2016-01-05 | 1 | -6/+7 |
| | |||||
* | stagit-index: owner is one line, strip newline | Hiltjo Posthuma | 2016-01-05 | 1 | -0/+1 |
| | |||||
* | revert log.html to log/head.html change | Hiltjo Posthuma | 2016-01-05 | 1 | -1/+1 |
| | |||||
* | fix link in stagit-index, update documentation, add TODO | Hiltjo Posthuma | 2016-01-03 | 1 | -1/+1 |
| | |||||
* | rename urmoms to stagit, improve documentation | Hiltjo Posthuma | 2015-12-26 | 1 | -0/+235 |