summaryrefslogtreecommitdiff
path: root/stagit.c
AgeCommit message (Collapse)Author
2016-05-29treat an empty repo (without a HEAD) as validHiltjo Posthuma
and create the standard files. Disable caching if there is no HEAD.
2016-05-21refs_cmp: simplify check, functionally the sameHiltjo Posthuma
2016-05-08check if LICENSE, README and .gitmodules is a file blobHiltjo Posthuma
don't link to directory trees, etc. Thanks 600360 for reporting it!
2016-05-07simplify, id is unusedHiltjo Posthuma
2016-05-07simplify, no need for gotoHiltjo Posthuma
2016-05-07consistency for messages for special-case in diffstatHiltjo Posthuma
2016-05-07fix error in "code cleanup" commit 9328d2690e118127bcaa5cf9f665d8e7711f7a03Hiltjo Posthuma
... the loop was simplified, but forgot to remove p++ (double used) while rebasing the change.
2016-05-06fix and simplify time offsetHiltjo Posthuma
2016-05-06make diffstat files an anchor (jump to delta)Hiltjo Posthuma
2016-05-03fix joinpath(): use of global 'repodir', should be 'path'Hiltjo Posthuma
use joinpath for another case.
2016-05-03fix regression from last commitHiltjo Posthuma
2016-05-03code cleanupHiltjo Posthuma
2016-05-03remove config.h, add options to stagit.cHiltjo Posthuma
2016-05-03add OpenBSD pledge(2) support using -DUSE_PLEDGEHiltjo Posthuma
2016-05-02style: write atom feed end in one write, kills 2 linesHiltjo Posthuma
2016-05-02cache support (-c option)Hiltjo Posthuma
"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-01small code cleanup: no need for status variableHiltjo Posthuma
2016-05-01atom feed: use published for author commit date, updated for committer dateHiltjo Posthuma
this is the same as cgit.
2016-05-01fix times (and timezone)Hiltjo Posthuma
- 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-01fix path join '/'Hiltjo Posthuma
add joinpath() function to handle this.
2016-05-01code cleanup + style, functionally equivalentHiltjo Posthuma
2016-04-30layout: right align lines changed count in diffstatHiltjo Posthuma
2016-04-30optimization: suppress large diffsHiltjo Posthuma
the values are arbitrary, these can be tweaked later if needed.
2016-04-30optimization: read stats once and remember itHiltjo Posthuma
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-29whoops, module is m---------Hiltjo Posthuma
2016-04-29submodule supportHiltjo Posthuma
- 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-29suppress meaningless error codes when a repo can't be opened (similar to ↵Hiltjo Posthuma
stagit-index)
2016-04-29minor style fixHiltjo Posthuma
2016-04-29Fix null pointer access for submodules in writefilestreeQuentin Rameau
Do not try to set a link to submodules from bare repo as we can't get the actual url.
2016-04-29tweak style of showing submodulesHiltjo Posthuma
this will make it look similar to cgit. show mode as "m---------"
2016-04-29Don't fail on submodulesz3bra
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-27fix: check gmtime, can return NULL on errorHiltjo Posthuma
2016-04-27resolve absolute paths to repodir, remove basename just use strrchr.Hiltjo Posthuma
- 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-27fix: link to line in hunk if a patch has multiple files and hunksHiltjo Posthuma
thanks to lostd for reporting it!
2016-03-01add titles to pages, summary for commit messages, filename for filesHiltjo Posthuma
2016-02-26fix right-alignment of "Files" columnHiltjo Posthuma
2016-02-26Use the recommended HTML5 document type.lostd
2016-02-24check path truncationHiltjo Posthuma
be strict about it
2016-02-23atom feed: add link, move content order to bottomHiltjo Posthuma
NOTE: using relative links violates the Atom specification, but relative links are convenient aswell.
2016-02-23make printshowfile more generic and like other functionsHiltjo Posthuma
2016-01-21just use Name as first column, thanks quinq for the suggestionHiltjo Posthuma
2016-01-21Rename “Age” column headers into “Date”Quentin Rameau
2016-01-19fix file tree handlingQuentin Rameau
Do not forget to keep previous path when recursing or we end up with filenames only.
2016-01-18use 'dirname' as error message for xdirnamez3bra
2016-01-13fix file size byte unit suffixQuentin Rameau
Correct suffix for byte is B, b is for bit.
2016-01-13replace file size with line count for text filesQuentin Rameau
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-13Rename Refs/branches to Refssin
2016-01-08implify and restructure codeHiltjo Posthuma
- remove commit message and lines changed from refs page. - resolve HEAD once. - dont make filepath in writeblob()
2016-01-07atom: add newline after date and before messageHiltjo Posthuma
2016-01-06strip .git suffix from nameHiltjo Posthuma
also free stripped_name in the case of stagit-index