]> git.armaanb.net Git - stagit.git/log
stagit.git
5 years agostyle: keep default browser style for links, except patch chunks
Hiltjo Posthuma [Tue, 25 Dec 2018 12:39:34 +0000 (13:39 +0100)]
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.

5 years agoin the diffstat prefix the type of change, allow CSS styling
Hiltjo Posthuma [Sun, 18 Nov 2018 17:08:20 +0000 (18:08 +0100)]
in the diffstat prefix the type of change, allow CSS styling

5 years agodon't use a heuristic for renames, the content must match exactly
Hiltjo Posthuma [Sun, 18 Nov 2018 17:07:22 +0000 (18:07 +0100)]
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.

5 years agodetect filetype changes in diff (for example a normal file to symlink)
Hiltjo Posthuma [Sun, 18 Nov 2018 17:06:41 +0000 (18:06 +0100)]
detect filetype changes in diff (for example a normal file to symlink)

5 years agodetect more names for README and LICENSE
Hiltjo Posthuma [Sun, 11 Nov 2018 17:23:28 +0000 (18:23 +0100)]
detect more names for README and LICENSE

- for license: LICENSE, LICENSE.md, COPYING.
- for readme: README, README.md.

5 years agodetect copies and renames based on the threshold of changes
Hiltjo Posthuma [Sun, 11 Nov 2018 17:09:27 +0000 (18:09 +0100)]
detect copies and renames based on the threshold of changes

5 years agosimplify range check
Hiltjo Posthuma [Sun, 19 Aug 2018 20:03:45 +0000 (22:03 +0200)]
simplify range check

5 years agostagit: log: indicate when using the -l option and there are more commits
Hiltjo Posthuma [Sun, 19 Aug 2018 12:06:19 +0000 (14:06 +0200)]
stagit: log: indicate when using the -l option and there are more commits

5 years agoassume OpenBSD 5.9+, always try pledge(2) on OpenBSD
Hiltjo Posthuma [Fri, 25 May 2018 16:43:36 +0000 (18:43 +0200)]
assume OpenBSD 5.9+, always try pledge(2) on OpenBSD

6 years agoClarify usage regarding -c and -l mutual exclusion
Quentin Rameau [Wed, 9 May 2018 16:51:08 +0000 (18:51 +0200)]
Clarify usage regarding -c and -l mutual exclusion

6 years agobump version to 0.8
Hiltjo Posthuma [Sat, 7 Apr 2018 12:14:35 +0000 (14:14 +0200)]
bump version to 0.8

6 years agostagit-index: pledge after git_libgit2_init
Hiltjo Posthuma [Fri, 6 Apr 2018 17:28:05 +0000 (19:28 +0200)]
stagit-index: pledge after git_libgit2_init

6 years agopledge after git_libgit2_init
Hiltjo Posthuma [Mon, 26 Mar 2018 18:08:19 +0000 (20:08 +0200)]
pledge after git_libgit2_init

this is because libgit uses curl which uses some initialization
checks, namely an IPv6 check which creates a socket.

6 years agooptimization: only diff the tree when it is needed for the diffstat...
Hiltjo Posthuma [Sun, 18 Mar 2018 14:34:37 +0000 (15:34 +0100)]
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.

6 years agoREADME: improve tarball generation by tag example
Hiltjo Posthuma [Sun, 28 Jan 2018 15:27:10 +0000 (16:27 +0100)]
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.

6 years agostagit: add -l option: limit the amount of commits for the log.html file
Hiltjo Posthuma [Sun, 21 Jan 2018 15:47:10 +0000 (16:47 +0100)]
stagit: add -l option: limit the amount of commits for the log.html file

6 years agobump LICENSE to 2018
Hiltjo Posthuma [Sun, 21 Jan 2018 14:23:21 +0000 (15:23 +0100)]
bump LICENSE to 2018

6 years agostyle.css: improve compatibility with older browsers, namely dillo
Hiltjo Posthuma [Sat, 20 Jan 2018 12:18:27 +0000 (13:18 +0100)]
style.css: improve compatibility with older browsers, namely dillo

6 years agoRemove a non-portable syntax in Makefile
Quentin Rameau [Sat, 2 Dec 2017 18:04:22 +0000 (19:04 +0100)]
Remove a non-portable syntax in Makefile

6 years agoMakefile: bump version to 0.7.2
Hiltjo Posthuma [Sat, 25 Nov 2017 15:06:26 +0000 (16:06 +0100)]
Makefile: bump version to 0.7.2

