a8e1a69829
fix memory leak on realloc falure
2022-06-30 19:12:31 -04:00
271b68a1b5
include simpler example post-update
2022-06-30 15:58:24 -04:00
8157440847
Merge remote-tracking branch 'upstream/master'
2022-06-30 15:37:14 -04:00
Hiltjo Posthuma
2890451154
Revert "remain compatible with slightly older libgit versions for now"
...
This reverts commit 70541c5e2c
.
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.
2022-05-27 21:29:14 +02:00
Hiltjo Posthuma
70541c5e2c
remain compatible with slightly older libgit versions for now
2022-05-24 14:07:27 +02:00
Anton Lindqvist
1357ad5181
Allow git to run on an other user repository
...
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-05-24 11:09:05 +02:00
Hiltjo Posthuma
a8a5e9c3b3
bump version to 1.1
2022-04-02 17:35:47 +02:00
Hiltjo Posthuma
d0e36eb6ab
improve stream read and write error handling
2022-03-19 12:51:40 +01:00
Hiltjo Posthuma
7c419a8bac
add dark mode support for the example stylesheet
2022-03-19 12:23:16 +01:00
0eb570ebae
Merge with upstream
2022-01-23 13:34:00 -05:00
Hiltjo Posthuma
037d2c7053
bump LICENSE year
2022-01-03 12:22:57 +01:00
Hiltjo Posthuma
4d19863b06
libgit2 config opts: set the search to an empty path
...
Otherwise this would search outside the unveiled paths and cause an unveil
violation.
Reported by Anton Lindqvist, thanks!
2022-01-03 12:22:52 +01:00
Hiltjo Posthuma
df2a31c67a
do not percent-encode: ',' or '-' or '.' it looks ugly
2021-12-14 20:52:18 +01:00
Hiltjo Posthuma
cd5814fded
bump version to 1.0
2021-11-30 18:13:20 +01:00
a9f6d9fe96
make a:target not be blinding on a dark theme
2021-11-18 18:19:48 -05:00
Quentin Rameau
67e5e6c5e7
Print the number of remaining commits
2021-11-16 18:18:32 +01:00
Hiltjo Posthuma
5f78d89d59
ignore '\r' in writing the blob aswell
...
Follow-up on commit 295e4b8cb9
which changed it
for diffs.
2021-11-16 14:24:30 +01:00
Hiltjo Posthuma
6eeefd2087
percent encode characters in path names
...
Paths could contain characters like # (fragment), '?', control-characters, etc.
2021-11-16 14:16:46 +01:00
Hiltjo Posthuma
961cf0f9d8
encode the name, it could contain XML entities
...
Like ", which would unquote the attribute value. Crazy but true.
2021-11-16 11:44:23 +01:00
Hiltjo Posthuma
d106bcdc97
man pages: add EXAMPLES section
2021-10-06 23:41:15 -04:00
Hiltjo Posthuma
d3fac5f244
small typo fixes and url -> URL
2021-10-06 23:41:15 -04:00
Hiltjo Posthuma
088690566b
bump version to 0.9.6
2021-10-06 23:41:15 -04:00
Hiltjo Posthuma
7a1c49ceba
man page: codemadness is the primary server. make logo brandless (not 2f30)
2021-10-06 23:41:02 -04:00
Quentin Rameau
aa901fd334
README: improve a bit the usage examples
2021-10-06 23:40:33 -04:00
Hiltjo Posthuma
ca12d695ed
do not simplify the history by first-parent
...
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-10-06 23:40:33 -04:00
Hiltjo Posthuma
e66cd8d5be
tiny comment change
2021-10-06 23:40:33 -04:00
Hiltjo Posthuma
ad63c0a6a4
add function to print a single line, ignoring \r and \n
...
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-10-06 23:40:33 -04:00
Hiltjo Posthuma
be8665e6c3
add meta viewport on stagit-index too
...
Patch by Oscar Benedito, thanks!
2021-10-06 23:40:33 -04:00
Hiltjo Posthuma
a48516e48d
bump version to 0.9.5
2021-10-06 23:40:33 -04:00
Hiltjo Posthuma
1b6a24c893
man pages: add EXAMPLES section
2021-08-03 19:22:50 +02:00
Hiltjo Posthuma
61be8f5328
small typo fixes and url -> URL
2021-07-31 01:09:45 +02:00
Hiltjo Posthuma
57f84d0fd1
bump version to 0.9.6
2021-05-27 12:41:43 +02:00
Hiltjo Posthuma
45394004a3
man page: codemadness is the primary server. make logo brandless (not 2f30)
2021-05-18 11:42:41 +02:00
Quentin Rameau
ddc581bd90
README: improve a bit the usage examples
2021-05-18 10:42:21 +02:00
Hiltjo Posthuma
c827ab1b1d
do not simplify the history by first-parent
...
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-05-05 19:15:58 +02:00
Hiltjo Posthuma
727e02be6c
tiny comment change
2021-03-25 18:17:34 +01:00
Hiltjo Posthuma
295e4b8cb9
add function to print a single line, ignoring \r and \n
...
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-25 18:13:13 +01:00
Hiltjo Posthuma
995f7d5c5d
add meta viewport on stagit-index too
...
Patch by Oscar Benedito, thanks!
2021-03-19 11:29:53 +01:00
6b801a0ec9
use different blue color
2021-03-14 11:25:27 -04:00
Hiltjo Posthuma
f464058501
bump version to 0.9.5
2021-03-14 16:23:58 +01:00
f9161674fe
some modifications to stagit
2021-03-10 20:51:30 -05:00
Hiltjo Posthuma
c4d5fecc40
LICENSE: update
2021-03-05 12:47:08 +01:00
Hiltjo Posthuma
5ced189f19
change STAGIT_BASEURL to an -u option and also update the example script
2021-03-05 12:44:48 +01:00
Hiltjo Posthuma
7968c0bc9c
add $STAGIT_BASEURL environment variable to make Atom links absolute
...
With feedback from adc, thanks!
2021-03-05 11:51:21 +01:00
Hiltjo Posthuma
d1c528fb5a
README: mention tags.xml feature
2021-03-05 11:50:16 +01:00
Hiltjo Posthuma
722f836460
micro-optimization: fputc (function) -> putc (macro/inline function)
2021-01-09 14:59:53 +01:00
Hiltjo Posthuma
5044ddeea3
LICENSE: bump year
2021-01-08 14:32:33 +01:00
Hiltjo Posthuma
e1c0aebde4
fix warning with libgit2 v0.99+, remain compatible with older versions
...
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-28 12:28:05 +01:00
Oscar Benedito
66df204c44
add abbreviated commit hash to submodule file
2020-11-23 17:15:30 +01:00
Hiltjo Posthuma
a63645a5ea
add meta viewport for scaling on mobile
...
Patch by Augustin Fabre <augustin@augfab.fr>
2020-11-15 21:16:24 +01:00