]> git.armaanb.net Git - stagit.git/log
stagit.git
3 years agoImplement cp function instead of system(cp)
Armaan Bhojwani [Sun, 7 Mar 2021 14:13:37 +0000 (09:13 -0500)]
Implement cp function instead of system(cp)

3 years agoUpdate .gitignore
Armaan Bhojwani [Sun, 7 Mar 2021 14:13:26 +0000 (09:13 -0500)]
Update .gitignore

3 years agoFirst commit
Armaan Bhojwani [Sat, 6 Mar 2021 23:22:28 +0000 (18:22 -0500)]
First commit

Lots of cleanup and playing around with things

3 years agoChange default tab-size to 4.
Demonstrandum [Sat, 6 Feb 2021 16:35:34 +0000 (16:35 +0000)]
Change default tab-size to 4.

3 years agoLink index.html to log.html, being the default page.
Demonstrandum [Thu, 6 Aug 2020 16:23:58 +0000 (17:23 +0100)]
Link index.html to log.html, being the default page.

3 years agoAdd cachefile for each repo.
Demonstrandum [Thu, 6 Aug 2020 16:18:51 +0000 (17:18 +0100)]
Add cachefile for each repo.

3 years agoRender tasklists.
Demonstrandum [Thu, 6 Aug 2020 03:09:38 +0000 (04:09 +0100)]
Render tasklists.

3 years agoUnderline h{1,2}
Demonstrandum [Thu, 6 Aug 2020 02:51:23 +0000 (03:51 +0100)]
Underline h{1,2}

3 years agoBetter markup CSS.
Demonstrandum [Thu, 6 Aug 2020 02:38:36 +0000 (03:38 +0100)]
Better markup CSS.

3 years agoMove markdown article outside blob.
Demonstrandum [Thu, 6 Aug 2020 02:24:52 +0000 (03:24 +0100)]
Move markdown article outside blob.

3 years agoAdd markdown rendering.
Demonstrandum [Thu, 6 Aug 2020 02:19:30 +0000 (03:19 +0100)]
Add markdown rendering.

3 years agoUpdate style.
Demonstrandum [Thu, 6 Aug 2020 01:26:28 +0000 (02:26 +0100)]
Update style.

3 years agoPass in filename not fpath.
Demonstrandum [Thu, 6 Aug 2020 01:00:57 +0000 (02:00 +0100)]
Pass in filename not fpath.

3 years agoAdded syntax highlighting.
Demonstrandum [Thu, 6 Aug 2020 00:55:22 +0000 (01:55 +0100)]
Added syntax highlighting.

3 years agoDitch linguist and switch to python.
Demonstrandum [Thu, 6 Aug 2020 00:22:47 +0000 (01:22 +0100)]
Ditch linguist and switch to python.

3 years agoRedirect stdout to correct file.
Demonstrandum [Wed, 5 Aug 2020 21:50:38 +0000 (22:50 +0100)]
Redirect stdout to correct file.

3 years agoFix highlight script location.
Demonstrandum [Wed, 5 Aug 2020 21:22:12 +0000 (22:22 +0100)]
Fix highlight script location.

3 years agoFileBlob wrapper.
Demonstrandum [Wed, 5 Aug 2020 21:04:18 +0000 (22:04 +0100)]
FileBlob wrapper.

3 years agoAdd synatx highlighting with Pygment.
Demonstrandum [Wed, 5 Aug 2020 19:43:12 +0000 (20:43 +0100)]
Add synatx highlighting with Pygment.

3 years agoFix ownership of generated files.
Demonstrandum [Wed, 29 Jul 2020 22:09:26 +0000 (23:09 +0100)]
Fix ownership of generated files.

3 years agoUpdate logo.
Demonstrandum [Wed, 8 Jul 2020 18:31:01 +0000 (19:31 +0100)]
Update logo.

3 years agoMake website more mobile friendly.
Demonstrandum [Sun, 5 Jul 2020 15:04:38 +0000 (16:04 +0100)]
Make website more mobile friendly.

3 years agoProperly cut .git out of name.
Demonstrandum [Fri, 3 Jul 2020 14:53:08 +0000 (15:53 +0100)]
Properly cut .git out of name.

3 years agoEmpty padding.
Demonstrandum [Wed, 1 Jul 2020 16:52:04 +0000 (17:52 +0100)]
Empty padding.

3 years agoChange 'Commit message' -> 'Commit'
Demonstrandum [Wed, 1 Jul 2020 16:34:24 +0000 (17:34 +0100)]
Change 'Commit message' -> 'Commit'

3 years agoMore verbose repo-gen.sh
Demonstrandum [Wed, 1 Jul 2020 16:17:06 +0000 (17:17 +0100)]
More verbose repo-gen.sh

