legit

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

Commits at 1afd9b7c35f167dddb87890e82f42a013510e5ab

  1. 1afd9b7c Style blob (file view) page Shota FUJI authored at Shota FUJI comitted at
  2. 33c4026a Remove unused functions Shota FUJI authored at Shota FUJI comitted at
  3. 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
  4. 50d100f7 Style repo tree (files) page Shota FUJI authored at Shota FUJI comitted at
  5. 8f3f5233 Style repository log (commits) page Shota FUJI authored at Shota FUJI comitted at
  6. 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
  7. 3a7d5238 Style repository refs page Shota FUJI authored at Shota FUJI comitted at
  8. 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
  9. 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
  10. 19ee3c69 Style repository summary page Shota FUJI authored at Shota FUJI comitted at
  11. da924f05 Style repository list page Shota FUJI authored at Shota FUJI comitted at
  12. 7814915e Fix favicon not showing Shota FUJI authored at Shota FUJI comitted at
  13. 9fd428e4 Style the new templates Still ugly but viewable, at least. Shota FUJI authored at Shota FUJI comitted at
  14. 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
  15. 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
  16. 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
  17. 041d8a56 Create `.editorconfig` file For consistent code styles. I mostly wrote down the current code style. Shota FUJI authored at Shota FUJI comitted at
  18. 5acac24d deps: bump go-git to v5.13.2 Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  19. 658e1edc all: use securejoin for path joining Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  20. 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
  21. 9b685c8d css: tiny fix for darkmode Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  22. ec84ea1c routes: sanitize readme content for non markdown files Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  23. 98546565 css: remove custom font features Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  24. 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
  25. 9691bbfa css: fix typo Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  26. 6d39fbcc css: update default font and colors Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  27. e108c4e9 deps: bump all Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  28. 3994d554 readme: reword, mention docker images Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  29. ad3e8f6b actions: build and push docker Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  30. 7b90e8ea docs: add info about syntaxHighlight usage Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  31. 34521a5b routes: add syntax highlight Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  32. de182443 deps: add chroma as dependency Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  33. 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
  34. 4447fcda git: add unlisted repositories Marco Andronaco authored at GitHub comitted at
  35. c75aa9f5 contrib: update docker-compose.yml as well Marco Andronaco authored at Anirudh Oppiliappan comitted at
  36. 49d83231 contrib: update Dockerfile Marco Andronaco authored at Anirudh Oppiliappan comitted at
  37. 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
  38. 67e355d5 deps: bump golang.org/x/net from 0.22.0 to 0.23.0 (#40) dependabot[bot] authored at GitHub comitted at
  39. 8a548643 readme: fix a thing Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  40. 68f08e38 git: fix getDisplayName Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  41. 72a658a3 routes: ignore files Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  42. 68184129 nix: fix docker build Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  43. 03124550 css: dark theme Marco Andronaco authored at GitHub comitted at
  44. 8a0ebe22 git: hide .git extension Marco Andronaco authored at GitHub comitted at
  45. 9d1d6aae templates: Add link to tar gz handler endpoint Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  46. acac8d47 routes: Add handler to generate tar gz file Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  47. 86b2bf47 git: Add function to generate tar file from repo Gabriel A. Giovanini authored at Anirudh Oppiliappan comitted at
  48. 7e3307ef nix: init flake Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  49. 21627fed readme: misc updates Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  50. a13ced49 re-add accidentally removed code for raw file view lillian authored at Anirudh Oppiliappan comitted at
  51. 892ba7e5 readme: remove frivolous line from notes Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  52. 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
  53. a87f88a5 routes: add raw file view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  54. 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
  55. b2b18250 templates: add missing title to repo page Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  56. 30c0f3ee log errors from git.Open Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  57. 8f9e7f14 fix broken mailto: link in commit template Gil Poiares-Oliveira authored at GitHub comitted at
  58. 0191fc88 contrib: add systemd service file Akilesh Kannan authored at GitHub comitted at
  59. dc07fff4 deps: revert go-gitdiff bump Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  60. 847910c2 deps: bump Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  61. d1774f5a css: fix table overflow Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  62. 4f5d35ff how did that happen Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  63. 5dc6516d bump x/net Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  64. 1574bbec cleaner titles by nilix Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  65. 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
  66. c90b2b51 contrib: docker support (#20) Gil Poiares-Oliveira authored at GitHub comitted at
  67. 22cf7a4a templates: fix tags Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  68. b78354ae tree: directories first, add size column, fix .. Signed-off-by: Derek Stevens <nilix@nilfm.cc> Derek Stevens authored at Anirudh Oppiliappan comitted at
  69. 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
  70. 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
  71. 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
  72. 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
  73. 1e7b6381 readme: tiny thing Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  74. 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
  75. 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
  76. e782f36f add style tweaks Signed-off-by: Derek Stevens <nilix@nilfm.cc> Derek Stevens authored at Anirudh Oppiliappan comitted at
  77. 7a512b1d markdown: more file exts, fix img Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  78. 49b8b292 css: fix ul padding in readme Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  79. 95dec0f0 routes: render markdown readmes in repo index (#11) James Mills authored at GitHub comitted at
  80. 0547b042 css: set repo desc font weight to normal Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  81. 5912a0bc css: bottom padding in refs pre Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  82. 845cce8e css: lose grid layout in refs Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  83. 08c49d4d unveil: remove git executable and /dev/null Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  84. fa66c4fa git: pure go git clone Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  85. 983dabb3 css: wrap refs pre Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  86. 30559cd9 readme: unveil and ideas Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  87. f661e6e4 config: add repo.ignore Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  88. 2b57b6e0 unveil: /dev/null Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  89. 2fe14eca unveil: reorder Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  90. d58151db css: reduce pre font size Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  91. a64f9d8f css: set pre font lol Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  92. d6b8143f css: ui-monospace ref: https://stackoverflow.com/a/64133415 Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  93. 6e6648e3 unveil: add git executable Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  94. 0ed4b29f clean up long line Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  95. 45d1c6c2 unveil: cleanup code in main.go zak authored at Anirudh Oppiliappan comitted at
  96. 8c129f88 unveil: log each call zak authored at Anirudh Oppiliappan comitted at
  97. 4aa8cbff unveil: initial commit zak authored at Anirudh Oppiliappan comitted at
  98. d0f5d874 css: change iOS mono font Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  99. 86eb6431 templates: improve this & parent commit Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  100. 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
  101. 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
  102. 42bce066 readme: add note clarifying cloning Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  103. 150d81df diff: scroll diff on overflow Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  104. 2f508f86 add license closes #2 Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  105. 263a1509 diff: show diff type Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  106. 194ec63d file: separate content and line numbers Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  107. 2b9b2bdb css: add bg to readme/file content Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  108. d1a2847a index: turn off logging, it's too noisy Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  109. 203fb6c5 readme: clarify license Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  110. e0e4c1eb css: scroll file content Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  111. f3c20bcb decrease prominence of author info in ui Alexander Cobleigh authored at Anirudh Oppiliappan comitted at
  112. 27ed90c5 unveil: clarify its uselessness Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  113. a0524401 git: check for binary files Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  114. 8ba1a960 add favicon Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  115. 9a8041a2 readme: more info Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  116. fc65017b config: fix yaml Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  117. df0962a3 all: no more pretty urls Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  118. 232a3603 templates: message under tag name Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  119. 99a092b8 css: default monospace font Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  120. 089ada4c config: fix go-import pretty url Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  121. 0e6eaa21 css: single column index on small screens Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  122. d0d636aa all: go-import, clone url Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  123. 2e3c3103 log: cleaner view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  124. 8f8f205c routes: skip unopenable dirs Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  125. 08255439 config: scan path Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  126. 85d1bf73 routes: sort repo index by last idle Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  127. 7fe98772 templates: add title tags Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  128. 5ea7cae9 unveil: init Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  129. 60298a69 git: rework diff to fetch initial commit Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  130. e4d12fc6 templates: unified repo-header Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  131. 3e6a7201 git, templates: diff view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  132. 5091695e templates: repo and log Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  133. 4eaaf451 css: wrong name Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  134. 9649b3ed templates: index rework Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  135. d083d5d7 routes: serve static content from /static Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  136. b833d2f7 readme: some bs Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  137. f8829d9e routes: disable git push Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  138. abe30076 routes: wildcard multiplex route at the end Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  139. 1b27f32c routes: multiplex git and web ui Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  140. 1872ca72 routes: description and humanized time to index Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  141. d879c2df template: line numbers for file view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  142. eda8b58d git: find main branch from config Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  143. 551c6637 deps: bump go-git Now builds without cgo. Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  144. 462c7ddc config: server host and port Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  145. 60e1092d templates: tree and log links for tags Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  146. 7a6ff356 routes: refs view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  147. 01f27147 routes: index view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  148. 82b8afe1 routes: render readme Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  149. 7d99afc5 templates: fix 404 and 500 Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  150. f04137f8 template: render diff header lines Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  151. c165c447 git, routes: commit diff view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  152. ce71721c routes, templates: tree and log views Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  153. e0f34796 git: fix trees Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  154. ac6ca71f routes: file content view Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  155. ab30497e git: file content at ref Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  156. 6857a2f0 routes: split repo index and files views Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  157. d62fb144 git: fetch files only using ref Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at
  158. 856f6680 all: init Anirudh Oppiliappan authored at Anirudh Oppiliappan comitted at