]> git.armaanb.net Git - stagit.git/log
stagit.git
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.

8 years agoREADME: minor update
Hiltjo Posthuma [Sun, 1 May 2016 12:41:51 +0000 (14:41 +0200)]
README: minor update

8 years agofix path join '/'
Hiltjo Posthuma [Sun, 1 May 2016 12:38:57 +0000 (14:38 +0200)]
fix path join '/'

add joinpath() function to handle this.

8 years agocode cleanup + style, functionally equivalent
Hiltjo Posthuma [Sun, 1 May 2016 12:09:42 +0000 (14:09 +0200)]
code cleanup + style, functionally equivalent

8 years agolayout: right align lines changed count in diffstat
Hiltjo Posthuma [Sat, 30 Apr 2016 11:08:44 +0000 (13:08 +0200)]
layout: right align lines changed count in diffstat

8 years agooptimization: suppress large diffs
Hiltjo Posthuma [Sat, 30 Apr 2016 10:00:33 +0000 (12:00 +0200)]
optimization: suppress large diffs

the values are arbitrary, these can be tweaked later if needed.

8 years agooptimization: read stats once and remember it
Hiltjo Posthuma [Sat, 30 Apr 2016 09:54:33 +0000 (11:54 +0200)]
optimization: read stats once and remember it

for an initial run and new commits this speeds stagit up a bit:
on an initial run of sbase goes from about 4 seconds to 2.8 on my machine.

now we can't use statsbuf, so create the stats string ourselves, while at it
color the + and - using a style (can be disabled for the color-haters out
there ;)).

8 years agoexample.sh: fix: sort list (regression from simplifying the script)
Hiltjo Posthuma [Fri, 29 Apr 2016 19:52:29 +0000 (21:52 +0200)]
example.sh: fix: sort list (regression from simplifying the script)

8 years agowhoops, module is m---------
Hiltjo Posthuma [Fri, 29 Apr 2016 19:24:58 +0000 (21:24 +0200)]
whoops, module is m---------

8 years agosubmodule support
Hiltjo Posthuma [Fri, 29 Apr 2016 19:14:46 +0000 (21:14 +0200)]
submodule support

- detect .gitmodules file for submodules, add a link "submodules" to the top menu.
- link each submodule to the .gitmodules file in HEAD.
- revert the special style for modules, but list it as a file "m---------", don't show
  the line/filesize though, it is not a file.

8 years agosuppress meaningless error codes when a repo can't be opened (similar to stagit-index)
Hiltjo Posthuma [Fri, 29 Apr 2016 14:39:33 +0000 (16:39 +0200)]
suppress meaningless error codes when a repo can't be opened (similar to stagit-index)

8 years agoimprove example, remove sort hack
Hiltjo Posthuma [Fri, 29 Apr 2016 14:38:48 +0000 (16:38 +0200)]
improve example, remove sort hack

8 years agomake submodule link black, easier to read
Hiltjo Posthuma [Fri, 29 Apr 2016 13:57:55 +0000 (15:57 +0200)]
make submodule link black, easier to read

this is also the same color as a bare repo without a link.

8 years agominor style fix
Hiltjo Posthuma [Fri, 29 Apr 2016 13:55:33 +0000 (15:55 +0200)]
minor style fix

8 years agoFix null pointer access for submodules in writefilestree
Quentin Rameau [Fri, 29 Apr 2016 12:01:45 +0000 (14:01 +0200)]
Fix null pointer access for submodules in writefilestree

Do not try to set a link to submodules from bare repo as we can't get
the actual url.

8 years agotweak style of showing submodules
Hiltjo Posthuma [Fri, 29 Apr 2016 10:32:36 +0000 (12:32 +0200)]
tweak style of showing submodules

this will make it look similar to cgit. show mode as "m---------"

8 years agoDon't fail on submodules
z3bra [Thu, 28 Apr 2016 23:40:30 +0000 (01:40 +0200)]
Don't fail on submodules

Submodules will get listed prefixed with a '@', using a specific CSS class for
styling. The href will be set to the url of the submodule.
Filesize will appear as 0 and filemode will not be printed to avoid an awkward
mode: "?---------".

In writefilestree, we don't return anymore if an entry can't be categorized as
an object, but rather, fail if we can't retrieve its name.

