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.
Quentin Rameau [Sat, 9 Jan 2016 23:47:45 +0000 (00:47 +0100)]
stop glibc complaining about _BSD_SOURCE being deprecated
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.
sin [Wed, 13 Jan 2016 18:56:27 +0000 (18:56 +0000)]
Rename Refs/branches to Refs
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.
Hiltjo Posthuma [Fri, 8 Jan 2016 20:27:22 +0000 (21:27 +0100)]
example.sh: fix go to appropriate dir
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()
Hiltjo Posthuma [Fri, 8 Jan 2016 12:42:26 +0000 (13:42 +0100)]
stagit-index: clarify order of the list
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 '/'
Hiltjo Posthuma [Fri, 8 Jan 2016 09:24:50 +0000 (10:24 +0100)]
premature version bumperation (0.3) for git
Hiltjo Posthuma [Thu, 7 Jan 2016 16:37:25 +0000 (17:37 +0100)]
atom: add newline after date and before message
Hiltjo Posthuma [Wed, 6 Jan 2016 19:04:34 +0000 (20:04 +0100)]
update man pages: document stripping of .git suffix
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
Hiltjo Posthuma [Wed, 6 Jan 2016 18:59:55 +0000 (19:59 +0100)]
extra whitespace
sin [Wed, 6 Jan 2016 18:36:34 +0000 (18:36 +0000)]
Update README - it also works on FreeBSD
Hiltjo Posthuma [Wed, 6 Jan 2016 18:19:20 +0000 (19:19 +0100)]
style: vertical-align header text
Hiltjo Posthuma [Wed, 6 Jan 2016 18:14:59 +0000 (19:14 +0100)]
update TODO
Hiltjo Posthuma [Wed, 6 Jan 2016 18:13:51 +0000 (19:13 +0100)]
refs: only make commit link work for tags
Hiltjo Posthuma [Wed, 6 Jan 2016 18:11:11 +0000 (19:11 +0100)]
free obj
Hiltjo Posthuma [Wed, 6 Jan 2016 17:58:20 +0000 (18:58 +0100)]
LICENSE: whoops its already 2016
Hiltjo Posthuma [Wed, 6 Jan 2016 17:55:25 +0000 (18:55 +0100)]
LICENSE: add dimitris to license/shareholder file
Hiltjo Posthuma [Wed, 6 Jan 2016 17:51:03 +0000 (18:51 +0100)]
old leftover: dont create log dir
Hiltjo Posthuma [Wed, 6 Jan 2016 17:50:38 +0000 (18:50 +0100)]
cleanup code a bit
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
sin [Wed, 6 Jan 2016 17:44:22 +0000 (17:44 +0000)]
Be more explicit when stripping the .git suffix
sin [Wed, 6 Jan 2016 17:18:58 +0000 (17:18 +0000)]
No need for -D_POSIX_C_SOURCE=200809L
XOPEN is a superset.
sin [Wed, 6 Jan 2016 17:05:46 +0000 (17:05 +0000)]
Always use the compat functions
sin [Wed, 6 Jan 2016 17:02:28 +0000 (17:02 +0000)]
Bring in reallocarray() from OpenBSD
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
Hiltjo Posthuma [Wed, 6 Jan 2016 15:04:37 +0000 (16:04 +0100)]
fix cast to uintmax_t
sin [Wed, 6 Jan 2016 14:57:25 +0000 (14:57 +0000)]
Change default MANPREFIX to be ${PREFIX}/man
sin [Wed, 6 Jan 2016 14:46:40 +0000 (14:46 +0000)]
stagit-index: Strip per repo .git suffix from generated index
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_*.
Hiltjo Posthuma [Wed, 6 Jan 2016 14:19:26 +0000 (15:19 +0100)]
fix warning, use intmax_t %ju, thanks stateless!
Hiltjo Posthuma [Wed, 6 Jan 2016 10:56:52 +0000 (11:56 +0100)]
premature version bumperation
Hiltjo Posthuma [Wed, 6 Jan 2016 10:56:43 +0000 (11:56 +0100)]
improve README
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
Hiltjo Posthuma [Tue, 5 Jan 2016 21:32:11 +0000 (22:32 +0100)]
tiny whitespace fix
Hiltjo Posthuma [Tue, 5 Jan 2016 21:30:59 +0000 (22:30 +0100)]
stagit-index: continue making list, but return error code
Hiltjo Posthuma [Tue, 5 Jan 2016 20:43:26 +0000 (21:43 +0100)]
fix relpath for log
Hiltjo Posthuma [Tue, 5 Jan 2016 20:43:14 +0000 (21:43 +0100)]
clone url is one line, strip newline
Hiltjo Posthuma [Tue, 5 Jan 2016 20:42:51 +0000 (21:42 +0100)]
refs: fix table id for tags
Hiltjo Posthuma [Tue, 5 Jan 2016 20:42:34 +0000 (21:42 +0100)]
refs: remove link, it may be broken for non-HEAD
Hiltjo Posthuma [Tue, 5 Jan 2016 20:42:10 +0000 (21:42 +0100)]
make hunk line itself 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
Hiltjo Posthuma [Tue, 5 Jan 2016 20:41:03 +0000 (21:41 +0100)]
stagit-index: owner is one line, strip newline
Hiltjo Posthuma [Tue, 5 Jan 2016 20:40:26 +0000 (21:40 +0100)]
example.sh: make symlinks to style, icons and index by default
Hiltjo Posthuma [Tue, 5 Jan 2016 20:04:07 +0000 (21:04 +0100)]
revert log.html to log/head.html change
Hiltjo Posthuma [Tue, 5 Jan 2016 20:03:39 +0000 (21:03 +0100)]
fix newline after header
Hiltjo Posthuma [Mon, 4 Jan 2016 22:55:39 +0000 (23:55 +0100)]
fix link to commit from log page
Hiltjo Posthuma [Mon, 4 Jan 2016 22:41:40 +0000 (23:41 +0100)]
stagit: fix hunk header, thanks uggedal for reporting!
Hiltjo Posthuma [Sun, 3 Jan 2016 21:44:05 +0000 (22:44 +0100)]
update TODO
Hiltjo Posthuma [Sun, 3 Jan 2016 21:42:00 +0000 (22:42 +0100)]
fix link in stagit-index, update documentation, add TODO
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
Hiltjo Posthuma [Sun, 3 Jan 2016 20:45:53 +0000 (21:45 +0100)]
rename refs to refs/branches
Hiltjo Posthuma [Sun, 3 Jan 2016 20:21:30 +0000 (21:21 +0100)]
refs: add link to log per branch
Hiltjo Posthuma [Sun, 3 Jan 2016 20:15:13 +0000 (21:15 +0100)]
refs: dont make a table when there are no tags, add spacing between
Hiltjo Posthuma [Sun, 3 Jan 2016 20:06:03 +0000 (21:06 +0100)]
add refs page (branches and tags)
quite some code is added, this will be cleaned up in a following code iteration.
- make sure to free some more allocated git objects.
- use fputs() asmuch as possible instead of fprintf().
- code cleanup
Hiltjo Posthuma [Sun, 27 Dec 2015 18:05:45 +0000 (19:05 +0100)]
improve README
Hiltjo Posthuma [Sat, 26 Dec 2015 20:07:47 +0000 (21:07 +0100)]
add stagit.c
Hiltjo Posthuma [Sat, 26 Dec 2015 20:05:55 +0000 (21:05 +0100)]
rename urmoms to stagit, improve documentation
Hiltjo Posthuma [Sat, 26 Dec 2015 19:58:28 +0000 (20:58 +0100)]
nvm, dont strip .git from bare repos
Hiltjo Posthuma [Sat, 26 Dec 2015 19:46:33 +0000 (20:46 +0100)]
add example script to make repo index and files per dir
Hiltjo Posthuma [Sat, 26 Dec 2015 19:11:59 +0000 (20:11 +0100)]
rename EXTRAOBJ to COMPATOBJ
Hiltjo Posthuma [Sat, 26 Dec 2015 12:08:41 +0000 (13:08 +0100)]
Makefile: link for COMPAT
Hiltjo Posthuma [Sat, 26 Dec 2015 12:01:41 +0000 (13:01 +0100)]
add compat.h
Hiltjo Posthuma [Sat, 26 Dec 2015 11:57:33 +0000 (12:57 +0100)]
strip suffix .git used typically for bare repos
Hiltjo Posthuma [Sat, 26 Dec 2015 11:57:14 +0000 (12:57 +0100)]
humanreadable filemodes (code from sbase ls)
Hiltjo Posthuma [Sat, 26 Dec 2015 11:56:56 +0000 (12:56 +0100)]
align filesize header right, minor code-style
Hiltjo Posthuma [Sat, 26 Dec 2015 11:56:23 +0000 (12:56 +0100)]
fix dirname for glibc
Hiltjo Posthuma [Sat, 26 Dec 2015 11:55:59 +0000 (12:55 +0100)]
allow to specify clone url, displayed in header
Hiltjo Posthuma [Sat, 26 Dec 2015 11:54:44 +0000 (12:54 +0100)]
update TODO
Hiltjo Posthuma [Sat, 26 Dec 2015 11:54:09 +0000 (12:54 +0100)]
index: highlight row on mouseover
Hiltjo Posthuma [Fri, 25 Dec 2015 16:49:54 +0000 (17:49 +0100)]
remove TODO from code, see TODO file
Hiltjo Posthuma [Fri, 25 Dec 2015 16:49:03 +0000 (17:49 +0100)]
README: atleast libgit2 v0.22 is required (API)
update TODO
Hiltjo Posthuma [Fri, 25 Dec 2015 16:48:46 +0000 (17:48 +0100)]
compat: add strlcpy, strlcat, for glibc
Hiltjo Posthuma [Thu, 24 Dec 2015 19:58:22 +0000 (20:58 +0100)]
fix libgit2 include, it is in the include path
Hiltjo Posthuma [Sun, 20 Dec 2015 20:49:23 +0000 (21:49 +0100)]
remove double newline bloat
Hiltjo Posthuma [Sun, 20 Dec 2015 20:34:40 +0000 (21:34 +0100)]
update README and improve man pages
Hiltjo Posthuma [Sun, 20 Dec 2015 20:13:54 +0000 (21:13 +0100)]
urmoms-index: kill some lines
Hiltjo Posthuma [Sun, 20 Dec 2015 19:42:53 +0000 (20:42 +0100)]
rewrite writefiles, now works with bare repos
dont use the index but get the tree by the last commit id (revparse HEAD).
Hiltjo Posthuma [Sun, 20 Dec 2015 19:42:31 +0000 (20:42 +0100)]
README: add install and dependencies instructions
Hiltjo Posthuma [Sun, 20 Dec 2015 19:42:16 +0000 (20:42 +0100)]
style.css: maximize contrast for text
Hiltjo Posthuma [Sun, 20 Dec 2015 16:11:34 +0000 (17:11 +0100)]
update TODO
Hiltjo Posthuma [Sun, 20 Dec 2015 16:11:25 +0000 (17:11 +0100)]
add urmoms-index, initial version
Hiltjo Posthuma [Sun, 20 Dec 2015 16:11:06 +0000 (17:11 +0100)]
writelog: remove return value, it was unused
Hiltjo Posthuma [Sun, 20 Dec 2015 16:10:07 +0000 (17:10 +0100)]
improve fopen flag: remove b and r+ in some case
don't require rw rights for just reading
Hiltjo Posthuma [Sun, 20 Dec 2015 16:09:51 +0000 (17:09 +0100)]
use relative url in header, escape name and description too
Hiltjo Posthuma [Thu, 17 Dec 2015 21:59:19 +0000 (22:59 +0100)]
set diff options
Hiltjo Posthuma [Thu, 17 Dec 2015 21:56:32 +0000 (22:56 +0100)]
free the tree
Hiltjo Posthuma [Thu, 17 Dec 2015 18:53:07 +0000 (19:53 +0100)]
file_size is uint32_t on latest libgit2, thanks uggedal for reporting it!
FRIGN [Mon, 14 Dec 2015 11:49:23 +0000 (12:49 +0100)]
Add config.def.h and make summary length configurable
Eivind Uggedal [Fri, 11 Dec 2015 10:03:19 +0000 (10:03 +0000)]
Dynamic relpath for blob pages
Eivind Uggedal [Thu, 10 Dec 2015 22:35:39 +0000 (22:35 +0000)]
Right align numbers in tables
Eivind Uggedal [Thu, 10 Dec 2015 22:24:18 +0000 (22:24 +0000)]
Line numbers on blob pages
Hiltjo Posthuma [Thu, 10 Dec 2015 18:51:15 +0000 (19:51 +0100)]
fix warning
Eivind Uggedal [Thu, 10 Dec 2015 18:13:08 +0000 (18:13 +0000)]
file page improvements
- header with filename and size
- handle binary files
- small style changes
Hiltjo Posthuma [Wed, 9 Dec 2015 22:56:42 +0000 (23:56 +0100)]
fix warning + minor style
Eivind Uggedal [Wed, 9 Dec 2015 22:46:00 +0000 (22:46 +0000)]
Write blobs to files/
This is work in progress:
- relpath is broken under files/
- mkdirp was stolen from sbase
- strlcpy wrapper might be needed
FRIGN [Wed, 9 Dec 2015 22:48:20 +0000 (23:48 +0100)]
Make border solid