6 years agopost-receive: fix warning in script for example when pushing deleted tags
Hiltjo Posthuma [Sat, 25 Nov 2017 15:02:24 +0000 (16:02 +0100)]
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.

6 years agoSort style.css in alphabetical order
Aaron Marcher [Sat, 25 Nov 2017 11:09:56 +0000 (12:09 +0100)]
Sort style.css in alphabetical order

6 years agoMakefile: bump version to 0.7.1
Hiltjo Posthuma [Sun, 19 Nov 2017 13:58:15 +0000 (14:58 +0100)]
Makefile: bump version to 0.7.1

6 years agofix: add "fattr" pledge for chmod(2) for cachefile
Hiltjo Posthuma [Sun, 19 Nov 2017 13:52:04 +0000 (14:52 +0100)]
fix: add "fattr" pledge for chmod(2) for cachefile

improve checks for when head is NULL (empty repo)

6 years agoMakefile: bump version to 0.7
Hiltjo Posthuma [Sat, 18 Nov 2017 11:53:08 +0000 (12:53 +0100)]
Makefile: bump version to 0.7

6 years agoMakefile: remove unused $SCRIPTS
Hiltjo Posthuma [Sat, 11 Nov 2017 00:34:50 +0000 (01:34 +0100)]
Makefile: remove unused $SCRIPTS

6 years agofix file permissions for cachefile and respect umask(2)
Hiltjo Posthuma [Fri, 10 Nov 2017 19:55:20 +0000 (20:55 +0100)]
fix file permissions for cachefile and respect umask(2)

6 years agomore verbose errors: show which file failed on open
Hiltjo Posthuma [Fri, 10 Nov 2017 19:53:46 +0000 (20:53 +0100)]
more verbose errors: show which file failed on open

6 years agoREADME: clarify some cons
Hiltjo Posthuma [Tue, 31 Oct 2017 22:25:35 +0000 (23:25 +0100)]
README: clarify some cons

6 years agopost-receive hook: force UTF-8 locale
Hiltjo Posthuma [Tue, 31 Oct 2017 22:20:18 +0000 (23:20 +0100)]
post-receive hook: force UTF-8 locale

this fixes encoding errors when the pages are generated in the
post-receive hook.

6 years agoallow umask to handle permissions
Hiltjo Posthuma [Mon, 4 Sep 2017 16:14:52 +0000 (18:14 +0200)]
allow umask to handle permissions

6 years agoignore object 0000000000000000000000000000000000000000
Hiltjo Posthuma [Wed, 9 Aug 2017 16:52:53 +0000 (18:52 +0200)]
ignore object 0000000000000000000000000000000000000000

remote: fatal: bad object 0000000000000000000000000000000000000000

this can happen on initial repos or when pushing tags etc.

6 years agobump version for a release soon
Hiltjo Posthuma [Wed, 2 Aug 2017 16:54:46 +0000 (18:54 +0200)]
bump version for a release soon

6 years agoexample_create.sh: make executable
Hiltjo Posthuma [Wed, 2 Aug 2017 16:45:04 +0000 (18:45 +0200)]
example_create.sh: make executable

6 years agoimprove example scripts, add to build (Makefile)
Hiltjo Posthuma [Sun, 30 Jul 2017 15:21:42 +0000 (17:21 +0200)]
improve example scripts, add to build (Makefile)

6 years agoimprove example, add initial post-receive example
Hiltjo Posthuma [Sat, 15 Jul 2017 11:50:24 +0000 (13:50 +0200)]
improve example, add initial post-receive example

6 years agoREADME: add example for a git hook and to set the url file
Hiltjo Posthuma [Thu, 6 Jul 2017 11:20:41 +0000 (13:20 +0200)]
README: add example for a git hook and to set the url file

6 years agoREADME: add example to create tar.gz archives by tag
Hiltjo Posthuma [Wed, 5 Jul 2017 18:25:54 +0000 (20:25 +0200)]
README: add example to create tar.gz archives by tag

6 years agoMakefile: remove TODO
Hiltjo Posthuma [Sun, 25 Jun 2017 10:28:59 +0000 (12:28 +0200)]
Makefile: remove TODO

fixes make dist, thanks stateless :)

6 years agoremove TODO
Hiltjo Posthuma [Fri, 23 Jun 2017 12:03:14 +0000 (14:03 +0200)]
remove TODO

