aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* update styleHEADmasterDejavu Moe2023-05-143-0/+14
|
* add meta info sampleDejavu Moe2023-05-143-0/+3
|
* update LICENSEDejavu Moe2023-05-141-0/+1
|
* in Atom (RFC4287) an atomTextConstruct specifies the type text as the defaultHiltjo Posthuma2023-04-101-2/+2
| | | | This saves a few bytes.
* prefix usage with the common prefix "usage: "Hiltjo Posthuma2022-08-162-2/+2
|
* bump version to 1.2Hiltjo Posthuma2022-08-071-1/+1
|
* Makefile: add workaround for distros still using older libgit2 versionsHiltjo Posthuma2022-07-261-0/+4
| | | | Noticed on Void Linux, Debian, etc.
* Revert "remain compatible with slightly older libgit versions for now"Hiltjo Posthuma2022-05-272-4/+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 nowHiltjo Posthuma2022-05-242-0/+4
|
* Allow git to run on an other user repositoryAnton Lindqvist2022-05-242-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 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/
* bump version to 1.1Hiltjo Posthuma2022-04-021-1/+1
|
* improve stream read and write error handlingHiltjo Posthuma2022-03-192-9/+42
|
* add dark mode support for the example stylesheetHiltjo Posthuma2022-03-191-0/+48
|
* bump LICENSE yearHiltjo Posthuma2022-01-031-1/+1
|
* libgit2 config opts: set the search to an empty pathHiltjo Posthuma2022-01-032-0/+8
| | | | | | | 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 uglyHiltjo Posthuma2021-12-142-4/+4
|
* bump version to 1.0Hiltjo Posthuma2021-11-301-1/+1
|
* Print the number of remaining commitsQuentin Rameau2021-11-161-11/+16
|
* ignore '\r' in writing the blob aswellHiltjo Posthuma2021-11-161-2/+3
| | | | | Follow-up on commit 295e4b8cb95114bb74b582c7332bc4c171f36dd3 which changed it for diffs.
* percent encode characters in path namesHiltjo Posthuma2021-11-162-6/+50
| | | | Paths could contain characters like # (fragment), '?', control-characters, etc.
* encode the name, it could contain XML entitiesHiltjo Posthuma2021-11-161-4/+6
| | | | Like ", which would unquote the attribute value. Crazy but true.
* man pages: add EXAMPLES sectionHiltjo Posthuma2021-08-032-2/+16
|
* small typo fixes and url -> URLHiltjo Posthuma2021-07-313-4/+4
|
* bump version to 0.9.6Hiltjo Posthuma2021-05-271-1/+1
|
* man page: codemadness is the primary server. make logo brandless (not 2f30)Hiltjo Posthuma2021-05-183-2/+3
|
* README: improve a bit the usage examplesQuentin Rameau2021-05-181-3/+8
|
* do not simplify the history by first-parentHiltjo Posthuma2021-05-052-3/+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!
* tiny comment changeHiltjo Posthuma2021-03-251-1/+1
|
* add function to print a single line, ignoring \r and \nHiltjo Posthuma2021-03-251-1/+22
| | | | | | | 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".
* add meta viewport on stagit-index tooHiltjo Posthuma2021-03-191-0/+1
| | | | Patch by Oscar Benedito, thanks!
* bump version to 0.9.5Hiltjo Posthuma2021-03-141-1/+1
|
* LICENSE: updateHiltjo Posthuma2021-03-051-1/+0
|
* change STAGIT_BASEURL to an -u option and also update the example scriptHiltjo Posthuma2021-03-054-13/+13
|
* add $STAGIT_BASEURL environment variable to make Atom links absoluteHiltjo Posthuma2021-03-052-3/+15
| | | | With feedback from adc, thanks!
* README: mention tags.xml featureHiltjo Posthuma2021-03-051-1/+2
|
* micro-optimization: fputc (function) -> putc (macro/inline function)Hiltjo Posthuma2021-01-092-8/+8
|
* LICENSE: bump yearHiltjo Posthuma2021-01-081-1/+1
|
* fix warning with libgit2 v0.99+, remain compatible with older versionsHiltjo Posthuma2020-11-281-8/+7
| | | | | | | | | | | | | | | | | | | | 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 <[email protected]>, thanks!
* add abbreviated commit hash to submodule fileOscar Benedito2020-11-231-2/+5
|
* add meta viewport for scaling on mobileHiltjo Posthuma2020-11-151-0/+1
| | | | Patch by Augustin Fabre <[email protected]>
* style.css: improve contrastHiltjo Posthuma2020-11-151-3/+3
| | | | | | https://webaim.org/resources/contrastchecker/?fcolor=555555&bcolor=FFFFFF Patch by Augustin Fabre <[email protected]> and adapted.
* use size_t to count linesHiltjo Posthuma2020-11-151-7/+7
|
* avoid shadowed `name' global variableHiltjo Posthuma2020-11-151-3/+3
| | | | by Augustin Fabre <[email protected]>
* refs_cmp: remove unneeded castHiltjo Posthuma2020-11-151-2/+1
|
* use LEN() macros for arraysHiltjo Posthuma2020-11-151-2/+4
| | | | from Augustin Fabre <[email protected]>
* bump version to 0.9.4Hiltjo Posthuma2020-08-171-1/+1
|
* fix a small memleak in writeatom()Hiltjo Posthuma2020-08-101-10/+6
| | | | non-tag references were not freed.
* stagit-index: remove unveil support for argvHiltjo Posthuma2020-08-081-4/+0
| | | | | This can reach the unveil argument limits and it is not a good case for using unveil.
* fix submodule lookup in bare reposkst2020-08-061-3/+2
| | | | | | | | | | | | | | | 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
* regression: do not show unset or empty tagsHiltjo Posthuma2020-07-201-1/+1
|