8 years agofix: check gmtime, can return NULL on error
Hiltjo Posthuma [Wed, 27 Apr 2016 17:24:15 +0000 (19:24 +0200)]
fix: check gmtime, can return NULL on error

8 years agoresolve absolute paths to repodir, remove basename just use strrchr.
Hiltjo Posthuma [Wed, 27 Apr 2016 17:19:50 +0000 (19:19 +0200)]
resolve absolute paths to repodir, remove basename just use strrchr.

- resolve repodir, for example: stagit-index ../ used to use ".." as the name,
  now it will resolve to the real directory name.
- just use strrchr(path, '/') instead of basename, '/' path separator is now
  used.

8 years agostagit-index: remove unused efopen function
Hiltjo Posthuma [Wed, 27 Apr 2016 14:40:51 +0000 (16:40 +0200)]
stagit-index: remove unused efopen function

8 years agofix: link to line in hunk if a patch has multiple files and hunks
Hiltjo Posthuma [Wed, 27 Apr 2016 14:39:48 +0000 (16:39 +0200)]
fix: link to line in hunk if a patch has multiple files and hunks

thanks to lostd for reporting it!

8 years agoclean generated tarball too
sin [Fri, 25 Mar 2016 09:30:19 +0000 (09:30 +0000)]
clean generated tarball too

8 years agoMakefile: use NAME variable, suggested by Quentin
Hiltjo Posthuma [Sun, 20 Mar 2016 16:29:31 +0000 (17:29 +0100)]
Makefile: use NAME variable, suggested by Quentin

8 years agoMakefile: separate CPPFLAGS, compile optimized build by default
Hiltjo Posthuma [Sun, 20 Mar 2016 15:23:33 +0000 (16:23 +0100)]
Makefile: separate CPPFLAGS, compile optimized build by default

8 years agoimprove make dist, thanks Quentin Rameau
Hiltjo Posthuma [Sun, 20 Mar 2016 14:36:21 +0000 (15:36 +0100)]
improve make dist, thanks Quentin Rameau

based on a patch from Quentin with some additions.

- don't build before make dist
- package in directory: stagit-VERSION.

8 years agopremature version bumperation, 0.4 (unreleased)
Hiltjo Posthuma [Sun, 20 Mar 2016 13:19:48 +0000 (14:19 +0100)]
premature version bumperation, 0.4 (unreleased)

8 years agoChoose better colors for the diff page
FRIGN [Tue, 1 Mar 2016 16:15:07 +0000 (17:15 +0100)]
Choose better colors for the diff page

This makes it easier to read on the light background and is not as
straining in the eyes.

8 years agoadd titles to pages, summary for commit messages, filename for files
Hiltjo Posthuma [Tue, 1 Mar 2016 18:14:00 +0000 (19:14 +0100)]
add titles to pages, summary for commit messages, filename for files

8 years agofix right-alignment of "Files" column
Hiltjo Posthuma [Fri, 26 Feb 2016 18:59:11 +0000 (19:59 +0100)]
fix right-alignment of "Files" column

8 years agoUse the recommended HTML5 document type.
lostd [Wed, 20 Jan 2016 14:36:16 +0000 (16:36 +0200)]
Use the recommended HTML5 document type.

8 years agocheck path truncation
Hiltjo Posthuma [Wed, 24 Feb 2016 13:47:20 +0000 (14:47 +0100)]
check path truncation

be strict about it

8 years agoconfig.mk: add -D_DEFAULT_SOURCE to commented builds
Hiltjo Posthuma [Wed, 24 Feb 2016 13:41:37 +0000 (14:41 +0100)]
config.mk: add -D_DEFAULT_SOURCE to commented builds

8 years agoatom feed: add link, move content order to bottom
Hiltjo Posthuma [Tue, 23 Feb 2016 19:44:00 +0000 (20:44 +0100)]
atom feed: add link, move content order to bottom

NOTE: using relative links violates the Atom specification, but relative
links are convenient aswell.

8 years agomake printshowfile more generic and like other functions
Hiltjo Posthuma [Tue, 23 Feb 2016 19:37:17 +0000 (20:37 +0100)]
make printshowfile more generic and like other functions