6 years agoseparate getstats from getbyoid: slightly faster
Hiltjo Posthuma [Fri, 23 Jun 2017 11:53:46 +0000 (13:53 +0200)]
separate getstats from getbyoid: slightly faster

7 years agofor the commit Date: header use the git format-patch format
Hiltjo Posthuma [Sun, 7 May 2017 11:12:43 +0000 (13:12 +0200)]
for the commit Date: header use the git format-patch format

7 years agodont truncate summary length anymore
Hiltjo Posthuma [Sun, 7 May 2017 10:02:48 +0000 (12:02 +0200)]
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.

7 years agoremove config.def.h: it was not used anymore
Hiltjo Posthuma [Thu, 4 May 2017 22:23:50 +0000 (00:23 +0200)]
remove config.def.h: it was not used anymore

thanks tarug0 for reporting it!

7 years agoimprove commitinfo_getstats
Hiltjo Posthuma [Sat, 22 Apr 2017 17:07:07 +0000 (19:07 +0200)]
improve commitinfo_getstats

- reorder: unnecessary allocation when git_patch_from_diff fails.
- no need to free patch object when git_patch_from_diff fails.

7 years agoimprove documentation
Hiltjo Posthuma [Sat, 22 Apr 2017 12:38:39 +0000 (14:38 +0200)]
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.

7 years agoalign line numbers to 8 spaces
Hiltjo Posthuma [Mon, 17 Apr 2017 14:39:03 +0000 (16:39 +0200)]
align line numbers to 8 spaces

... now it is done.

7 years agowriteblobhtml: minor style fix
Hiltjo Posthuma [Mon, 17 Apr 2017 14:16:33 +0000 (16:16 +0200)]
writeblobhtml: minor style fix

using len instead of the loop 'i' is slightly more clear

7 years agostagit: fix rendering of first TAB in file
Hiltjo Posthuma [Mon, 17 Apr 2017 11:39:05 +0000 (13:39 +0200)]
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.

7 years agostagit-index: also dont assume someones <html lang> :)
Hiltjo Posthuma [Mon, 17 Apr 2017 11:13:26 +0000 (13:13 +0200)]
stagit-index: also dont assume someones <html lang> :)

7 years agostagit-index: remove Content-Language: en
Hiltjo Posthuma [Mon, 17 Apr 2017 11:06:02 +0000 (13:06 +0200)]
stagit-index: remove Content-Language: en

forgot to remove this from stagit-index aswell, see also:
commit 9e96062b620088a42c7b345e07cc8c12e2b59ed2

7 years agowriteblobhtml: fix possible uninitialized variable n when len == 0
Hiltjo Posthuma [Sun, 16 Apr 2017 18:59:23 +0000 (20:59 +0200)]
writeblobhtml: fix possible uninitialized variable n when len == 0

... whoops

7 years agowriteblobhtml: improve file view for text-browsers
Hiltjo Posthuma [Sun, 16 Apr 2017 18:37:42 +0000 (20:37 +0200)]
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.

7 years agostagit-index: remove empty h1 and add bold markup to table headers
Hiltjo Posthuma [Sun, 16 Apr 2017 18:36:48 +0000 (20:36 +0200)]
stagit-index: remove empty h1 and add bold markup to table headers

7 years agotext-browser improvements
Hiltjo Posthuma [Sun, 16 Apr 2017 18:36:17 +0000 (20:36 +0200)]
text-browser improvements

for links, lynx, w3m, dil[dl]o etc:

- set oldschool align attribute.
- apply bold markup to table header.

7 years agoREADME: advertise text-browser improvements
Hiltjo Posthuma [Sun, 16 Apr 2017 18:32:34 +0000 (20:32 +0200)]
README: advertise text-browser improvements

7 years agoLICENSE: bump year
Hiltjo Posthuma [Sun, 16 Apr 2017 18:32:23 +0000 (20:32 +0200)]
LICENSE: bump year

7 years agobrowser compatibility: use numeric entity for '
Hiltjo Posthuma [Sat, 15 Apr 2017 10:56:29 +0000 (12:56 +0200)]
browser compatibility: use numeric entity for '

&apos; is a XHTML entity, browsers such as links, w3m, lynx and dillo
don't support it.

7 years agowriteblobhtml, make fprintf format string const
Hiltjo Posthuma [Sat, 1 Apr 2017 17:33:19 +0000 (19:33 +0200)]
writeblobhtml, make fprintf format string const

