legit

Fork of https://git.icyphox.sh/legit

Commits at f1be23371ca7f1dac3ffc80987c27ac406e6d3da

  1. f1be2337 Setup Markdown formatting Shota FUJI authored at Shota FUJI comitted at
  2. ff788598 Replace readme with README.md To clearly states this is a fork. Shota FUJI authored at Shota FUJI comitted at
  3. bc147a94 Configurable tab width for repo top page README may have tab character (e.g. code sample) Shota FUJI authored at Shota FUJI comitted at
  4. 15c51a91 Configurable tab width for blob page Shota FUJI authored at Shota FUJI comitted at
  5. cbb8266b Configurable tab width for commit page Shota FUJI authored at Shota FUJI comitted at
  6. 92a96a7e Setup JavaScript formatting I'm going to add ".js" files. Shota FUJI authored at Shota FUJI comitted at
  7. 46bb37d9 Fix typo in a code comment Shota FUJI authored at Shota FUJI comitted at
  8. 41a17d94 Set default tab width for <body> I'm going to make tab width user selectable. This is both as a temporary solution and as a default value. Shota FUJI authored at Shota FUJI comitted at
  9. d8ad037b Replace go module name Diverged enough. Shota FUJI authored at Shota FUJI comitted at
  10. f8813068 Format go file with dprint Shota FUJI authored at Shota FUJI comitted at
  11. 8c3d0a22 Format CSS files with dprint Shota FUJI authored at Shota FUJI comitted at
  12. ce2a0949 Use tab indentation for HTML and CSS HTML are all gone and CSS are completely rewritten. Shota FUJI authored at Shota FUJI comitted at
  13. f81ee57d Setup dprint, code formatter Running `go fmt <module>` is a lot. I often forgot to run that. dprint, on the other hand, formats everything by default. A chance of missing to run is significantly lower. Shota FUJI authored at Shota FUJI comitted at
  14. 130a2337 Disable go-import `go-import` does not work with `.git` extension and current routing logic cannot handle `foo -> foo.git` lookup. <https://github.com./icyphox/legit/issues/34> Shota FUJI authored at Shota FUJI comitted at
  15. 369d05c6 Fix most of the links are 404-ed on repository with .git suffix Shota FUJI authored at Shota FUJI comitted at
  16. 64314274 Align header and aside to top on three-column layout It looked good when there is enough main content, otherwise awkward due to misalign-feel. Shota FUJI authored at Shota FUJI comitted at
  17. 5b33be2d Style commit page Shota FUJI authored at Shota FUJI comitted at
  18. 1afd9b7c Style blob (file view) page Shota FUJI authored at Shota FUJI comitted at
  19. 33c4026a Remove unused functions Shota FUJI authored at Shota FUJI comitted at
  20. 4d770943 Refactor simple slice lookup to slices.Contains gopls screaming this refactor everytime I open this file. It was annoying. Shota FUJI authored at Shota FUJI comitted at
  21. 50d100f7 Style repo tree (files) page Shota FUJI authored at Shota FUJI comitted at
  22. 8f3f5233 Style repository log (commits) page Shota FUJI authored at Shota FUJI comitted at
  23. 35e0cec5 Move commit summary style to global page I want to use that style in commits page too. Shota FUJI authored at Shota FUJI comitted at
  24. 3a7d5238 Style repository refs page Shota FUJI authored at Shota FUJI comitted at
  25. 4a2e9702 Remove link underline by default My strategy is to put underline for user content (README) and hide for everything else. This change reflects the intent well. Shota FUJI authored at Shota FUJI comitted at
  26. 546e9b51 Turn default branch name to link to refs page "Refs" is not obvious name, especially for users who are GitHub/GitLab but git and its concept. Shota FUJI authored at Shota FUJI comitted at
  27. 19ee3c69 Style repository summary page Shota FUJI authored at Shota FUJI comitted at
  28. da924f05 Style repository list page Shota FUJI authored at Shota FUJI comitted at
  29. 7814915e Fix favicon not showing Shota FUJI authored at Shota FUJI comitted at
  30. 9fd428e4 Style the new templates Still ugly but viewable, at least. Shota FUJI authored at Shota FUJI comitted at
  31. 475d5104 Fix repository list uses author date instead of committer date The latter is the important one. This is how git and vast majority of its ecosystem behaves. Shota FUJI authored at Shota FUJI comitted at
  32. 14bdcf67 Cleanup routes and templates * Define data structure passed to templates in `routes/data.go`, to easily modify templates without reading whole handler code. * Rewrite HTML templates to bare-bones ones to make future modifications easy and clean. * Fix several markup problems, such as quirk mode and invalid tag hierarchy. Shota FUJI authored at Shota FUJI comitted at
  33. 3848e3b4 routes: Pass precise datetime to index page Displaying relative datetime without absolute one is confusing and/or frustrating. title attribute should include timezone for more accuracy, but it's enough for now. I have a plan to write a new template from scratch. Shota FUJI authored at Shota FUJI comitted at
  34. 041d8a56 Create `.editorconfig` file For consistent code styles. I mostly wrote down the current code style. Shota FUJI authored at Shota FUJI comitted at
  35. 5acac24d deps: bump go-git to v5.13.2 Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  36. 658e1edc all: use securejoin for path joining Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  37. f8f00566 deps: bump golang.org/x/crypto from 0.28.0 to 0.31.0 (#48) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.28.0 to 0.31.0. - [Commits](https://github.com/golang/crypto/compare/v0.28.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> dependabot[bot] authored at GitHub comitted at
  38. 9b685c8d css: tiny fix for darkmode Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  39. ec84ea1c routes: sanitize readme content for non markdown files Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  40. 98546565 css: remove custom font features Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  41. 64f6ad72 css: revert to default system font Also removes my CDN from head.html along with the relevant note in the readme. Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  42. 9691bbfa css: fix typo Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  43. 6d39fbcc css: update default font and colors Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  44. e108c4e9 deps: bump all Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  45. 3994d554 readme: reword, mention docker images Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  46. ad3e8f6b actions: build and push docker Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  47. 7b90e8ea docs: add info about syntaxHighlight usage Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  48. 34521a5b routes: add syntax highlight Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  49. de182443 deps: add chroma as dependency Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  50. d0c52202 git: show lightweight annotated tags (#42) The "TagObjects" function only returns annotated tags (the ones created with "-a"). Git interpretes lightweight and annotated tags[^1] differently, so we need to query all reference and check which one have a tag object attached. [^1]: https://git-scm.com/book/en/v2/Git-Basics-Tagging Gabriel authored at GitHub comitted at
  51. 4447fcda git: add unlisted repositories Marco Andronaco authored at GitHub comitted at
  52. c75aa9f5 contrib: update docker-compose.yml as well Marco Andronaco authored at Anirudh Oppiliappan comitted at
  53. 49d83231 contrib: update Dockerfile Marco Andronaco authored at Anirudh Oppiliappan comitted at
  54. fba146ac git: use system's git upload-pack This is an intermediate workaround for https://github.com/go-git/go-git/issues/1062. This should also fix #33. Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  55. 67e355d5 deps: bump golang.org/x/net from 0.22.0 to 0.23.0 (#40) dependabot[bot] authored at GitHub comitted at
  56. 8a548643 readme: fix a thing Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  57. 68f08e38 git: fix getDisplayName Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  58. 72a658a3 routes: ignore files Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  59. 68184129 nix: fix docker build Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  60. 03124550 css: dark theme Marco Andronaco authored at GitHub comitted at
  61. 8a0ebe22 git: hide .git extension Marco Andronaco authored at GitHub comitted at
  62. 9d1d6aae templates: Add link to tar gz handler endpoint Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  63. acac8d47 routes: Add handler to generate tar gz file Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  64. 86b2bf47 git: Add function to generate tar file from repo Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  65. 7e3307ef nix: init flake Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  66. 21627fed readme: misc updates Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  67. a13ced49 re-add accidentally removed code for raw file view lillian authored at Anirudh Oppiliappan comitted at
  68. 892ba7e5 readme: remove frivolous line from notes Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  69. cd22584c routes: switch to net/http router BREAKING: This commit reworks routes.Handlers (and everywhere else) to use http.ServeMux -- and subsequently, Go 1.22's new net/http router. This might break something. Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  70. a87f88a5 routes: add raw file view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  71. bdfc9732 deps: bump go-git Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.6.1 to 5.11.0. - [Release notes](https://github.com/go-git/go-git/releases) - [Commits](https://github.com/go-git/go-git/compare/v5.6.1...v5.11.0) --- updated-dependencies: - dependency-name: github.com/go-git/go-git/v5 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> dependabot[bot] authored at GitHub comitted at
  72. b2b18250 templates: add missing title to repo page Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  73. 30c0f3ee log errors from git.Open Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  74. 8f9e7f14 fix broken mailto: link in commit template Gil Poiares-Oliveira authored at GitHub comitted at
  75. 0191fc88 contrib: add systemd service file Akilesh Kannan authored at GitHub comitted at
  76. dc07fff4 deps: revert go-gitdiff bump Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  77. 847910c2 deps: bump Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  78. d1774f5a css: fix table overflow Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  79. 4f5d35ff how did that happen Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  80. 5dc6516d bump x/net Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  81. 1574bbec cleaner titles by nilix Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  82. d5a33e91 fix buffer overflow in countlines for files greater than 32k Signed-off-by: Derek Stevens <nilix@nilfm.cc> Derek Stevens authored at Anirudh Oppiliappan comitted at
  83. c90b2b51 contrib: docker support (#20) Gil Poiares-Oliveira authored at GitHub comitted at
  84. 22cf7a4a templates: fix tags Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  85. b78354ae tree: directories first, add size column, fix .. Signed-off-by: Derek Stevens <nilix@nilfm.cc> Derek Stevens authored at Anirudh Oppiliappan comitted at
  86. ee800624 fix line count for files that don't end in a newline Signed-off-by: Derek Stevens <nilix@nilfm.cc> Derek Stevens authored at Anirudh Oppiliappan comitted at
  87. ee5ab32a utils: Add helper to get all repos This does a filepath.WalkDir of the config.ScanPath and tries to find all valid git repos. It returns a list of repoInfo structs holding basic information of each repository. Daniele Sluijters authored at Anirudh Oppiliappan comitted at
  88. ee459fce docs: Expand on repo.ignore Make it clear the expectation is the paths are relative to scanPath. Daniele Sluijters authored at Anirudh Oppiliappan comitted at
  89. 8586d930 config: Ensure we always have an absolute path Having this consistent across the code is handy when we're building paths, counting separators and other path manipulation. Daniele Sluijters authored at Anirudh Oppiliappan comitted at
  90. 1e7b6381 readme: tiny thing Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  91. de046690 only add go meta import tag if go.mod exists in repo root This is a multipart message in MIME format. Pretty self-explanitory :3 Signed-off-by: Derek Stevens <nilix@nilfm.cc> Derek Stevens authored at Anirudh Oppiliappan comitted at
  92. 3060c752 sort tags and deduplicate This sorts the tags reverse-chronologically. If any tags have the same name (shouldn't happen but it does in some of my repos), we use whichever one is "newer". Signed-off-by: Derek Stevens <nilix@nilfm.cc> Derek Stevens authored at Anirudh Oppiliappan comitted at
  93. e782f36f add style tweaks Signed-off-by: Derek Stevens <nilix@nilfm.cc> Derek Stevens authored at Anirudh Oppiliappan comitted at
  94. 7a512b1d markdown: more file exts, fix img Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  95. 49b8b292 css: fix ul padding in readme Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  96. 95dec0f0 routes: render markdown readmes in repo index (#11) James Mills authored at GitHub comitted at
  97. 0547b042 css: set repo desc font weight to normal Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  98. 5912a0bc css: bottom padding in refs pre Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  99. 845cce8e css: lose grid layout in refs Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  100. 08c49d4d unveil: remove git executable and /dev/null Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  101. fa66c4fa git: pure go git clone Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  102. 983dabb3 css: wrap refs pre Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  103. 30559cd9 readme: unveil and ideas Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  104. f661e6e4 config: add repo.ignore Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  105. 2b57b6e0 unveil: /dev/null Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  106. 2fe14eca unveil: reorder Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  107. d58151db css: reduce pre font size Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  108. a64f9d8f css: set pre font lol Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  109. d6b8143f css: ui-monospace ref: https://stackoverflow.com/a/64133415 Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  110. 6e6648e3 unveil: add git executable Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  111. 0ed4b29f clean up long line Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  112. 45d1c6c2 unveil: cleanup code in main.go zak authored at Anirudh Oppiliappan comitted at
  113. 8c129f88 unveil: log each call zak authored at Anirudh Oppiliappan comitted at
  114. 4aa8cbff unveil: initial commit zak authored at Anirudh Oppiliappan comitted at
  115. d0f5d874 css: change iOS mono font Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  116. 86eb6431 templates: improve this & parent commit Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  117. 13757407 Link to parent commit file version in commit view It makes sense for [oldfile] in [oldfile]->[newfile] to link to the previous version. This is also how cgit behaves. phire authored at Anirudh Oppiliappan comitted at
  118. e5d35c4d css: scroll file content x-axis only - we don't need any overflow scrolling for the y-axis. - set overflow-x to 'auto' so that the scroll bar only shows when the content does overflow. zak authored at Anirudh Oppiliappan comitted at
  119. 42bce066 readme: add note clarifying cloning Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  120. 150d81df diff: scroll diff on overflow Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  121. 2f508f86 add license closes #2 Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  122. 263a1509 diff: show diff type Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  123. 194ec63d file: separate content and line numbers Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  124. 2b9b2bdb css: add bg to readme/file content Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  125. d1a2847a index: turn off logging, it's too noisy Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  126. 203fb6c5 readme: clarify license Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  127. e0e4c1eb css: scroll file content Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  128. f3c20bcb decrease prominence of author info in ui Alexander Cobleigh authored at Anirudh Oppiliappan comitted at
  129. 27ed90c5 unveil: clarify its uselessness Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  130. a0524401 git: check for binary files Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  131. 8ba1a960 add favicon Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  132. 9a8041a2 readme: more info Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  133. fc65017b config: fix yaml Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  134. df0962a3 all: no more pretty urls Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  135. 232a3603 templates: message under tag name Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  136. 99a092b8 css: default monospace font Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  137. 089ada4c config: fix go-import pretty url Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  138. 0e6eaa21 css: single column index on small screens Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  139. d0d636aa all: go-import, clone url Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  140. 2e3c3103 log: cleaner view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  141. 8f8f205c routes: skip unopenable dirs Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  142. 08255439 config: scan path Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  143. 85d1bf73 routes: sort repo index by last idle Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  144. 7fe98772 templates: add title tags Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  145. 5ea7cae9 unveil: init Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  146. 60298a69 git: rework diff to fetch initial commit Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  147. e4d12fc6 templates: unified repo-header Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  148. 3e6a7201 git, templates: diff view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  149. 5091695e templates: repo and log Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  150. 4eaaf451 css: wrong name Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  151. 9649b3ed templates: index rework Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  152. d083d5d7 routes: serve static content from /static Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  153. b833d2f7 readme: some bs Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  154. f8829d9e routes: disable git push Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  155. abe30076 routes: wildcard multiplex route at the end Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  156. 1b27f32c routes: multiplex git and web ui Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  157. 1872ca72 routes: description and humanized time to index Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  158. d879c2df template: line numbers for file view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  159. eda8b58d git: find main branch from config Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  160. 551c6637 deps: bump go-git Now builds without cgo. Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  161. 462c7ddc config: server host and port Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  162. 60e1092d templates: tree and log links for tags Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  163. 7a6ff356 routes: refs view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  164. 01f27147 routes: index view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  165. 82b8afe1 routes: render readme Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  166. 7d99afc5 templates: fix 404 and 500 Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  167. f04137f8 template: render diff header lines Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  168. c165c447 git, routes: commit diff view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  169. ce71721c routes, templates: tree and log views Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  170. e0f34796 git: fix trees Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  171. ac6ca71f routes: file content view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  172. ab30497e git: file content at ref Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  173. 6857a2f0 routes: split repo index and files views Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  174. d62fb144 git: fetch files only using ref Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  175. 856f6680 all: init Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at