8 years agojust use Name as first column, thanks quinq for the suggestion
Hiltjo Posthuma [Thu, 21 Jan 2016 19:42:11 +0000 (20:42 +0100)]
just use Name as first column, thanks quinq for the suggestion

8 years agoRename “Age” column headers into “Date”
Quentin Rameau [Thu, 21 Jan 2016 17:34:14 +0000 (18:34 +0100)]
Rename “Age” column headers into “Date”

8 years agofix file tree handling
Quentin Rameau [Mon, 18 Jan 2016 11:47:25 +0000 (12:47 +0100)]
fix file tree handling

Do not forget to keep previous path when recursing or we end up with
filenames only.

8 years agouse 'dirname' as error message for xdirname
z3bra [Mon, 18 Jan 2016 10:31:36 +0000 (10:31 +0000)]
use 'dirname' as error message for xdirname

8 years agofix file size byte unit suffix
Quentin Rameau [Sat, 9 Jan 2016 23:48:01 +0000 (00:48 +0100)]
fix file size byte unit suffix

Correct suffix for byte is B, b is for bit.

8 years agostop glibc complaining about _BSD_SOURCE being deprecated
Quentin Rameau [Sat, 9 Jan 2016 23:47:45 +0000 (00:47 +0100)]
stop glibc complaining about _BSD_SOURCE being deprecated

8 years agoreplace file size with line count for text files
Quentin Rameau [Sat, 9 Jan 2016 23:47:22 +0000 (00:47 +0100)]
replace file size with line count for text files

Keep the number of line when writing text blobs and print it in the
index file tree instead of the size. Still print the size otherwise.

8 years agoRename Refs/branches to Refs
sin [Wed, 13 Jan 2016 18:56:27 +0000 (18:56 +0000)]
Rename Refs/branches to Refs

8 years agoexample.sh: fix: remove error mode, would stop if a dir was invalid
Hiltjo Posthuma [Fri, 8 Jan 2016 21:17:54 +0000 (22:17 +0100)]
example.sh: fix: remove error mode, would stop if a dir was invalid

mkdir -p makes the directory always, so no need to check.

8 years agoexample.sh: fix go to appropriate dir
Hiltjo Posthuma [Fri, 8 Jan 2016 20:27:22 +0000 (21:27 +0100)]
example.sh: fix go to appropriate dir

8 years agoimplify and restructure code
Hiltjo Posthuma [Fri, 8 Jan 2016 19:08:40 +0000 (20:08 +0100)]
implify and restructure code

- remove commit message and lines changed from refs page.
- resolve HEAD once.
- dont make filepath in writeblob()

8 years agostagit-index: clarify order of the list
Hiltjo Posthuma [Fri, 8 Jan 2016 12:42:26 +0000 (13:42 +0100)]
stagit-index: clarify order of the list

8 years agoexample.sh: add index-time.html, list sorted by time, fix reposdir '/'
Hiltjo Posthuma [Fri, 8 Jan 2016 12:39:23 +0000 (13:39 +0100)]
example.sh: add index-time.html, list sorted by time, fix reposdir '/'

8 years agopremature version bumperation (0.3) for git
Hiltjo Posthuma [Fri, 8 Jan 2016 09:24:50 +0000 (10:24 +0100)]
premature version bumperation (0.3) for git

8 years agoatom: add newline after date and before message
Hiltjo Posthuma [Thu, 7 Jan 2016 16:37:25 +0000 (17:37 +0100)]
atom: add newline after date and before message

8 years agoupdate man pages: document stripping of .git suffix
Hiltjo Posthuma [Wed, 6 Jan 2016 19:04:34 +0000 (20:04 +0100)]
update man pages: document stripping of .git suffix

8 years agostrip .git suffix from name
Hiltjo Posthuma [Wed, 6 Jan 2016 19:00:38 +0000 (20:00 +0100)]
strip .git suffix from name

also free stripped_name in the case of stagit-index

8 years agoextra whitespace
Hiltjo Posthuma [Wed, 6 Jan 2016 18:59:55 +0000 (19:59 +0100)]
extra whitespace

8 years agoUpdate README - it also works on FreeBSD
sin [Wed, 6 Jan 2016 18:36:34 +0000 (18:36 +0000)]
Update README - it also works on FreeBSD

