aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cache support (-c option)Hiltjo Posthuma2016-05-022-41/+130
| | | | | | | | "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).
* small code cleanup: no need for status variableHiltjo Posthuma2016-05-011-4/+3
|
* atom feed: use published for author commit date, updated for committer dateHiltjo Posthuma2016-05-011-1/+8
| | | | this is the same as cgit.
* fix times (and timezone)Hiltjo Posthuma2016-05-012-20/+30
| | | | | | - in the index and log show the short time (GMT). - in the Atom feed use GMT time. - for commits show the time + offset.
* README: minor updateHiltjo Posthuma2016-05-011-1/+2
|
* fix path join '/'Hiltjo Posthuma2016-05-012-44/+37
| | | | add joinpath() function to handle this.
* code cleanup + style, functionally equivalentHiltjo Posthuma2016-05-012-20/+12
|
* layout: right align lines changed count in diffstatHiltjo Posthuma2016-04-301-1/+1
|
* optimization: suppress large diffsHiltjo Posthuma2016-04-301-0/+8
| | | | the values are arbitrary, these can be tweaked later if needed.
* optimization: read stats once and remember itHiltjo Posthuma2016-04-302-39/+149
| | | | | | | | | 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 ;)).
* example.sh: fix: sort list (regression from simplifying the script)Hiltjo Posthuma2016-04-291-2/+2
|
* whoops, module is m---------Hiltjo Posthuma2016-04-291-1/+1
|
* submodule supportHiltjo Posthuma2016-04-292-19/+9
| | | | | | | - 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.
* suppress meaningless error codes when a repo can't be opened (similar to ↵Hiltjo Posthuma2016-04-291-1/+1
| | | | stagit-index)
* improve example, remove sort hackHiltjo Posthuma2016-04-291-17/+4
|
* make submodule link black, easier to readHiltjo Posthuma2016-04-291-1/+1
| | | | this is also the same color as a bare repo without a link.
* minor style fixHiltjo Posthuma2016-04-291-1/+1
|
* Fix null pointer access for submodules in writefilestreeQuentin Rameau2016-04-291-6/+11
| | | | | Do not try to set a link to submodules from bare repo as we can't get the actual url.
* tweak style of showing submodulesHiltjo Posthuma2016-04-291-4/+6
| | | | this will make it look similar to cgit. show mode as "m---------"
* Don't fail on submodulesz3bra2016-04-292-29/+44
| | | | | | | | | | 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.
* fix: check gmtime, can return NULL on errorHiltjo Posthuma2016-04-272-2/+4
|
* resolve absolute paths to repodir, remove basename just use strrchr.Hiltjo Posthuma2016-04-272-52/+17
| | | | | | | - 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.
* stagit-index: remove unused efopen functionHiltjo Posthuma2016-04-271-11/+0
|
* fix: link to line in hunk if a patch has multiple files and hunksHiltjo Posthuma2016-04-271-5/+5
| | | | thanks to lostd for reporting it!
* clean generated tarball toosin2016-03-251-1/+1
|
* Makefile: use NAME variable, suggested by Quentin0.3.1Hiltjo Posthuma2016-03-201-6/+6
|
* Makefile: separate CPPFLAGS, compile optimized build by defaultHiltjo Posthuma2016-03-202-10/+11
|
* improve make dist, thanks Quentin RameauHiltjo Posthuma2016-03-201-8/+8
| | | | | | | based on a patch from Quentin with some additions. - don't build before make dist - package in directory: stagit-VERSION.
* premature version bumperation, 0.4 (unreleased)Hiltjo Posthuma2016-03-201-1/+1
|
* Choose better colors for the diff page0.3FRIGN2016-03-011-3/+3
| | | | | This makes it easier to read on the light background and is not as straining in the eyes.
* add titles to pages, summary for commit messages, filename for filesHiltjo Posthuma2016-03-011-6/+9
|
* fix right-alignment of "Files" columnHiltjo Posthuma2016-02-261-1/+1
|
* Use the recommended HTML5 document type.lostd2016-02-262-2/+2
|
* check path truncationHiltjo Posthuma2016-02-243-25/+56
| | | | be strict about it
* config.mk: add -D_DEFAULT_SOURCE to commented buildsHiltjo Posthuma2016-02-241-2/+2
|
* atom feed: add link, move content order to bottomHiltjo Posthuma2016-02-231-7/+11
| | | | | NOTE: using relative links violates the Atom specification, but relative links are convenient aswell.
* make printshowfile more generic and like other functionsHiltjo Posthuma2016-02-232-15/+16
|
* just use Name as first column, thanks quinq for the suggestionHiltjo Posthuma2016-01-211-3/+2
|
* Rename “Age” column headers into “Date”Quentin Rameau2016-01-211-2/+2
|
* fix file tree handlingQuentin Rameau2016-01-191-8/+10
| | | | | Do not forget to keep previous path when recursing or we end up with filenames only.
* use 'dirname' as error message for xdirnamez3bra2016-01-181-1/+1
|
* fix file size byte unit suffixQuentin Rameau2016-01-131-2/+2
| | | | Correct suffix for byte is B, b is for bit.
* stop glibc complaining about _BSD_SOURCE being deprecatedQuentin Rameau2016-01-131-1/+1
|
* replace file size with line count for text filesQuentin Rameau2016-01-132-9/+17
| | | | | 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.
* Rename Refs/branches to Refssin2016-01-131-1/+1
|
* example.sh: fix: remove error mode, would stop if a dir was invalidHiltjo Posthuma2016-01-081-9/+5
| | | | mkdir -p makes the directory always, so no need to check.
* example.sh: fix go to appropriate dirHiltjo Posthuma2016-01-081-1/+2
|
* implify and restructure codeHiltjo Posthuma2016-01-081-70/+37
| | | | | | - remove commit message and lines changed from refs page. - resolve HEAD once. - dont make filepath in writeblob()
* stagit-index: clarify order of the listHiltjo Posthuma2016-01-081-1/+4
|
* example.sh: add index-time.html, list sorted by time, fix reposdir '/'Hiltjo Posthuma2016-01-081-4/+16
|