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
Hiltjo Posthuma
7a1da0b985
README: minor update
2016-05-01 14:51:11 +02:00
Hiltjo Posthuma
fc60d78d89
fix path join '/'
...
add joinpath() function to handle this.
2016-05-01 14:51:02 +02:00
Hiltjo Posthuma
c13c411950
code cleanup + style, functionally equivalent
2016-05-01 14:42:20 +02:00
Hiltjo Posthuma
254f215e50
layout: right align lines changed count in diffstat
2016-04-30 13:08:44 +02:00
Hiltjo Posthuma
7067223104
optimization: suppress large diffs
...
the values are arbitrary, these can be tweaked later if needed.
2016-04-30 12:47:06 +02:00
Hiltjo Posthuma
914880f31b
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 ;)).
2016-04-30 12:47:00 +02:00
Hiltjo Posthuma
0bc47da0f7
example.sh: fix: sort list (regression from simplifying the script)
2016-04-29 21:52:29 +02:00
Hiltjo Posthuma
ad40433839
whoops, module is m---------
2016-04-29 21:24:58 +02:00
Hiltjo Posthuma
5c278a600e
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.
2016-04-29 21:14:46 +02:00
Hiltjo Posthuma
671f4e9100
suppress meaningless error codes when a repo can't be opened (similar to stagit-index)
2016-04-29 16:39:33 +02:00
Hiltjo Posthuma
bc7515e2dc
improve example, remove sort hack
2016-04-29 16:38:48 +02:00
Hiltjo Posthuma
a524ca1b3d
make submodule link black, easier to read
...
this is also the same color as a bare repo without a link.
2016-04-29 15:57:55 +02:00
Hiltjo Posthuma
f2773b0319
minor style fix
2016-04-29 15:55:33 +02:00
Quentin Rameau
b8af751b01
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.
2016-04-29 15:54:57 +02:00
Hiltjo Posthuma
375d41dcce
tweak style of showing submodules
...
this will make it look similar to cgit. show mode as "m---------"
2016-04-29 12:32:36 +02:00
z3bra
571076b419
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.
2016-04-29 12:31:39 +02:00
Hiltjo Posthuma
28730218c4
fix: check gmtime, can return NULL on error
2016-04-27 19:24:15 +02:00
Hiltjo Posthuma
8df54926f2
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.
2016-04-27 19:19:50 +02:00
Hiltjo Posthuma
70b777831a
stagit-index: remove unused efopen function
2016-04-27 16:40:51 +02:00
Hiltjo Posthuma
86bbe82211
fix: link to line in hunk if a patch has multiple files and hunks
...
thanks to lostd for reporting it!
2016-04-27 16:39:48 +02:00
sin
09a49b3dce
clean generated tarball too
2016-03-25 09:30:19 +00:00
Hiltjo Posthuma
0328079589
Makefile: use NAME variable, suggested by Quentin
2016-03-20 17:29:31 +01:00
Hiltjo Posthuma
cd6a519813
Makefile: separate CPPFLAGS, compile optimized build by default
2016-03-20 16:23:33 +01:00
Hiltjo Posthuma
761417d254
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.
2016-03-20 15:36:21 +01:00
Hiltjo Posthuma
41c90a9173
premature version bumperation, 0.4 (unreleased)
2016-03-20 14:19:48 +01:00
FRIGN
6775e26ebd
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.
2016-03-01 19:14:10 +01:00
Hiltjo Posthuma
c379d65770
add titles to pages, summary for commit messages, filename for files
2016-03-01 19:14:00 +01:00
Hiltjo Posthuma
78c29a1de2
fix right-alignment of "Files" column
2016-02-26 19:59:11 +01:00
lostd
2b50046245
Use the recommended HTML5 document type.
2016-02-26 19:57:15 +01:00
Hiltjo Posthuma
ad22404903
check path truncation
...
be strict about it
2016-02-24 14:47:20 +01:00
Hiltjo Posthuma
f4f53c577e
config.mk: add -D_DEFAULT_SOURCE to commented builds
2016-02-24 14:41:37 +01:00
Hiltjo Posthuma
8bf328befa
atom feed: add link, move content order to bottom
...
NOTE: using relative links violates the Atom specification, but relative
links are convenient aswell.
2016-02-23 20:44:00 +01:00
Hiltjo Posthuma
5578784dda
make printshowfile more generic and like other functions
2016-02-23 20:37:17 +01:00
Hiltjo Posthuma
ce535ae1af
just use Name as first column, thanks quinq for the suggestion
2016-01-21 20:42:11 +01:00
Quentin Rameau
75b4b23c9f
Rename “Age” column headers into “Date”
2016-01-21 20:38:47 +01:00
Quentin Rameau
502b95ce68
fix file tree handling
...
Do not forget to keep previous path when recursing or we end up with
filenames only.
2016-01-19 22:16:15 +01:00
z3bra
9693d1d1a9
use 'dirname' as error message for xdirname
2016-01-18 10:31:52 +00:00
Quentin Rameau
4f56d5dec6
fix file size byte unit suffix
...
Correct suffix for byte is B, b is for bit.
2016-01-13 21:58:08 +01:00
Quentin Rameau
d8bad43b3c
stop glibc complaining about _BSD_SOURCE being deprecated
2016-01-13 21:58:08 +01:00
Quentin Rameau
79fab7c6fa
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.
2016-01-13 21:58:08 +01:00
sin
50dccf0e3b
Rename Refs/branches to Refs
2016-01-13 18:57:18 +00:00
Hiltjo Posthuma
2296f5167c
example.sh: fix: remove error mode, would stop if a dir was invalid
...
mkdir -p makes the directory always, so no need to check.
2016-01-08 22:17:54 +01:00
Hiltjo Posthuma
8983c802c1
example.sh: fix go to appropriate dir
2016-01-08 21:27:22 +01:00
Hiltjo Posthuma
934980659a
implify and restructure code
...
- remove commit message and lines changed from refs page.
- resolve HEAD once.
- dont make filepath in writeblob()
2016-01-08 20:08:40 +01:00
Hiltjo Posthuma
efe16db1e5
stagit-index: clarify order of the list
2016-01-08 13:44:22 +01:00
Hiltjo Posthuma
fd66a29d3a
example.sh: add index-time.html, list sorted by time, fix reposdir '/'
2016-01-08 13:44:22 +01:00