summaryrefslogtreecommitdiff
path: root/stagit.c
AgeCommit message (Collapse)Author
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
2016-01-06extra whitespaceHiltjo Posthuma
2016-01-06refs: only make commit link work for tagsHiltjo Posthuma
2016-01-06free objHiltjo Posthuma
2016-01-06old leftover: dont create log dirHiltjo Posthuma
2016-01-06cleanup code a bitHiltjo Posthuma
2016-01-06use git_reference for tags and branches, sort branches alsoHiltjo Posthuma
this removes some lines and somewhat simplifies it
2016-01-06fix cast to uintmax_tHiltjo Posthuma
2016-01-06lookup commits of annotated tagsHiltjo Posthuma
NOTE: as described in the TODO this will be rewritten more cleanly later using git_reference_*.
2016-01-06fix warning, use intmax_t %ju, thanks stateless!Hiltjo Posthuma
2016-01-05fix relpath for logHiltjo Posthuma
2016-01-05clone url is one line, strip newlineHiltjo Posthuma
2016-01-05refs: fix table id for tagsHiltjo Posthuma
2016-01-05refs: remove link, it may be broken for non-HEADHiltjo Posthuma
2016-01-05make hunk line itself a linkHiltjo Posthuma
2016-01-05revert log.html to log/head.html changeHiltjo Posthuma
2016-01-05fix newline after headerHiltjo Posthuma
2016-01-04fix link to commit from log pageHiltjo Posthuma
2016-01-04stagit: fix hunk header, thanks uggedal for reporting!Hiltjo Posthuma
2016-01-03no log per branchHiltjo Posthuma
rename log.html to log/HEAD.html, small code cleanup
2016-01-03rename refs to refs/branchesHiltjo Posthuma
2016-01-03refs: add link to log per branchHiltjo Posthuma
2016-01-03refs: dont make a table when there are no tags, add spacing betweenHiltjo Posthuma
2016-01-03add refs page (branches and tags)Hiltjo Posthuma
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
2015-12-26add stagit.cHiltjo Posthuma