pub/scm/linux/kernel/git/zx2c4/cgit.git  about / heads / tags
Web frontend of git.kernel.org
$ git log --pretty=format:'%h %s (%cs)%d'
00ecfaa config: make empty js= omit script tag (2023-01-10)
	(HEAD -> master)
907134b js: add dynamic age update (2022-12-19)
aee39b4 config: add js (2022-12-19)
093ac96 css: change to be a list (2022-12-19)
91f2590 cgitrc: handle value "0" for max-repo-count (2022-12-19)
852cb3b cache: tolerate short writes in print_slot (2022-12-19)
4c520ce global: use release_commit_memory() (2022-12-19)
d071f28 css: reset font size for blame oid (2022-12-19)
c1a1d23 ui-blame: add a link to the parent commit in blame (2022-12-19)
a0f6669 about: allow to give head from query (2022-12-19)
...

$ git cat-file blob HEAD:README
cgit - CGI for Git
==================

This is an attempt to create a fast web interface for the Git SCM, using a
built-in cache to decrease server I/O pressure.

Installation
------------

Building cgit involves building a proper version of Git. How to do this
depends on how you obtained the cgit sources:

a) If you're working in a cloned cgit repository, you first need to
initialize and update the Git submodule:

    $ git submodule init     # register the Git submodule in .git/config
    $ $EDITOR .git/config    # if you want to specify a different url for git
    $ git submodule update   # clone/fetch and checkout correct git version

b) If you're building from a cgit tarball, you can download a proper git
version like this:

    $ make get-git

When either a) or b) has been performed, you can build and install cgit like
this:

    $ make
    $ sudo make install

This will install `cgit.cgi` and `cgit.css` into `/var/www/htdocs/cgit`. You
can configure this location (and a few other things) by providing a `cgit.conf`
file (see the Makefile for details).

If you'd like to compile without Lua support, you may use:

    $ make NO_LUA=1

And if you'd like to specify a Lua implementation, you may use:

    $ make LUA_PKGCONFIG=lua5.1

If this is not specified, the Lua implementation will be auto-detected,
preferring LuaJIT if many are present. Acceptable values are generally "lua",
"luajit", "lua5.1", and "lua5.2".


Dependencies
------------

* libzip
* libcrypto (OpenSSL)
* libssl (OpenSSL)
* optional: luajit or lua, most reliably used when pkg-config is available

Apache configuration
--------------------

A new `Directory` section must probably be added for cgit, possibly something
like this:

    <Directory "/var/www/htdocs/cgit/">
        AllowOverride None
        Options +ExecCGI
        Order allow,deny
        Allow from all
    </Directory>


Runtime configuration
---------------------

The file `/etc/cgitrc` is read by cgit before handling a request. In addition
to runtime parameters, this file may also contain a list of repositories
displayed by cgit (see `cgitrc.5.txt` for further details).

The cache
---------

When cgit is invoked it looks for a cache file matching the request and
returns it to the client. If no such cache file exists (or if it has expired),
the content for the request is written into the proper cache file before the
file is returned.

If the cache file has expired but cgit is unable to obtain a lock for it, the
stale cache file is returned to the client. This is done to favour page
throughput over page freshness.

The generated content contains the complete response to the client, including
the HTTP headers `Modified` and `Expires`.

Online presence
---------------

* The cgit homepage is hosted by cgit at <https://git.zx2c4.com/cgit/about/>

* Patches, bug reports, discussions and support should go to the cgit
  mailing list: <cgit@lists.zx2c4.com>. To sign up, visit
  <https://lists.zx2c4.com/mailman/listinfo/cgit>

