Hiltjo Posthuma
467dfeb8f4
bump version to 0.9.3
2020-02-23 20:30:46 +01:00
Hiltjo Posthuma
bbeffc281d
atom.xml: improve output format a bit
2020-02-21 13:46:23 +01:00
Hiltjo Posthuma
2f7e7f2503
improve includes, stagit-index does not need compat.h
2020-02-12 23:20:25 +01:00
Hiltjo Posthuma
4a93974f52
style.css: highlight anchor ids, useful for linking highlighting lines in a diff
2019-12-29 19:02:04 +01:00
Hiltjo Posthuma
31c0f00651
small code-style white-space/newline
2019-12-22 12:53:54 +01:00
Hiltjo Posthuma
edee68f398
add OpenBSD unveil support
...
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-12-01 18:31:07 +01:00
Hiltjo Posthuma
b5607f75af
some README tweaks and rewording, reordering
2019-12-01 18:26:27 +01:00
Hiltjo Posthuma
adaff713dc
Makefile improvements
...
- remove double -c in .c.o target.
- remove config.mk abstraction.
- change LIBS and INCS to LIBGIT_INC and LIBGIT_LIB.
- use system cflags and ldflags, but allow the same override rules for porters.
2019-12-01 18:26:04 +01:00
Leonardo Taccari
d6937c195f
README: works also on NetBSD
2019-05-05 19:28:19 +02:00
Hiltjo Posthuma
c783e54dae
bump version to 0.9.2
2019-04-23 20:53:05 +02:00
Hiltjo Posthuma
028c7526ba
escape HTML in paths
...
- escape paths in diff line.
- escape path in anchor href attribute in files.html
2019-03-16 13:07:58 +01:00
Hiltjo Posthuma
bb1d06eb20
pedantic snprintf() improvement
...
POSIX says:
"If an output error was encountered, these functions shall return a negative
value and set errno to indicate the error."
2019-03-09 12:39:10 +01:00
Hiltjo Posthuma
587b01428d
fix issues in example scripts
...
- in case cd fails don't continue (don't write in previous directory).
- post-receive: quote $(pwd) in case it has spaces.
found by shellcheck tool.
2019-03-01 11:49:29 +01:00
Hiltjo Posthuma
477d50169a
bump version to 0.9.1
2019-02-22 11:13:44 +01:00
Hiltjo Posthuma
9224d31cf6
Makefile: add DOCPREFIX for installing docs in ports
...
change installed doc from /usr/local/share/stagit to /usr/local/share/doc/stagit
2019-02-16 21:17:45 +01:00
Hiltjo Posthuma
3fbef5c9b0
change order of commits in log from most recent to old to applied order
2019-02-16 21:17:45 +01:00
Hiltjo Posthuma
583c44395c
fix compile: libgit2 0.28 changed giterr_last to git_error_last
...
libgit2 commit:
a27a4de6f8
2019-02-16 21:17:38 +01:00
Hiltjo Posthuma
9ad1cb6e42
bump version to 0.9
2018-12-25 13:44:02 +01:00
Hiltjo Posthuma
1df3f334f6
style: keep default browser style for links, except patch chunks
...
This is almost always an underline. This improves accessibility.
Remove underline for patch chunks for readability.
2018-12-25 13:39:34 +01:00
Hiltjo Posthuma
3a151527e1
in the diffstat prefix the type of change, allow CSS styling
2018-11-18 18:08:20 +01:00
Hiltjo Posthuma
608593b0f8
don't use a heuristic for renames, the content must match exactly
...
this prevents showing files as renames when most (but not all) of the file was
changed.
2018-11-18 18:07:22 +01:00
Hiltjo Posthuma
c100c3cc30
detect filetype changes in diff (for example a normal file to symlink)
2018-11-18 18:06:41 +01:00
Hiltjo Posthuma
84bb2212e8
detect more names for README and LICENSE
...
- for license: LICENSE, LICENSE.md, COPYING.
- for readme: README, README.md.
2018-11-11 19:12:55 +01:00
Hiltjo Posthuma
8c45dfc58e
detect copies and renames based on the threshold of changes
2018-11-11 18:54:40 +01:00
Hiltjo Posthuma
175094899d
simplify range check
2018-08-22 18:30:00 +02:00
Hiltjo Posthuma
1f76a28422
stagit: log: indicate when using the -l option and there are more commits
2018-08-22 18:30:00 +02:00
Hiltjo Posthuma
187daac420
assume OpenBSD 5.9+, always try pledge(2) on OpenBSD
2018-05-25 18:43:36 +02:00
Quentin Rameau
c7f158c58c
Clarify usage regarding -c and -l mutual exclusion
2018-05-09 18:57:31 +02:00
Hiltjo Posthuma
66e3410677
bump version to 0.8
2018-04-07 14:14:35 +02:00
Hiltjo Posthuma
6a1224afae
stagit-index: pledge after git_libgit2_init
2018-04-06 19:28:05 +02:00
Hiltjo Posthuma
3c07e52f98
pledge after git_libgit2_init
...
this is because libgit uses curl which uses some initialization
checks, namely an IPv6 check which creates a socket.
2018-03-26 20:08:19 +02:00
Hiltjo Posthuma
f53f481b3f
optimization: only diff the tree when it is needed for the diffstat...
...
... 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-03-18 15:34:37 +01:00
Hiltjo Posthuma
20c37e4fe4
README: improve tarball generation by tag example
...
- set the project name + '-' + tag name as prefix.
- allow '/' in the tag name.
- allow '-' as suffix in the tag.
2018-01-28 16:27:10 +01:00
Hiltjo Posthuma
31392c13cf
stagit: add -l option: limit the amount of commits for the log.html file
2018-01-21 16:47:10 +01:00
Hiltjo Posthuma
2f2ecde5c3
bump LICENSE to 2018
2018-01-21 15:23:21 +01:00
Hiltjo Posthuma
67a862df28
style.css: improve compatibility with older browsers, namely dillo
2018-01-20 13:18:27 +01:00
Quentin Rameau
fd3a542c94
Remove a non-portable syntax in Makefile
2017-12-07 19:07:48 +01:00
Hiltjo Posthuma
fb0ec82a61
Makefile: bump version to 0.7.2
2017-11-25 16:06:26 +01:00
Hiltjo Posthuma
020673b8fd
post-receive: fix warning in script for example when pushing deleted tags
...
the "new" variable would be zero:
remote: fatal: bad object 0000000000000000000000000000000000000000
NOTE: when pushing new tags the "old" variable would be zero, this was
already fixed.
2017-11-25 16:02:24 +01:00
Aaron Marcher
1add4bf3ae
Sort style.css in alphabetical order
2017-11-25 12:23:24 +01:00
Hiltjo Posthuma
04d36c3a72
Makefile: bump version to 0.7.1
2017-11-19 14:58:15 +01:00
Hiltjo Posthuma
2ff0c0d6c0
fix: add "fattr" pledge for chmod(2) for cachefile
...
improve checks for when head is NULL (empty repo)
2017-11-19 14:52:04 +01:00
Hiltjo Posthuma
6662b8ee42
Makefile: bump version to 0.7
2017-11-18 12:53:08 +01:00
Hiltjo Posthuma
870b024671
Makefile: remove unused $SCRIPTS
2017-11-11 01:34:50 +01:00
Hiltjo Posthuma
26bd89f681
fix file permissions for cachefile and respect umask(2)
2017-11-10 20:55:20 +01:00
Hiltjo Posthuma
1bab6952c6
more verbose errors: show which file failed on open
2017-11-10 20:53:46 +01:00
Hiltjo Posthuma
2a56695140
README: clarify some cons
2017-10-31 23:25:35 +01:00
Hiltjo Posthuma
cfbf4a11ad
post-receive hook: force UTF-8 locale
...
this fixes encoding errors when the pages are generated in the
post-receive hook.
2017-10-31 23:20:18 +01:00
Hiltjo Posthuma
d7e003a519
allow umask to handle permissions
2017-09-04 18:14:52 +02:00
Hiltjo Posthuma
8787f495e0
ignore object 0000000000000000000000000000000000000000
...
remote: fatal: bad object 0000000000000000000000000000000000000000
this can happen on initial repos or when pushing tags etc.
2017-08-09 18:52:53 +02:00