8 years agostyle: vertical-align header text
Hiltjo Posthuma [Wed, 6 Jan 2016 18:19:20 +0000 (19:19 +0100)]
style: vertical-align header text

8 years agoupdate TODO
Hiltjo Posthuma [Wed, 6 Jan 2016 18:14:59 +0000 (19:14 +0100)]
update TODO

8 years agorefs: only make commit link work for tags
Hiltjo Posthuma [Wed, 6 Jan 2016 18:13:51 +0000 (19:13 +0100)]
refs: only make commit link work for tags

8 years agofree obj
Hiltjo Posthuma [Wed, 6 Jan 2016 18:11:11 +0000 (19:11 +0100)]
free obj

8 years agoLICENSE: whoops its already 2016
Hiltjo Posthuma [Wed, 6 Jan 2016 17:58:20 +0000 (18:58 +0100)]
LICENSE: whoops its already 2016

8 years agoLICENSE: add dimitris to license/shareholder file
Hiltjo Posthuma [Wed, 6 Jan 2016 17:55:25 +0000 (18:55 +0100)]
LICENSE: add dimitris to license/shareholder file

8 years agoold leftover: dont create log dir
Hiltjo Posthuma [Wed, 6 Jan 2016 17:51:03 +0000 (18:51 +0100)]
old leftover: dont create log dir

8 years agocleanup code a bit
Hiltjo Posthuma [Wed, 6 Jan 2016 17:50:38 +0000 (18:50 +0100)]
cleanup code a bit

8 years agostyle.css: wrap description text, nowrap for rest
Hiltjo Posthuma [Wed, 6 Jan 2016 17:33:24 +0000 (18:33 +0100)]
style.css: wrap description text, nowrap for rest

vertical align to the top of the cell, this makes it scale better to some smaller screens

8 years agoBe more explicit when stripping the .git suffix
sin [Wed, 6 Jan 2016 17:44:22 +0000 (17:44 +0000)]
Be more explicit when stripping the .git suffix

8 years agoNo need for -D_POSIX_C_SOURCE=200809L
sin [Wed, 6 Jan 2016 17:18:58 +0000 (17:18 +0000)]
No need for -D_POSIX_C_SOURCE=200809L

XOPEN is a superset.

8 years agoAlways use the compat functions
sin [Wed, 6 Jan 2016 17:05:46 +0000 (17:05 +0000)]
Always use the compat functions

8 years agoBring in reallocarray() from OpenBSD
sin [Wed, 6 Jan 2016 17:02:28 +0000 (17:02 +0000)]
Bring in reallocarray() from OpenBSD

8 years agouse git_reference for tags and branches, sort branches also
Hiltjo Posthuma [Wed, 6 Jan 2016 16:45:02 +0000 (17:45 +0100)]
use git_reference for tags and branches, sort branches also

this removes some lines and somewhat simplifies it

8 years agofix cast to uintmax_t
Hiltjo Posthuma [Wed, 6 Jan 2016 15:04:37 +0000 (16:04 +0100)]
fix cast to uintmax_t

8 years agoChange default MANPREFIX to be ${PREFIX}/man
sin [Wed, 6 Jan 2016 14:57:25 +0000 (14:57 +0000)]
Change default MANPREFIX to be ${PREFIX}/man

8 years agostagit-index: Strip per repo .git suffix from generated index
sin [Wed, 6 Jan 2016 14:46:40 +0000 (14:46 +0000)]
stagit-index: Strip per repo .git suffix from generated index

8 years agolookup commits of annotated tags
Hiltjo Posthuma [Wed, 6 Jan 2016 14:35:34 +0000 (15:35 +0100)]
lookup commits of annotated tags

NOTE: as described in the TODO this will be rewritten more cleanly
      later using git_reference_*.

8 years agofix warning, use intmax_t %ju, thanks stateless!
Hiltjo Posthuma [Wed, 6 Jan 2016 14:19:26 +0000 (15:19 +0100)]
fix warning, use intmax_t %ju, thanks stateless!

8 years agopremature version bumperation
Hiltjo Posthuma [Wed, 6 Jan 2016 10:56:52 +0000 (11:56 +0100)]
premature version bumperation