# heads (aka `branches'):
$ git for-each-ref --sort=-creatordate refs/heads \
	--format='%(HEAD) %(refname:short) %(subject) (%(creatordate:short))'
  ch/for-jason git: update to v2.45.0 (2024-04-29)
  ch/highlight-line Add a curved arrow ahead of the line number, to highlight the line specified in the URL. (2024-02-03)
  ch/log-commit-message ui-log: show ellipsis if detailed commit message is available (2024-01-30)
  ch/dynamic-aging css: make the footer opaque (2024-01-30)
  ch/about-link ui-tree: add about link in tree view list (2024-01-30)
  ch/default-pages Make default pages configurable (2024-01-30)
  jd/zx2c4-deployment css: Support for dark mode (2023-02-08)
* master       config: make empty js= omit script tag (2023-01-10)
  wiki         Mention IRC (2021-06-08)
  jd/render-filter Rename about-filter to render-filter (2018-07-03)
...

# tags:
$ git for-each-ref --sort=-creatordate refs/tags \
	--format='%(refname:short) %(subject) (%(creatordate:short))'
v1.2.3       CGIT v1.2.3 (2020-03-13) tar.gz
v1.2.2       CGIT v1.2.2 (2020-01-13) tar.gz
v1.2.1       CGIT v1.2.1 (2018-08-03) tar.gz
v1.2         CGIT v1.1 (2018-07-13) tar.gz
v1.1         CGIT v1.1 (2016-11-23) tar.gz
v1.0         CGIT v1.0 (2016-06-07) tar.gz
v0.12        CGIT 0.12 (2016-01-14) tar.gz
v0.11.2      CGIT 0.11.2 (2015-03-13) tar.gz
v0.11.1      CGIT 0.11.1 (2015-03-05) tar.gz
v0.11.0      CGIT 0.11.0 (2015-02-15) tar.gz
...