7 years agoREADME: add instructions to build static binaries
Hiltjo Posthuma [Sat, 25 Mar 2017 12:28:46 +0000 (13:28 +0100)]
README: add instructions to build static binaries

7 years agoMakefile: change () to {} consistently
Hiltjo Posthuma [Sat, 25 Mar 2017 12:14:26 +0000 (13:14 +0100)]
Makefile: change () to {} consistently

reported by tarug0, thanks!

7 years agofix potential leak, found by clang-analyzer
Hiltjo Posthuma [Sun, 12 Mar 2017 20:30:43 +0000 (21:30 +0100)]
fix potential leak, found by clang-analyzer

7 years agofix memory leak of commitinfo
Hiltjo Posthuma [Sun, 12 Mar 2017 20:24:07 +0000 (21:24 +0100)]
fix memory leak of commitinfo

7 years agoatom.xml: add newline before EOF
Hiltjo Posthuma [Sun, 12 Mar 2017 18:51:13 +0000 (19:51 +0100)]
atom.xml: add newline before EOF

7 years agofix memory leak of commitinfo->parent
Hiltjo Posthuma [Sun, 12 Mar 2017 18:50:45 +0000 (19:50 +0100)]
fix memory leak of commitinfo->parent

7 years agofix memory leak of blob object
Hiltjo Posthuma [Sun, 12 Mar 2017 18:50:12 +0000 (19:50 +0100)]
fix memory leak of blob object

7 years agosimplify/shorten pledge stub
Hiltjo Posthuma [Sun, 12 Mar 2017 18:49:14 +0000 (19:49 +0100)]
simplify/shorten pledge stub

7 years agoreduce scope of repodir, remove unused branch parameter
Hiltjo Posthuma [Sun, 12 Mar 2017 18:47:58 +0000 (19:47 +0100)]
reduce scope of repodir, remove unused branch parameter

7 years agobump version to 0.5
Hiltjo Posthuma [Thu, 5 Jan 2017 17:47:26 +0000 (18:47 +0100)]
bump version to 0.5

7 years agoalso remove language and text direction attribute from <html>
Hiltjo Posthuma [Wed, 9 Nov 2016 17:28:46 +0000 (18:28 +0100)]
also remove language and text direction attribute from <html>

7 years agoremove Content-Language: en
Hiltjo Posthuma [Wed, 9 Nov 2016 16:49:38 +0000 (17:49 +0100)]
remove Content-Language: en

thanks Aymeric Mansoux!

7 years agostagit.1: also document linking to git submodules: .gitmodules file
Hiltjo Posthuma [Fri, 14 Oct 2016 10:12:35 +0000 (12:12 +0200)]
stagit.1: also document linking to git submodules: .gitmodules file

7 years agostagit.1: clarify README and LICENSE link creation
Hiltjo Posthuma [Thu, 13 Oct 2016 16:10:52 +0000 (18:10 +0200)]
stagit.1: clarify README and LICENSE link creation

thanks Solene Rapenne for the patch! (slightly modified)

7 years agosimplify example.sh, thanks emg for the suggestion!
Hiltjo Posthuma [Thu, 15 Sep 2016 18:44:47 +0000 (20:44 +0200)]
simplify example.sh, thanks emg for the suggestion!

7 years agoupdate LICENSE
Hiltjo Posthuma [Wed, 20 Jul 2016 16:15:18 +0000 (18:15 +0200)]
update LICENSE

7 years agoconfig.mk: remove -lc
Hiltjo Posthuma [Sat, 2 Jul 2016 10:44:34 +0000 (12:44 +0200)]
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."

7 years agotreat an empty repo (without a HEAD) as valid
Hiltjo Posthuma [Sun, 29 May 2016 13:04:52 +0000 (15:04 +0200)]
treat an empty repo (without a HEAD) as valid

and create the standard files. Disable caching if there is no HEAD.

7 years agoimprove example: strip .git suffix
Hiltjo Posthuma [Sun, 29 May 2016 11:06:32 +0000 (13:06 +0200)]
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!

7 years agorefs_cmp: simplify check, functionally the same
Hiltjo Posthuma [Sat, 21 May 2016 16:37:53 +0000 (18:37 +0200)]
refs_cmp: simplify check, functionally the same