8 years agoimprove README
Hiltjo Posthuma [Wed, 6 Jan 2016 10:56:43 +0000 (11:56 +0100)]
improve README

8 years agoimprove Makefile
Hiltjo Posthuma [Wed, 6 Jan 2016 10:24:29 +0000 (11:24 +0100)]
improve Makefile

dist: add favicon.png, config.def.h and example.sh
install: install favicon.png and example.sh

8 years agotiny whitespace fix
Hiltjo Posthuma [Tue, 5 Jan 2016 21:32:11 +0000 (22:32 +0100)]
tiny whitespace fix

8 years agostagit-index: continue making list, but return error code
Hiltjo Posthuma [Tue, 5 Jan 2016 21:30:59 +0000 (22:30 +0100)]
stagit-index: continue making list, but return error code

8 years agofix relpath for log
Hiltjo Posthuma [Tue, 5 Jan 2016 20:43:26 +0000 (21:43 +0100)]
fix relpath for log

8 years agoclone url is one line, strip newline
Hiltjo Posthuma [Tue, 5 Jan 2016 20:43:14 +0000 (21:43 +0100)]
clone url is one line, strip newline

8 years agorefs: fix table id for tags
Hiltjo Posthuma [Tue, 5 Jan 2016 20:42:51 +0000 (21:42 +0100)]
refs: fix table id for tags

8 years agorefs: remove link, it may be broken for non-HEAD
Hiltjo Posthuma [Tue, 5 Jan 2016 20:42:34 +0000 (21:42 +0100)]
refs: remove link, it may be broken for non-HEAD

8 years agomake hunk line itself a link
Hiltjo Posthuma [Tue, 5 Jan 2016 20:42:10 +0000 (21:42 +0100)]
make hunk line itself a link

8 years agostyle: darkblue for hunk like cgit, hunk line is now a link
Hiltjo Posthuma [Tue, 5 Jan 2016 20:41:49 +0000 (21:41 +0100)]
style: darkblue for hunk like cgit, hunk line is now a link

8 years agostagit-index: owner is one line, strip newline
Hiltjo Posthuma [Tue, 5 Jan 2016 20:41:03 +0000 (21:41 +0100)]
stagit-index: owner is one line, strip newline

8 years agoexample.sh: make symlinks to style, icons and index by default
Hiltjo Posthuma [Tue, 5 Jan 2016 20:40:26 +0000 (21:40 +0100)]
example.sh: make symlinks to style, icons and index by default

8 years agorevert log.html to log/head.html change
Hiltjo Posthuma [Tue, 5 Jan 2016 20:04:07 +0000 (21:04 +0100)]
revert log.html to log/head.html change

8 years agofix newline after header
Hiltjo Posthuma [Tue, 5 Jan 2016 20:03:39 +0000 (21:03 +0100)]
fix newline after header

8 years agofix link to commit from log page
Hiltjo Posthuma [Mon, 4 Jan 2016 22:55:39 +0000 (23:55 +0100)]
fix link to commit from log page

8 years agostagit: fix hunk header, thanks uggedal for reporting!
Hiltjo Posthuma [Mon, 4 Jan 2016 22:41:40 +0000 (23:41 +0100)]
stagit: fix hunk header, thanks uggedal for reporting!

8 years agoupdate TODO
Hiltjo Posthuma [Sun, 3 Jan 2016 21:44:05 +0000 (22:44 +0100)]
update TODO

8 years agofix link in stagit-index, update documentation, add TODO
Hiltjo Posthuma [Sun, 3 Jan 2016 21:42:00 +0000 (22:42 +0100)]
fix link in stagit-index, update documentation, add TODO

8 years agono log per branch
Hiltjo Posthuma [Sun, 3 Jan 2016 21:36:48 +0000 (22:36 +0100)]
no log per branch

rename log.html to log/HEAD.html, small code cleanup

8 years agorename refs to refs/branches
Hiltjo Posthuma [Sun, 3 Jan 2016 20:45:53 +0000 (21:45 +0100)]
rename refs to refs/branches

8 years agorefs: add link to log per branch
Hiltjo Posthuma [Sun, 3 Jan 2016 20:21:30 +0000 (21:21 +0100)]
refs: add link to log per branch