# associated public inboxes:
# (number on the left is used for dev purposes)
         35 lkml
         19 git
         11 u-boot
          9 qemu-devel
          9 linux-arm-kernel
          8 stable
          5 linux-devicetree
          5 linuxppc-dev
          5 dri-devel
          4 linux-wireless
          4 linux-mtd
          4 linux-arm-msm
          4 linux-input
          4 dpdk-dev
          4 kvm
          3 linux-mm
          3 linux-media
          3 xen-devel
          3 alsa-devel
          3 linux-rdma
          3 linux-bluetooth
          3 linux-mmc
          3 ltp
          3 yocto
          3 openembedded-devel
          3 b4-sent
          2 linux-block
          2 linux-nfs
          2 netfilter-devel
          2 linux-edac
          2 linux-amlogic
          2 netdev
          2 linux-scsi
          2 linux-btrfs
          2 selinux
          2 kernel-hardening
          2 linux-clk
          2 linux-iio
          2 linux-gpio
          2 linux-pci
          2 linux-watchdog
          2 linux-trace-devel
          2 util-linux
          2 intel-gfx
          2 mm-commits
          2 linux-arch
          2 dm-devel
          2 linux-cxl
          2 ath11k
          2 fio
          2 openembedded-core
          2 linux-patches
          2 yocto-meta-arago
          2 poky
          2 cgroups
          1 linux-samsung-soc
          1 linux-fscrypt
          1 cocci
          1 linux-riscv
          1 linux-nvme
          1 linux-xfs
          1 live-patching
          1 bpf
          1 linux-mediatek
          1 linux-crypto
          1 linux-efi
          1 linux-acpi
          1 linux-integrity
          1 linux-fsdevel
          1 linux-cifs
          1 linux-erofs
          1 linux-nvdimm
          1 linux-iommu
          1 linux-snps-arc
          1 linux-mips
          1 fstests
          1 linux-pm
          1 linux-hwmon
          1 linux-rtc
          1 kvmarm
          1 driverdev-devel
          1 linux-usb
          1 linux-renesas-soc
          1 linux-kselftest
          1 dmaengine
          1 linux-next
          1 linux-parisc
          1 linux-ext4
          1 linux-leds
          1 linux-security-module
          1 linux-f2fs-devel
          1 linux-modules
          1 kernelnewbies
          1 linux-rt-users
          1 linux-sgx
          1 linux-ide
          1 linux-serial
          1 linux-hyperv
          1 workflows
          1 rcu
          1 selinux-refpolicy
          1 linux-m68k
          1 linux-i3c
          1 linux-spdx
          1 linux-wpan
          1 ksummit-discuss
          1 wireguard
          1 backports
          1 io-uring
          1 linux-kernel-mentees
          1 linux-doc
          1 linux-csky
          1 linux-man
          1 amd-gfx
          1 tpmdd-devel
          1 linux-unionfs
          1 linux-firmware
          1 linux-api
          1 cip-dev
          1 linux-omap
          1 linux-audit
          1 linux-spi
          1 linux-i2c
          1 linux-remoteproc
          1 linux-dash
          1 linux-bcache
          1 linux-sparse
          1 linux-pwm
          1 linux-tegra
          1 lttng-dev
          1 virtualization
          1 linux-kbuild
          1 linux-fpga
          1 ceph-devel
          1 linux-can
          1 containers
          1 linux-rockchip
          1 linux-raid
          1 xdp-newbies
          1 platform-driver-x86
          1 phone-devel
          1 openbmc
          1 linux-hardening
          1 dash
          1 keyrings
          1 linux-fbdev
          1 linux-sctp
          1 linux-perf-users
          1 target-devel
          1 lustre-devel
          1 linux-sh
          1 soc
          1 ocfs2-devel
          1 rust-for-linux
          1 ath10k
          1 nouveau
          1 linux-phy
          1 linux-s390
          1 kernel-janitors
          1 sparclinux
          1 linux-staging
          1 linux-sunxi
          1 mptcp
          1 linux-coco
          1 regressions
          1 ksummit
          1 b43-dev
          1 nvdimm
          1 linux-nfc
          1 linux-bcachefs
          1 ath9k-devel
          1 buildroot
          1 ntfs3
          1 llvm
          1 iwd
          1 ell
          1 ofono
          1 yocto-meta-freescale
          1 yocto-toaster
          1 yocto-meta-arm
          1 yocto-docs
          1 bitbake-devel
          1 yocto-meta-virtualization
          1 chrome-platform
          1 ntb
          1 yocto-meta-ti
          1 outreachy
          1 xenomai
          1 damon
          1 asahi
          1 openrisc
          1 intel-wired-lan
          1 kexec
          1 loongarch
          1 imx
          1 ath12k
          1 linux-trace-kernel
          1 oe-linux-nfc
          1 oe-kbuild-all
          1 oe-chipsec
          1 batman
          1 intel-xe
          1 linux-um
          1 virtio-dev
          1 virtio-comment
          1 v9fs
          1 ecryptfs
          1 qemu-riscv
          1 linux-ia64
          1 cluster-devel
          1 grub-devel
          1 kbd
          1 autofs
          1 cpufreq
          1 dccp
          1 devicetree-spec
          1 devicetree-compiler
          1 initramfs
          1 kvm-ppc
          1 hail-devel
          1 kvm-ia64
          1 linux-8086
          1 kernel-testers
          1 linux-alpha
          1 linux-btrace
          1 linux-embedded
          1 linux-hams
          1 linux-hexagon
          1 linux-hotplug
          1 linux-laptop
          1 linux-sound
          1 trinity
          1 reiserfs-devel
          1 linux-metag
          1 linux-x25
          1 linux-nilfs
          1 lvs-devel
          1 netfilter
          1 linux-oxnas
          1 u-boot-amlogic
          1 lm-sensors
          1 lvm-devel
          1 acpica-devel
          1 perfbook
          1 virtio-fs
          1 smatch
          1 ../../../../../../../fuego
          1 ../../../../../../../wireless-regdb
          1 ../../../../../../../igt-dev
          1 ../../../../../../../powertop

git clone https://80x24.org/lore/pub/scm/linux/kernel/git/zx2c4/cgit.git