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:
https://github.com/libgit2/libgit2/commit/a27a4de6f8003961d38958893c6c637395c7cc04
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
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
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
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
Hiltjo Posthuma
304d095d3d
bump version for a release soon
2017-08-02 18:54:46 +02:00
Hiltjo Posthuma
5fa9dcb530
example_create.sh: make executable
2017-08-02 18:45:04 +02:00
Hiltjo Posthuma
bdcf38baa4
improve example scripts, add to build (Makefile)
2017-07-30 17:21:42 +02:00
Hiltjo Posthuma
4e307d3076
improve example, add initial post-receive example
2017-07-15 13:50:24 +02:00
Hiltjo Posthuma
0f428f1b5a
README: add example for a git hook and to set the url file
2017-07-06 13:20:41 +02:00
Hiltjo Posthuma
daf5185a57
README: add example to create tar.gz archives by tag
2017-07-05 20:25:54 +02:00
Hiltjo Posthuma
2e967c5bae
Makefile: remove TODO
...
fixes make dist, thanks stateless :)
2017-06-25 12:28:59 +02:00
Hiltjo Posthuma
c880dfed98
remove TODO
2017-06-23 14:03:14 +02:00
Hiltjo Posthuma
f843248215
separate getstats from getbyoid: slightly faster
2017-06-23 13:53:46 +02:00
Hiltjo Posthuma
54a8a7c153
for the commit Date: header use the git format-patch format
2017-05-07 13:12:43 +02:00
Hiltjo Posthuma
7cb669f74f
dont truncate summary length anymore
...
make sure not partial (invalid) utf-8 sequences are written. The old logic
truncated by bytelen was wrong. It is too complex to implement it in a
correct way with git: it is not assured a commit message is UTF-8 encoded.
remove showlinecount and summarylen variables.
2017-05-07 12:06:45 +02:00
Hiltjo Posthuma
dc8d0c84ff
remove config.def.h: it was not used anymore
...
thanks tarug0 for reporting it!
2017-05-07 12:05:48 +02:00
Hiltjo Posthuma
8fa0effa98
improve commitinfo_getstats
...
- reorder: unnecessary allocation when git_patch_from_diff fails.
- no need to free patch object when git_patch_from_diff fails.
2017-05-07 12:05:47 +02:00
Hiltjo Posthuma
8eabe24bdd
improve documentation
...
- add example to README to extract gitweb.owner from a git config.
this is used in gitweb and some cgit configurations.
- fix (new) mandoc warnings (new sentence on each line).
- improve some texts in the man pages, sort / structure some list items.
2017-04-22 14:38:39 +02:00
Hiltjo Posthuma
e9e7978381
align line numbers to 8 spaces
...
... now it is done.
2017-04-17 16:39:03 +02:00
Hiltjo Posthuma
8e4eb29210
writeblobhtml: minor style fix
...
using len instead of the loop 'i' is slightly more clear
2017-04-17 16:16:33 +02:00
Hiltjo Posthuma
394d90b7bb
stagit: fix rendering of first TAB in file
...
else TABs wont render properly (interpreted as part of HTML whitespace)
at the first TAB of the line.
2017-04-17 13:39:05 +02:00
Hiltjo Posthuma
99583eee62
stagit-index: also dont assume someones <html lang> :)
2017-04-17 13:13:26 +02:00
Hiltjo Posthuma
7bb7dc5cc9
stagit-index: remove Content-Language: en
...
forgot to remove this from stagit-index aswell, see also:
commit 9e96062b62
2017-04-17 13:06:02 +02:00
Hiltjo Posthuma
f9e7dc8070
writeblobhtml: fix possible uninitialized variable n when len == 0
...
... whoops
2017-04-16 20:59:23 +02:00
Hiltjo Posthuma
44b20f3414
writeblobhtml: improve file view for text-browsers
...
browsers such as lynx and w3m have some quirks displaying tables and pre
elements.
links is a bit better with this.
2017-04-16 20:37:42 +02:00
Hiltjo Posthuma
4035291297
stagit-index: remove empty h1 and add bold markup to table headers
2017-04-16 20:36:48 +02:00
Hiltjo Posthuma
980fa8ea9b
text-browser improvements
...
for links, lynx, w3m, dil[dl]o etc:
- set oldschool align attribute.
- apply bold markup to table header.
2017-04-16 20:36:17 +02:00
Hiltjo Posthuma
dc49505153
README: advertise text-browser improvements
2017-04-16 20:32:34 +02:00
Hiltjo Posthuma
9abf8a02f7
LICENSE: bump year
2017-04-16 20:32:23 +02:00
Hiltjo Posthuma
ab3fdd7043
browser compatibility: use numeric entity for '
...
' is a XHTML entity, browsers such as links, w3m, lynx and dillo
don't support it.
2017-04-15 12:56:29 +02:00
Hiltjo Posthuma
bba55b6bbc
writeblobhtml, make fprintf format string const
2017-04-01 19:33:19 +02:00
Hiltjo Posthuma
821a948d08
README: add instructions to build static binaries
2017-03-25 13:28:46 +01:00
Hiltjo Posthuma
9884619350
Makefile: change () to {} consistently
...
reported by tarug0, thanks!
2017-03-25 13:14:26 +01:00
Hiltjo Posthuma
1d91c79e3c
fix potential leak, found by clang-analyzer
2017-03-12 21:30:43 +01:00
Hiltjo Posthuma
ae6461dc6f
fix memory leak of commitinfo
2017-03-12 21:24:07 +01:00
Hiltjo Posthuma
543107cc36
atom.xml: add newline before EOF
2017-03-12 21:22:53 +01:00
Hiltjo Posthuma
0f05e4b4f0
fix memory leak of commitinfo->parent
2017-03-12 21:22:52 +01:00
Hiltjo Posthuma
7a515945dd
fix memory leak of blob object
2017-03-12 21:22:52 +01:00
Hiltjo Posthuma
e862768a1f
simplify/shorten pledge stub
2017-03-12 19:49:14 +01:00
Hiltjo Posthuma
6b48169fa5
reduce scope of repodir, remove unused branch parameter
2017-03-12 19:47:58 +01:00
Hiltjo Posthuma
82aefe6305
bump version to 0.5
2017-01-05 18:47:26 +01:00
Hiltjo Posthuma
92cee02f12
also remove language and text direction attribute from <html>
2016-11-09 18:28:46 +01:00
Hiltjo Posthuma
9e96062b62
remove Content-Language: en
...
thanks Aymeric Mansoux!
2016-11-09 17:49:38 +01:00
Hiltjo Posthuma
300a2495c6
stagit.1: also document linking to git submodules: .gitmodules file
2016-10-14 12:12:35 +02:00
Hiltjo Posthuma
7844a95088
stagit.1: clarify README and LICENSE link creation
...
thanks Solene Rapenne for the patch! (slightly modified)
2016-10-13 18:10:52 +02:00
Hiltjo Posthuma
de7f5fc76d
simplify example.sh, thanks emg for the suggestion!
2016-09-15 20:44:47 +02:00
Hiltjo Posthuma
e19351cdb8
update LICENSE
2016-07-20 18:15:18 +02:00
Hiltjo Posthuma
12069466ff
config.mk: remove -lc
...
Thanks quinq!
POSIX/quinq says:
"In the absence of options that inhibit invocation of the link editor, such as
-c or -E, the c99 utility shall cause the equivalent of a -l c option to be
passed to the link editor after the last pathname operand or -l option, causing
it to be searched after all other object files and libraries are loaded."
2016-07-02 12:44:34 +02:00
Hiltjo Posthuma
30116a4ef2
treat an empty repo (without a HEAD) as valid
...
and create the standard files. Disable caching if there is no HEAD.
2016-05-29 15:04:52 +02:00
Hiltjo Posthuma
44a49f51db
improve example: strip .git suffix
...
stagit-index and stagit strip the .git suffix so also strip it from the
directory for the possible www root.
Thanks to ng0 for reporting it!
2016-05-29 13:06:32 +02:00
Hiltjo Posthuma
837427b09e
refs_cmp: simplify check, functionally the same
2016-05-21 18:37:53 +02:00
Hiltjo Posthuma
df3ea10eca
check if LICENSE, README and .gitmodules is a file blob
...
don't link to directory trees, etc. Thanks 600360 for reporting it!
2016-05-08 20:37:37 +02:00
Hiltjo Posthuma
518556d7b0
release 0.4
2016-05-07 15:03:40 +02:00
Hiltjo Posthuma
972617ee0b
update TODO
2016-05-07 14:43:35 +02:00
Hiltjo Posthuma
a7dd578de7
simplify, id is unused
2016-05-07 14:38:39 +02:00
Hiltjo Posthuma
f89c317dee
simplify, no need for goto
2016-05-07 14:34:51 +02:00
Hiltjo Posthuma
f8e30cf2a0
improve stagit.1 documentation, reword and explain caching behaviour
2016-05-07 14:34:51 +02:00
Hiltjo Posthuma
2f8595e786
consistency for messages for special-case in diffstat
2016-05-07 14:34:45 +02:00
Hiltjo Posthuma
f63edd593d
fix error in "code cleanup" commit 9328d2690e
...
... the loop was simplified, but forgot to remove p++ (double used) while
rebasing the change.
2016-05-07 13:52:42 +02:00
Hiltjo Posthuma
6e5e218b69
fix and simplify time offset
2016-05-06 12:01:57 +02:00
Hiltjo Posthuma
c6e8f9fd80
make diffstat files an anchor (jump to delta)
2016-05-06 11:49:25 +02:00
Hiltjo Posthuma
543582034e
fix joinpath(): use of global 'repodir', should be 'path'
...
use joinpath for another case.
2016-05-03 20:42:46 +02:00
Hiltjo Posthuma
2d8eb85f01
fix regression from last commit
2016-05-03 20:28:09 +02:00
Hiltjo Posthuma
9328d2690e
code cleanup
2016-05-03 20:18:37 +02:00
Hiltjo Posthuma
069f105725
remove config.h, add options to stagit.c
2016-05-03 00:38:33 +02:00
Hiltjo Posthuma
aa36e0c9b4
add OpenBSD pledge(2) support using -DUSE_PLEDGE
2016-05-03 00:33:56 +02:00
Hiltjo Posthuma
eae9437f94
example.sh: use cache file
2016-05-02 21:48:47 +02:00
Hiltjo Posthuma
f5301b25e1
style: write atom feed end in one write, kills 2 lines
2016-05-02 21:25:44 +02:00
Hiltjo Posthuma
1a3584e2d0
cache support (-c option)
...
"Optionally the -c cachefile option can be used to cache the entries of
the log page up to the point of the last commit. The cachefile will store
the last commit id and the entries in the HTML table."
this caches the diffstat and commits, it is an expensive operation (twss).
2016-05-02 21:17:52 +02:00
Hiltjo Posthuma
ede93fa7ee
small code cleanup: no need for status variable
2016-05-01 19:09:26 +02:00
Hiltjo Posthuma
45ee6876d5
atom feed: use published for author commit date, updated for committer date
...
this is the same as cgit.
2016-05-01 17:20:54 +02:00
Hiltjo Posthuma
462ba66ee7
fix times (and timezone)
...
- in the index and log show the short time (GMT).
- in the Atom feed use GMT time.
- for commits show the time + offset.
2016-05-01 16:56:58 +02:00