3 years agoChange bin to .out file.
Demonstrandum [Wed, 1 Jul 2020 15:59:08 +0000 (16:59 +0100)]
Change bin to .out file.

3 years agoUse local stagit build.
Demonstrandum [Wed, 1 Jul 2020 15:52:20 +0000 (16:52 +0100)]
Use local stagit build.

3 years agoUpdate to neutral logo and favicon.
Demonstrandum [Wed, 1 Jul 2020 15:37:27 +0000 (16:37 +0100)]
Update to neutral logo and favicon.

3 years agoChanged README to say this is a fork.
Demonstrandum [Wed, 1 Jul 2020 15:33:39 +0000 (16:33 +0100)]
Changed README to say this is a fork.

3 years agoInitial changes.
sfdk [Wed, 1 Jul 2020 15:26:18 +0000 (15:26 +0000)]
Initial changes.

4 years agobump version to 0.9.3
Hiltjo Posthuma [Sun, 23 Feb 2020 19:30:46 +0000 (20:30 +0100)]
bump version to 0.9.3

4 years agoatom.xml: improve output format a bit
Hiltjo Posthuma [Fri, 21 Feb 2020 12:46:23 +0000 (13:46 +0100)]
atom.xml: improve output format a bit

4 years agoimprove includes, stagit-index does not need compat.h
Hiltjo Posthuma [Wed, 12 Feb 2020 22:20:25 +0000 (23:20 +0100)]
improve includes, stagit-index does not need compat.h

4 years agostyle.css: highlight anchor ids, useful for linking highlighting lines in a diff
Hiltjo Posthuma [Sun, 29 Dec 2019 18:02:04 +0000 (19:02 +0100)]
style.css: highlight anchor ids, useful for linking highlighting lines in a diff

4 years agosmall code-style white-space/newline
Hiltjo Posthuma [Sun, 22 Dec 2019 11:53:54 +0000 (12:53 +0100)]
small code-style white-space/newline

4 years agoadd OpenBSD unveil support
Hiltjo Posthuma [Sun, 1 Dec 2019 17:31:07 +0000 (18:31 +0100)]
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.

4 years agosome README tweaks and rewording, reordering
Hiltjo Posthuma [Sun, 1 Dec 2019 17:26:27 +0000 (18:26 +0100)]
some README tweaks and rewording, reordering

4 years agoMakefile improvements
Hiltjo Posthuma [Sun, 1 Dec 2019 17:26:04 +0000 (18:26 +0100)]
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.

4 years agoREADME: works also on NetBSD
Leonardo Taccari [Sun, 5 May 2019 17:11:36 +0000 (19:11 +0200)]
README: works also on NetBSD

5 years agobump version to 0.9.2
Hiltjo Posthuma [Tue, 23 Apr 2019 18:53:05 +0000 (20:53 +0200)]
bump version to 0.9.2

5 years agoescape HTML in paths
Hiltjo Posthuma [Sat, 16 Mar 2019 12:07:58 +0000 (13:07 +0100)]
escape HTML in paths

- escape paths in diff line.
- escape path in anchor href attribute in files.html

5 years agopedantic snprintf() improvement
Hiltjo Posthuma [Sat, 9 Mar 2019 11:39:10 +0000 (12:39 +0100)]
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."

5 years agofix issues in example scripts
Hiltjo Posthuma [Fri, 1 Mar 2019 10:49:29 +0000 (11:49 +0100)]
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.

5 years agobump version to 0.9.1
Hiltjo Posthuma [Fri, 22 Feb 2019 10:13:44 +0000 (11:13 +0100)]
bump version to 0.9.1

5 years agoMakefile: add DOCPREFIX for installing docs in ports
Hiltjo Posthuma [Sat, 9 Feb 2019 14:02:38 +0000 (15:02 +0100)]
Makefile: add DOCPREFIX for installing docs in ports

change installed doc from /usr/local/share/stagit to /usr/local/share/doc/stagit

5 years agochange order of commits in log from most recent to old to applied order
Hiltjo Posthuma [Thu, 7 Feb 2019 20:00:06 +0000 (21:00 +0100)]
change order of commits in log from most recent to old to applied order

5 years agofix compile: libgit2 0.28 changed giterr_last to git_error_last
Hiltjo Posthuma [Sun, 3 Feb 2019 14:24:34 +0000 (15:24 +0100)]
fix compile: libgit2 0.28 changed giterr_last to git_error_last

libgit2 commit:
https://github.com/libgit2/libgit2/commit/a27a4de6f8003961d38958893c6c637395c7cc04

5 years agobump version to 0.9
Hiltjo Posthuma [Tue, 25 Dec 2018 12:44:02 +0000 (13:44 +0100)]
bump version to 0.9

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

5 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

6 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

6 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.

6 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!

6 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