about summary refs log tree commit diff
path: root/third_party/cgit
AgeCommit message (Collapse)AuthorFilesLines
2021-09-21 r/2898 chore(3p/cgit): git: update to v2.30.1Christian Hesse1-1/+1
Update to git version v2.30.1, no additional changes required. Signed-off-by: Christian Hesse <mail@eworm.de> Change-Id: I9c8a572fcef2dbb3164ecc397dc071240eba8480
2021-09-21 r/2897 test(3p/cgit): t0107: support older and/or non-GNU tarTodd Zullinger1-4/+4
The untar tests for various compression algorithms use shortcut options from GNU tar to handle decompression. These options may not be provided by non-GNU tar nor even by slightly older GNU tar versions which ship on many systems. An example of the latter case is the --zstd option. This was added in GNU tar-1.32 (2019-02-23)¹. This version of tar is not provided by CentOS/RHEL, in particular. In Debian, --zstd has been backported to the tar-1.30 release. Avoid the requirement on any specific implementations or versions of tar by piping decompressed output to tar. This is compatible with older GNU tar releases as well as tar implementations from other vendors. (It may also be a slight benefit that this more closely matches what the snapshot creation code does.) ¹ Technically, the --zstd option was first released in tar-1.31 (2019-01-02), but this release was very short-lived and is no longer listed on the GNU Tar release page. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Change-Id: Ib65412cd1d23312ddd4cf840c09efc32512d3122
2021-09-21 r/2896 refactor(3p/cgit): md2html: use sane_lists extensionJason A. Donenfeld1-0/+1
This allows for cleaner nesting semantics and matches github more closely. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Change-Id: I93dacc0c276fefb28d67379ef38b8647c584244b
2021-09-21 r/2895 chore(3p/cgit): git: update to v2.30.0Christian Hesse5-33/+35
Update to git version v2.30.0, this requires changes for these upstream commits: * 88894aaeeae92e8cb41143cc2e045f50289dc790 blame: simplify 'setup_scoreboard' interface * 1fbfdf556f2abc708183caca53ae4e2881b46ae2 banned.h: mark non-reentrant gmtime, etc as banned Signed-off-by: Christian Hesse <mail@eworm.de> Change-Id: I6076ef250102010b601c92e9ea5bab2061b77006
2021-09-21 r/2894 chore(3p/cgit): git: update to v2.29.2Christian Hesse1-1/+1
Update to git version v2.29.2. No changes required. Signed-off-by: Christian Hesse <mail@eworm.de> Change-Id: I8a3c12fdaa492ede79a750eea4b78f750dbfa18f
2021-09-21 r/2893 chore(3p/cgit): git: update to v2.29.1Christian Hesse2-2/+1
Update to git version v2.29.1. No functional change, but we want latest and greated version number, no? 😜 Signed-off-by: Christian Hesse <mail@eworm.de> Change-Id: Ie890ace2e88dca0d7defb1cac5a2723699f794db
2021-09-15 r/2867 feat(3p/cgit): Highlight cheddar callout in about viewsVincent Ambo1-0/+26
Change-Id: Ica055ab621608ff78dbbf9ea9a2c9d1cdf2ff21e Reviewed-on: https://cl.tvl.fyi/c/depot/+/3556 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
2021-04-10 r/2461 refactor(third_party): Consistent use of depot.third_party vs. pkgsVincent Ambo1-4/+3
In preparation for the solution of b/108, we need to consistently use `depot.third_party` for packages that are only packed in the TVL depot and `pkgs` for things that come from nixpkgs. This commit cleans up a huge chunk of these uses in //third_party Change-Id: Ic382c0cdea7330a84d5f0b7d109c824ddceb94e7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2912 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
2021-04-06 r/2447 fix(3p/cgit): fix max-width for #summarysterni1-1/+1
Having a space between the number and the unit is not valid CSS. I was aware of this problem, but apparently forgot to amend the fix. Change-Id: I74936db515799763038669d0a11da53f28f722be Reviewed-on: https://cl.tvl.fyi/c/depot/+/2867 Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
2021-04-02 r/2400 feat(3p/cgit): limit width of div#summary, i. e. /about/**sterni2-0/+5
Decreased text width for the /about pages should increase readability considerably as jumping back to the beginning is hard for longer lines. The result is still not perfect as the font size for the /about pages is rather small and many lines thus get broken somewhat awkwardly. We could probably migitate that using a larger font size. The implementation choice of adding a tvl-extra.css which we inject into cgit.css in preBuild is for simplicity: We don't need to worry about routing an extra CSS file and loading it from the right location via extra cgit head entries and serving it at the correct location using either nginx or thttpd. A drawback of this is however that iteration is slowed down by cgit's compilation time. Additionally, this should be the basis for implementing a bubblegum themed cgit for Profpatsch. Change-Id: I18060f735167acd623cef7a17c83408978461249 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2756 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
2021-04-02 r/2397 feat(3p/cgit): enableParallelBuildingsterni1-0/+2
This gives a decent compilation speedup even on slow machines, so seems worth it. Let's hope the cgit build process is not racy. Change-Id: Ic4ae72789da2ccae16fd48e46aec624244b25035 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2755 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
2021-04-01 r/2390 chore(third_party/cgit): use lib instead of stdenv.libFlorian Klink1-5/+6
Getting `lib` from `stdenv.lib` is deprecated, and throws warnings. Change-Id: Ic925818c1b5a67d15d6d40ad784554328cd603e0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2751 Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
2020-11-21 r/1892 fix(3p/cgit): Rename remaining 'sha1' references to 'oid'Vincent Ambo1-2/+2
This changed upstream & upstream-upstream, but was still used in our patches. Change-Id: Id33f868a4f188deb3348425276bc5b4c4b36aff9
2020-11-21 r/1891 merge(3p/cgit): subtree merge at adcc4f82Vincent Ambo26-135/+299
Change-Id: I16941629a17a2f39b9324cb85dc0cec6b104dfe4
2020-08-03 r/1558 fix(3p/cgit): transpose html_option parametersAlyssa Ross1-1/+1
I got these the wrong way round, fixed them in the patch in my Nix configuration, and then neglected to fix them in the version for depot. Fixes: be98295dc24492f6607cce04ba586e3897a83543 Change-Id: Ib7d4e433887f474ae9675e9948ab38f640181095 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1383 Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: kanepyork <rikingcoding@gmail.com> Tested-by: BuildkiteCI
2020-07-23 r/1434 feat(3p/cgit): add "this commit" option to switch formAlyssa Ross1-0/+12
Branches are grouped into their own section to make the "this commit" option visually distinct. Adding this option will result in two options being marked as selected if a branch has the same name as a commit oid. But that would cause all sorts of other problems anyway (attempting to switch to the branch would actually give you the commit, etc.), so let's not worry about that. A "permalink" link on the blob view next to the "plain" link would probably be more discoverable, but that would only work for the blob view. The switch UI is visible everywhere. This patch is in use already at <https://git.qyliss.net/> and <https://spectrum-os.org/git/>. Signed-off-by: Alyssa Ross <hi@alyssa.is> Message-Id: <20200723204820.16776-1-hi@alyssa.is> Cc: Profpatsch <mail@profpatsch.de> Change-Id: I7e88d1231dd402e0ad764e16b28e9a51964c6293 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1382 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
2020-06-03 r/878 fix(3p/cgit): Fix compilation under ClangLuke Granger-Brown2-2/+2
Clang treats function-like macros "correctly", in that, per the C11 spec: "Each subsequent instance of the function-like macro name followed by a ( [...] is replaced by the replacement list [...]". Additionally, fprintf is also permitted to be defined as a function-like macro rather than as a true function: "Any function declared in a header may be additionally implemented as a function-like macro defined in the header [...]". The specification then suggests surrounding the name of the function in parens to avoid this, which is the technique we use here to avoid the function-like macro being invoked. The other fix here is to use uintptr_t for some arithmetic, since Git is expecting an int as the value here and not a pointer.
2020-04-19 r/633 fix(third_party/cgit): Correctly make "about links" on about pageVincent Ambo1-0/+4
2020-02-21 feat(cgit/ui-commit): show subject in page titleC. McEnroe1-0/+1
2020-02-21 feat(cgit/ui-tree): show symlink targets in tree listingC. McEnroe1-2/+20
Add links to symbolic link targets in tree listings, formatted like "ls -l". Path normalization collapses any ".." components of the link.
2020-02-21 feat(cgit/ui-tree): don't link to blame for binary blobsC. McEnroe1-2/+4
2020-02-21 feat(cgit/ui-blame): bail if blob is binaryC. McEnroe1-0/+4
This avoids piping binary blobs through the source-filter.
2020-02-21 r/559 chore: Rename pkgs->depot in all Nix file headersVincent Ambo1-3/+3
2020-02-09 r/514 fix(third_party/cgit): Make vpath & repo available for about cmdVincent Ambo1-1/+1
This change makes cgit pass the current repo and vpath inside of the repo on to the about cmd, which makes it possible for it to correctly render `tree`, `log` and other links to the same vpath.
2020-01-18 r/402 chore(third_party/cgit): Remove git submoduleVincent Ambo2-3/+0
This is instead passed in by Nix, and it confuses git on clones.
2020-01-12 r/382 feat(third_party/cgit): Render timestamps in dottimeVincent Ambo4-8/+8
Using the DATE_DOTTIME format support in git.
2020-01-12 r/380 feat(third_party/cgit): Add derivation to build cgitVincent Ambo2-0/+38
This is pretty much exactly the derivation from nixpkgs, with some things removed to reduce the closure size (e.g. the various formatters used in the default cgit version, which are replaced by cheddar in my setup).
2020-01-11 r/377 feat(third_party/cgit): Generate links to about pages from subtreesVincent Ambo1-4/+10
If you're on tree/foo/bar, the about link will now point to about/foo/bar. Currently the annoying thing about this is that it will also do it for files.
2020-01-11 r/376 feat(third_party/cgit): Use README at each subtreeVincent Ambo1-0/+12
This means that individual subtrees of a repository will also have their READMEs rendered on the about page, for example: /foo/bar/README.md Will render on: /about/foo/bar/ This is useful for monorepo setups in which subtrees represent individual projects.
2020-01-11 r/375 feat(third_party/cgit): Generate monorepo compatible URLsVincent Ambo2-43/+10
Generates URLs that do not include the repository name. On git.tazj.in, only one repository (depot) is served - hence URLs generated by cgit need not include the name.
2020-01-11 r/371 merge(third_party/cgit): Import at master of 2020-01-11Vincent Ambo102-0/+15631
Imported commit '723dc8fbcb1a4609c264758eae420ee2811a2b55' as 'third_party/cgit'.