8 years agocheck if LICENSE, README and .gitmodules is a file blob
Hiltjo Posthuma [Sun, 8 May 2016 18:35:49 +0000 (20:35 +0200)]
check if LICENSE, README and .gitmodules is a file blob

don't link to directory trees, etc. Thanks 600360 for reporting it!

8 years agorelease 0.4
Hiltjo Posthuma [Sat, 7 May 2016 13:03:40 +0000 (15:03 +0200)]
release 0.4

8 years agoupdate TODO
Hiltjo Posthuma [Sat, 7 May 2016 12:43:35 +0000 (14:43 +0200)]
update TODO

8 years agosimplify, id is unused
Hiltjo Posthuma [Sat, 7 May 2016 12:38:39 +0000 (14:38 +0200)]
simplify, id is unused

8 years agosimplify, no need for goto
Hiltjo Posthuma [Sat, 7 May 2016 12:34:26 +0000 (14:34 +0200)]
simplify, no need for goto

8 years agoimprove stagit.1 documentation, reword and explain caching behaviour
Hiltjo Posthuma [Sat, 7 May 2016 12:33:36 +0000 (14:33 +0200)]
improve stagit.1 documentation, reword and explain caching behaviour

8 years agoconsistency for messages for special-case in diffstat
Hiltjo Posthuma [Sat, 7 May 2016 12:29:39 +0000 (14:29 +0200)]
consistency for messages for special-case in diffstat

8 years agofix error in "code cleanup" commit 9328d2690e118127bcaa5cf9f665d8e7711f7a03
Hiltjo Posthuma [Sat, 7 May 2016 11:52:42 +0000 (13:52 +0200)]
fix error in "code cleanup" commit 9328d2690e118127bcaa5cf9f665d8e7711f7a03

... the loop was simplified, but forgot to remove p++ (double used) while
rebasing the change.

8 years agofix and simplify time offset
Hiltjo Posthuma [Fri, 6 May 2016 10:01:57 +0000 (12:01 +0200)]
fix and simplify time offset

8 years agomake diffstat files an anchor (jump to delta)
Hiltjo Posthuma [Fri, 6 May 2016 09:49:25 +0000 (11:49 +0200)]
make diffstat files an anchor (jump to delta)

8 years agofix joinpath(): use of global 'repodir', should be 'path'
Hiltjo Posthuma [Tue, 3 May 2016 18:42:46 +0000 (20:42 +0200)]
fix joinpath(): use of global 'repodir', should be 'path'

use joinpath for another case.

8 years agofix regression from last commit
Hiltjo Posthuma [Tue, 3 May 2016 18:28:09 +0000 (20:28 +0200)]
fix regression from last commit

8 years agocode cleanup
Hiltjo Posthuma [Tue, 3 May 2016 18:18:37 +0000 (20:18 +0200)]
code cleanup

8 years agoremove config.h, add options to stagit.c
Hiltjo Posthuma [Mon, 2 May 2016 22:38:33 +0000 (00:38 +0200)]
remove config.h, add options to stagit.c

8 years agoadd OpenBSD pledge(2) support using -DUSE_PLEDGE
Hiltjo Posthuma [Mon, 2 May 2016 22:33:56 +0000 (00:33 +0200)]
add OpenBSD pledge(2) support using -DUSE_PLEDGE

8 years agoexample.sh: use cache file
Hiltjo Posthuma [Mon, 2 May 2016 19:48:47 +0000 (21:48 +0200)]
example.sh: use cache file

8 years agostyle: write atom feed end in one write, kills 2 lines
Hiltjo Posthuma [Mon, 2 May 2016 19:23:17 +0000 (21:23 +0200)]
style: write atom feed end in one write, kills 2 lines

8 years agocache support (-c option)
Hiltjo Posthuma [Sun, 1 May 2016 15:54:14 +0000 (17:54 +0200)]
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).

8 years agosmall code cleanup: no need for status variable
Hiltjo Posthuma [Sun, 1 May 2016 17:08:36 +0000 (19:08 +0200)]
small code cleanup: no need for status variable

8 years agoatom feed: use published for author commit date, updated for committer date
Hiltjo Posthuma [Sun, 1 May 2016 15:20:54 +0000 (17:20 +0200)]
atom feed: use published for author commit date, updated for committer date

this is the same as cgit.

8 years agofix times (and timezone)
Hiltjo Posthuma [Sun, 1 May 2016 14:10:17 +0000 (16:10 +0200)]
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.