{"payload":{"allShortcutsEnabled":false,"fileTree":{"gitweb":{"items":[{"name":"test","path":"gitweb/test","contentType":"directory"},{"name":"INSTALL","path":"gitweb/INSTALL","contentType":"file"},{"name":"README","path":"gitweb/README","contentType":"file"},{"name":"git-favicon.png","path":"gitweb/git-favicon.png","contentType":"file"},{"name":"git-logo.png","path":"gitweb/git-logo.png","contentType":"file"},{"name":"gitweb.css","path":"gitweb/gitweb.css","contentType":"file"},{"name":"gitweb.perl","path":"gitweb/gitweb.perl","contentType":"file"}],"totalCount":7},"":{"items":[{"name":"Documentation","path":"Documentation","contentType":"directory"},{"name":"arm","path":"arm","contentType":"directory"},{"name":"compat","path":"compat","contentType":"directory"},{"name":"contrib","path":"contrib","contentType":"directory"},{"name":"git-gui","path":"git-gui","contentType":"directory"},{"name":"gitweb","path":"gitweb","contentType":"directory"},{"name":"mozilla-sha1","path":"mozilla-sha1","contentType":"directory"},{"name":"perl","path":"perl","contentType":"directory"},{"name":"ppc","path":"ppc","contentType":"directory"},{"name":"t","path":"t","contentType":"directory"},{"name":"templates","path":"templates","contentType":"directory"},{"name":"xdiff","path":"xdiff","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":"COPYING","path":"COPYING","contentType":"file"},{"name":"GIT-VERSION-GEN","path":"GIT-VERSION-GEN","contentType":"file"},{"name":"INSTALL","path":"INSTALL","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README","path":"README","contentType":"file"},{"name":"RelNotes","path":"RelNotes","contentType":"symlink_file"},{"name":"alloc.c","path":"alloc.c","contentType":"file"},{"name":"archive-tar.c","path":"archive-tar.c","contentType":"file"},{"name":"archive-zip.c","path":"archive-zip.c","contentType":"file"},{"name":"archive.h","path":"archive.h","contentType":"file"},{"name":"attr.c","path":"attr.c","contentType":"file"},{"name":"attr.h","path":"attr.h","contentType":"file"},{"name":"base85.c","path":"base85.c","contentType":"file"},{"name":"blob.c","path":"blob.c","contentType":"file"},{"name":"blob.h","path":"blob.h","contentType":"file"},{"name":"builtin-add.c","path":"builtin-add.c","contentType":"file"},{"name":"builtin-annotate.c","path":"builtin-annotate.c","contentType":"file"},{"name":"builtin-apply.c","path":"builtin-apply.c","contentType":"file"},{"name":"builtin-archive.c","path":"builtin-archive.c","contentType":"file"},{"name":"builtin-blame.c","path":"builtin-blame.c","contentType":"file"},{"name":"builtin-branch.c","path":"builtin-branch.c","contentType":"file"},{"name":"builtin-bundle.c","path":"builtin-bundle.c","contentType":"file"},{"name":"builtin-cat-file.c","path":"builtin-cat-file.c","contentType":"file"},{"name":"builtin-check-attr.c","path":"builtin-check-attr.c","contentType":"file"},{"name":"builtin-check-ref-format.c","path":"builtin-check-ref-format.c","contentType":"file"},{"name":"builtin-checkout-index.c","path":"builtin-checkout-index.c","contentType":"file"},{"name":"builtin-commit-tree.c","path":"builtin-commit-tree.c","contentType":"file"},{"name":"builtin-config.c","path":"builtin-config.c","contentType":"file"},{"name":"builtin-count-objects.c","path":"builtin-count-objects.c","contentType":"file"},{"name":"builtin-describe.c","path":"builtin-describe.c","contentType":"file"},{"name":"builtin-diff-files.c","path":"builtin-diff-files.c","contentType":"file"},{"name":"builtin-diff-index.c","path":"builtin-diff-index.c","contentType":"file"},{"name":"builtin-diff-tree.c","path":"builtin-diff-tree.c","contentType":"file"},{"name":"builtin-diff.c","path":"builtin-diff.c","contentType":"file"},{"name":"builtin-fetch--tool.c","path":"builtin-fetch--tool.c","contentType":"file"},{"name":"builtin-fmt-merge-msg.c","path":"builtin-fmt-merge-msg.c","contentType":"file"},{"name":"builtin-for-each-ref.c","path":"builtin-for-each-ref.c","contentType":"file"},{"name":"builtin-fsck.c","path":"builtin-fsck.c","contentType":"file"},{"name":"builtin-gc.c","path":"builtin-gc.c","contentType":"file"},{"name":"builtin-grep.c","path":"builtin-grep.c","contentType":"file"},{"name":"builtin-init-db.c","path":"builtin-init-db.c","contentType":"file"},{"name":"builtin-log.c","path":"builtin-log.c","contentType":"file"},{"name":"builtin-ls-files.c","path":"builtin-ls-files.c","contentType":"file"},{"name":"builtin-ls-tree.c","path":"builtin-ls-tree.c","contentType":"file"},{"name":"builtin-mailinfo.c","path":"builtin-mailinfo.c","contentType":"file"},{"name":"builtin-mailsplit.c","path":"builtin-mailsplit.c","contentType":"file"},{"name":"builtin-merge-base.c","path":"builtin-merge-base.c","contentType":"file"},{"name":"builtin-merge-file.c","path":"builtin-merge-file.c","contentType":"file"},{"name":"builtin-mv.c","path":"builtin-mv.c","contentType":"file"},{"name":"builtin-name-rev.c","path":"builtin-name-rev.c","contentType":"file"},{"name":"builtin-pack-objects.c","path":"builtin-pack-objects.c","contentType":"file"},{"name":"builtin-pack-refs.c","path":"builtin-pack-refs.c","contentType":"file"},{"name":"builtin-prune-packed.c","path":"builtin-prune-packed.c","contentType":"file"},{"name":"builtin-prune.c","path":"builtin-prune.c","contentType":"file"},{"name":"builtin-push.c","path":"builtin-push.c","contentType":"file"},{"name":"builtin-read-tree.c","path":"builtin-read-tree.c","contentType":"file"},{"name":"builtin-reflog.c","path":"builtin-reflog.c","contentType":"file"},{"name":"builtin-rerere.c","path":"builtin-rerere.c","contentType":"file"},{"name":"builtin-rev-list.c","path":"builtin-rev-list.c","contentType":"file"},{"name":"builtin-rev-parse.c","path":"builtin-rev-parse.c","contentType":"file"},{"name":"builtin-revert.c","path":"builtin-revert.c","contentType":"file"},{"name":"builtin-rm.c","path":"builtin-rm.c","contentType":"file"},{"name":"builtin-runstatus.c","path":"builtin-runstatus.c","contentType":"file"},{"name":"builtin-shortlog.c","path":"builtin-shortlog.c","contentType":"file"},{"name":"builtin-show-branch.c","path":"builtin-show-branch.c","contentType":"file"},{"name":"builtin-show-ref.c","path":"builtin-show-ref.c","contentType":"file"},{"name":"builtin-stripspace.c","path":"builtin-stripspace.c","contentType":"file"},{"name":"builtin-symbolic-ref.c","path":"builtin-symbolic-ref.c","contentType":"file"},{"name":"builtin-tag.c","path":"builtin-tag.c","contentType":"file"},{"name":"builtin-tar-tree.c","path":"builtin-tar-tree.c","contentType":"file"},{"name":"builtin-unpack-objects.c","path":"builtin-unpack-objects.c","contentType":"file"},{"name":"builtin-update-index.c","path":"builtin-update-index.c","contentType":"file"},{"name":"builtin-update-ref.c","path":"builtin-update-ref.c","contentType":"file"},{"name":"builtin-upload-archive.c","path":"builtin-upload-archive.c","contentType":"file"},{"name":"builtin-verify-pack.c","path":"builtin-verify-pack.c","contentType":"file"},{"name":"builtin-verify-tag.c","path":"builtin-verify-tag.c","contentType":"file"},{"name":"builtin-write-tree.c","path":"builtin-write-tree.c","contentType":"file"},{"name":"builtin.h","path":"builtin.h","contentType":"file"},{"name":"cache-tree.c","path":"cache-tree.c","contentType":"file"},{"name":"cache-tree.h","path":"cache-tree.h","contentType":"file"},{"name":"cache.h","path":"cache.h","contentType":"file"},{"name":"check-builtins.sh","path":"check-builtins.sh","contentType":"file"},{"name":"check-racy.c","path":"check-racy.c","contentType":"file"},{"name":"color.c","path":"color.c","contentType":"file"},{"name":"color.h","path":"color.h","contentType":"file"},{"name":"combine-diff.c","path":"combine-diff.c","contentType":"file"},{"name":"commit.c","path":"commit.c","contentType":"file"},{"name":"commit.h","path":"commit.h","contentType":"file"},{"name":"config.c","path":"config.c","contentType":"file"},{"name":"config.mak.in","path":"config.mak.in","contentType":"file"},{"name":"configure.ac","path":"configure.ac","contentType":"file"},{"name":"connect.c","path":"connect.c","contentType":"file"},{"name":"convert-objects.c","path":"convert-objects.c","contentType":"file"},{"name":"convert.c","path":"convert.c","contentType":"file"},{"name":"copy.c","path":"copy.c","contentType":"file"},{"name":"csum-file.c","path":"csum-file.c","contentType":"file"},{"name":"csum-file.h","path":"csum-file.h","contentType":"file"},{"name":"ctype.c","path":"ctype.c","contentType":"file"},{"name":"daemon.c","path":"daemon.c","contentType":"file"},{"name":"date.c","path":"date.c","contentType":"file"},{"name":"decorate.c","path":"decorate.c","contentType":"file"},{"name":"decorate.h","path":"decorate.h","contentType":"file"},{"name":"delta.h","path":"delta.h","contentType":"file"},{"name":"diff-delta.c","path":"diff-delta.c","contentType":"file"},{"name":"diff-lib.c","path":"diff-lib.c","contentType":"file"},{"name":"diff.c","path":"diff.c","contentType":"file"},{"name":"diff.h","path":"diff.h","contentType":"file"},{"name":"diffcore-break.c","path":"diffcore-break.c","contentType":"file"},{"name":"diffcore-delta.c","path":"diffcore-delta.c","contentType":"file"},{"name":"diffcore-order.c","path":"diffcore-order.c","contentType":"file"},{"name":"diffcore-pickaxe.c","path":"diffcore-pickaxe.c","contentType":"file"},{"name":"diffcore-rename.c","path":"diffcore-rename.c","contentType":"file"},{"name":"diffcore.h","path":"diffcore.h","contentType":"file"},{"name":"dir.c","path":"dir.c","contentType":"file"},{"name":"dir.h","path":"dir.h","contentType":"file"},{"name":"dump-cache-tree.c","path":"dump-cache-tree.c","contentType":"file"},{"name":"entry.c","path":"entry.c","contentType":"file"},{"name":"environment.c","path":"environment.c","contentType":"file"},{"name":"exec_cmd.c","path":"exec_cmd.c","contentType":"file"},{"name":"exec_cmd.h","path":"exec_cmd.h","contentType":"file"},{"name":"fast-import.c","path":"fast-import.c","contentType":"file"},{"name":"fetch-pack.c","path":"fetch-pack.c","contentType":"file"},{"name":"fetch.c","path":"fetch.c","contentType":"file"},{"name":"fetch.h","path":"fetch.h","contentType":"file"},{"name":"fixup-builtins","path":"fixup-builtins","contentType":"file"},{"name":"generate-cmdlist.sh","path":"generate-cmdlist.sh","contentType":"file"},{"name":"git-add--interactive.perl","path":"git-add--interactive.perl","contentType":"file"},{"name":"git-am.sh","path":"git-am.sh","contentType":"file"},{"name":"git-archimport.perl","path":"git-archimport.perl","contentType":"file"},{"name":"git-bisect.sh","path":"git-bisect.sh","contentType":"file"},{"name":"git-checkout.sh","path":"git-checkout.sh","contentType":"file"},{"name":"git-clean.sh","path":"git-clean.sh","contentType":"file"},{"name":"git-clone.sh","path":"git-clone.sh","contentType":"file"},{"name":"git-commit.sh","path":"git-commit.sh","contentType":"file"},{"name":"git-compat-util.h","path":"git-compat-util.h","contentType":"file"},{"name":"git-cvsexportcommit.perl","path":"git-cvsexportcommit.perl","contentType":"file"},{"name":"git-cvsimport.perl","path":"git-cvsimport.perl","contentType":"file"},{"name":"git-cvsserver.perl","path":"git-cvsserver.perl","contentType":"file"},{"name":"git-fetch.sh","path":"git-fetch.sh","contentType":"file"},{"name":"git-filter-branch.sh","path":"git-filter-branch.sh","contentType":"file"},{"name":"git-instaweb.sh","path":"git-instaweb.sh","contentType":"file"},{"name":"git-lost-found.sh","path":"git-lost-found.sh","contentType":"file"},{"name":"git-ls-remote.sh","path":"git-ls-remote.sh","contentType":"file"},{"name":"git-merge-octopus.sh","path":"git-merge-octopus.sh","contentType":"file"},{"name":"git-merge-one-file.sh","path":"git-merge-one-file.sh","contentType":"file"},{"name":"git-merge-ours.sh","path":"git-merge-ours.sh","contentType":"file"},{"name":"git-merge-resolve.sh","path":"git-merge-resolve.sh","contentType":"file"},{"name":"git-merge-stupid.sh","path":"git-merge-stupid.sh","contentType":"file"},{"name":"git-merge.sh","path":"git-merge.sh","contentType":"file"},{"name":"git-mergetool.sh","path":"git-mergetool.sh","contentType":"file"},{"name":"git-parse-remote.sh","path":"git-parse-remote.sh","contentType":"file"},{"name":"git-pull.sh","path":"git-pull.sh","contentType":"file"},{"name":"git-quiltimport.sh","path":"git-quiltimport.sh","contentType":"file"},{"name":"git-rebase--interactive.sh","path":"git-rebase--interactive.sh","contentType":"file"},{"name":"git-rebase.sh","path":"git-rebase.sh","contentType":"file"},{"name":"git-relink.perl","path":"git-relink.perl","contentType":"file"},{"name":"git-remote.perl","path":"git-remote.perl","contentType":"file"},{"name":"git-repack.sh","path":"git-repack.sh","contentType":"file"},{"name":"git-request-pull.sh","path":"git-request-pull.sh","contentType":"file"},{"name":"git-reset.sh","path":"git-reset.sh","contentType":"file"},{"name":"git-send-email.perl","path":"git-send-email.perl","contentType":"file"},{"name":"git-sh-setup.sh","path":"git-sh-setup.sh","contentType":"file"},{"name":"git-stash.sh","path":"git-stash.sh","contentType":"file"},{"name":"git-submodule.sh","path":"git-submodule.sh","contentType":"file"},{"name":"git-svn.perl","path":"git-svn.perl","contentType":"file"},{"name":"git-svnimport.perl","path":"git-svnimport.perl","contentType":"file"},{"name":"git.c","path":"git.c","contentType":"file"},{"name":"git.spec.in","path":"git.spec.in","contentType":"file"},{"name":"gitk","path":"gitk","contentType":"file"},{"name":"grep.c","path":"grep.c","contentType":"file"},{"name":"grep.h","path":"grep.h","contentType":"file"},{"name":"hash-object.c","path":"hash-object.c","contentType":"file"},{"name":"help.c","path":"help.c","contentType":"file"},{"name":"http-fetch.c","path":"http-fetch.c","contentType":"file"},{"name":"http-push.c","path":"http-push.c","contentType":"file"},{"name":"http.c","path":"http.c","contentType":"file"},{"name":"http.h","path":"http.h","contentType":"file"},{"name":"ident.c","path":"ident.c","contentType":"file"},{"name":"imap-send.c","path":"imap-send.c","contentType":"file"},{"name":"index-pack.c","path":"index-pack.c","contentType":"file"},{"name":"interpolate.c","path":"interpolate.c","contentType":"file"},{"name":"interpolate.h","path":"interpolate.h","contentType":"file"},{"name":"list-objects.c","path":"list-objects.c","contentType":"file"},{"name":"list-objects.h","path":"list-objects.h","contentType":"file"},{"name":"local-fetch.c","path":"local-fetch.c","contentType":"file"},{"name":"lockfile.c","path":"lockfile.c","contentType":"file"},{"name":"log-tree.c","path":"log-tree.c","contentType":"file"},{"name":"log-tree.h","path":"log-tree.h","contentType":"file"},{"name":"mailmap.c","path":"mailmap.c","contentType":"file"},{"name":"mailmap.h","path":"mailmap.h","contentType":"file"},{"name":"match-trees.c","path":"match-trees.c","contentType":"file"},{"name":"merge-file.c","path":"merge-file.c","contentType":"file"},{"name":"merge-index.c","path":"merge-index.c","contentType":"file"},{"name":"merge-recursive.c","path":"merge-recursive.c","contentType":"file"},{"name":"merge-tree.c","path":"merge-tree.c","contentType":"file"},{"name":"mktag.c","path":"mktag.c","contentType":"file"},{"name":"mktree.c","path":"mktree.c","contentType":"file"},{"name":"object-refs.c","path":"object-refs.c","contentType":"file"},{"name":"object.c","path":"object.c","contentType":"file"},{"name":"object.h","path":"object.h","contentType":"file"},{"name":"pack-check.c","path":"pack-check.c","contentType":"file"},{"name":"pack-redundant.c","path":"pack-redundant.c","contentType":"file"},{"name":"pack-write.c","path":"pack-write.c","contentType":"file"},{"name":"pack.h","path":"pack.h","contentType":"file"},{"name":"pager.c","path":"pager.c","contentType":"file"},{"name":"patch-delta.c","path":"patch-delta.c","contentType":"file"},{"name":"patch-id.c","path":"patch-id.c","contentType":"file"},{"name":"patch-ids.c","path":"patch-ids.c","contentType":"file"},{"name":"patch-ids.h","path":"patch-ids.h","contentType":"file"},{"name":"path-list.c","path":"path-list.c","contentType":"file"},{"name":"path-list.h","path":"path-list.h","contentType":"file"},{"name":"path.c","path":"path.c","contentType":"file"},{"name":"peek-remote.c","path":"peek-remote.c","contentType":"file"},{"name":"pkt-line.c","path":"pkt-line.c","contentType":"file"},{"name":"pkt-line.h","path":"pkt-line.h","contentType":"file"},{"name":"progress.c","path":"progress.c","contentType":"file"},{"name":"progress.h","path":"progress.h","contentType":"file"},{"name":"quote.c","path":"quote.c","contentType":"file"},{"name":"quote.h","path":"quote.h","contentType":"file"},{"name":"reachable.c","path":"reachable.c","contentType":"file"},{"name":"reachable.h","path":"reachable.h","contentType":"file"},{"name":"read-cache.c","path":"read-cache.c","contentType":"file"},{"name":"receive-pack.c","path":"receive-pack.c","contentType":"file"},{"name":"reflog-walk.c","path":"reflog-walk.c","contentType":"file"},{"name":"reflog-walk.h","path":"reflog-walk.h","contentType":"file"},{"name":"refs.c","path":"refs.c","contentType":"file"},{"name":"refs.h","path":"refs.h","contentType":"file"},{"name":"remote.c","path":"remote.c","contentType":"file"},{"name":"remote.h","path":"remote.h","contentType":"file"},{"name":"revision.c","path":"revision.c","contentType":"file"},{"name":"revision.h","path":"revision.h","contentType":"file"},{"name":"rsh.c","path":"rsh.c","contentType":"file"},{"name":"rsh.h","path":"rsh.h","contentType":"file"},{"name":"run-command.c","path":"run-command.c","contentType":"file"},{"name":"run-command.h","path":"run-command.h","contentType":"file"},{"name":"send-pack.c","path":"send-pack.c","contentType":"file"},{"name":"server-info.c","path":"server-info.c","contentType":"file"},{"name":"setup.c","path":"setup.c","contentType":"file"},{"name":"sha1_file.c","path":"sha1_file.c","contentType":"file"},{"name":"sha1_name.c","path":"sha1_name.c","contentType":"file"},{"name":"shallow.c","path":"shallow.c","contentType":"file"},{"name":"shell.c","path":"shell.c","contentType":"file"},{"name":"show-index.c","path":"show-index.c","contentType":"file"},{"name":"sideband.c","path":"sideband.c","contentType":"file"},{"name":"sideband.h","path":"sideband.h","contentType":"file"},{"name":"ssh-fetch.c","path":"ssh-fetch.c","contentType":"file"},{"name":"ssh-pull.c","path":"ssh-pull.c","contentType":"file"},{"name":"ssh-push.c","path":"ssh-push.c","contentType":"file"},{"name":"ssh-upload.c","path":"ssh-upload.c","contentType":"file"},{"name":"strbuf.c","path":"strbuf.c","contentType":"file"},{"name":"strbuf.h","path":"strbuf.h","contentType":"file"},{"name":"symlinks.c","path":"symlinks.c","contentType":"file"},{"name":"tag.c","path":"tag.c","contentType":"file"},{"name":"tag.h","path":"tag.h","contentType":"file"},{"name":"tar.h","path":"tar.h","contentType":"file"},{"name":"test-absolute-path.c","path":"test-absolute-path.c","contentType":"file"},{"name":"test-chmtime.c","path":"test-chmtime.c","contentType":"file"},{"name":"test-date.c","path":"test-date.c","contentType":"file"},{"name":"test-delta.c","path":"test-delta.c","contentType":"file"},{"name":"test-genrandom.c","path":"test-genrandom.c","contentType":"file"},{"name":"test-match-trees.c","path":"test-match-trees.c","contentType":"file"},{"name":"test-sha1.c","path":"test-sha1.c","contentType":"file"},{"name":"test-sha1.sh","path":"test-sha1.sh","contentType":"file"},{"name":"trace.c","path":"trace.c","contentType":"file"},{"name":"tree-diff.c","path":"tree-diff.c","contentType":"file"},{"name":"tree-walk.c","path":"tree-walk.c","contentType":"file"},{"name":"tree-walk.h","path":"tree-walk.h","contentType":"file"},{"name":"tree.c","path":"tree.c","contentType":"file"},{"name":"tree.h","path":"tree.h","contentType":"file"},{"name":"unpack-file.c","path":"unpack-file.c","contentType":"file"},{"name":"unpack-trees.c","path":"unpack-trees.c","contentType":"file"},{"name":"unpack-trees.h","path":"unpack-trees.h","contentType":"file"},{"name":"update-server-info.c","path":"update-server-info.c","contentType":"file"},{"name":"upload-pack.c","path":"upload-pack.c","contentType":"file"},{"name":"usage.c","path":"usage.c","contentType":"file"},{"name":"utf8.c","path":"utf8.c","contentType":"file"},{"name":"utf8.h","path":"utf8.h","contentType":"file"},{"name":"var.c","path":"var.c","contentType":"file"},{"name":"write_or_die.c","path":"write_or_die.c","contentType":"file"},{"name":"wt-status.c","path":"wt-status.c","contentType":"file"},{"name":"wt-status.h","path":"wt-status.h","contentType":"file"},{"name":"xdiff-interface.c","path":"xdiff-interface.c","contentType":"file"},{"name":"xdiff-interface.h","path":"xdiff-interface.h","contentType":"file"}],"totalCount":297}},"fileTreeProcessingTime":23.575390000000002,"foldersToFetch":[],"repo":{"id":36502,"defaultBranch":"master","name":"git","ownerLogin":"git","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2008-07-23T14:21:26.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/18133?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"v1.5.3.2","listCacheKey":"v0:1708707716.0","canEdit":false,"refType":"tag","currentOid":"806ea701ce3624aa6a89648b6ca5d858703398cb"},"path":"gitweb/INSTALL","currentUser":null,"blob":{"rawLines":["GIT web Interface (gitweb) Installation","=======================================","","First you have to generate gitweb.cgi from gitweb.perl using","\"make gitweb/gitweb.cgi\", then copy appropriate files (gitweb.cgi,","gitweb.css, git-logo.png and git-favicon.png) to their destination.","For example if git was (or is) installed with /usr prefix, you can do","","\t$ make prefix=/usr gitweb/gitweb.cgi ;# as yourself","\t# cp gitweb/git* /var/www/cgi-bin/ ;# as root","","Alternatively you can use autoconf generated ./configure script to","set up path to git binaries (via config.mak.autogen), so you can write","instead","","\t$ make configure ;# as yourself","\t$ ./configure --prefix=/usr ;# as yourself","\t$ make gitweb/gitweb.cgi ;# as yourself","\t# cp gitweb/git* /var/www/cgi-bin/ ;# as root","","The above example assumes that your web server is configured to run","[executable] files in /var/www/cgi-bin/ as server scripts (as CGI","scripts).","","","Build time configuration","------------------------","","See also \"How to configure gitweb for your local system\" in README","file for gitweb (in gitweb/README).","","- There are many configuration variables which affects building of"," gitweb.cgi; see \"default configuration for gitweb\" section in main"," (top dir) Makefile, and instructions for building gitweb/gitweb.cgi"," target.",""," One of most important is where to find git wrapper binary. Gitweb"," tries to find git wrapper at $(bindir)/git, so you have to set $bindir"," when building gitweb.cgi, or $prefix from which $bindir is derived. If"," you build and install gitweb together with the rest of git suite,"," there should be no problems. Otherwise, if git was for example"," installed from a binary package, you have to set $prefix (or $bindir)"," accordingly.","","- Another important issue is where are git repositories you want to make"," available to gitweb. By default gitweb search for repositories under"," /pub/git; if you want to have projects somewhere else, like /home/git,"," use GITWEB_PROJECTROOT build configuration variable.",""," By default all git repositories under projectroot are visible and"," available to gitweb. List of projects is generated by default by"," scanning the projectroot directory for git repositories. This can be"," changed (configured) as described in \"Gitweb repositories\" section"," below.",""," Note that gitweb deals directly with object database, and does not"," need working directory; the name of the project is the name of its"," repository object database, usually projectname.git for bare"," repositories. If you want to provide gitweb access to non-bare (live)"," repository, you can make projectname.git symbolic link under"," projectroot linking to projectname/.git (but it is just"," a suggestion).","","- You can control where gitweb tries to find its main CSS style file,"," its favicon and logo with GITWEB_CSS, GITWEB_FAVICON and GITWEB_LOGO"," build configuration variables. By default gitweb tries to find them"," in the same directory as gitweb.cgi script.","","Build example","~~~~~~~~~~~~~","","- To install gitweb to /var/www/cgi-bin/gitweb/ when git wrapper"," is installed at /usr/local/bin/git and the repositories (projects)"," we want to display are under /home/local/scm, you can do","","\tmake GITWEB_PROJECTROOT=\"/home/local/scm\" \\","\t GITWEB_CSS=\"/gitweb/gitweb.css\" \\","\t GITWEB_LOGO=\"/gitweb/git-logo.png\" \\","\t GITWEB_FAVICON=\"/gitweb/git-favicon.png\" \\","\t bindir=/usr/local/bin \\","\t gitweb/gitweb.cgi","","\tcp -fv ~/git/gitweb/gitweb.{cgi,css} \\","\t ~/git/gitweb/git-{favicon,logo}.png \\","\t /var/www/cgi-bin/gitweb/","","","Gitweb config file","------------------","","See also \"Runtime gitweb configuration\" section in README file","for gitweb (in gitweb/README).","","- You can configure gitweb further using gitweb configuration file;"," by default it is file named gitweb_config.perl in the same place as"," gitweb.cgi script. You can control default place for config file"," using GITWEB_CONFIG build configuration variable, and you can set it"," using GITWEB_CONFIG environmental variable.","","- Gitweb config file is [fragment] of perl code. You can set variables"," using \"our $variable = value\"; text from \"#\" character until the end"," of a line is ignored. See perlsyn(1) for details.",""," See the top of gitweb.perl file for examples of customizable options.","","Config file example","~~~~~~~~~~~~~~~~~~~","","To enable blame, pickaxe search, and snapshot support, while allowing","individual projects to turn them off, put the following in your","GITWEB_CONFIG file:","","\t$feature{'blame'}{'default'} = [1];","\t$feature{'blame'}{'override'} = 1;","","\t$feature{'pickaxe'}{'default'} = [1];","\t$feature{'pickaxe'}{'override'} = 1;","","\t$feature{'snapshot'}{'default'} = ['x-gzip', 'gz', 'gzip'];","\t$feature{'snapshot'}{'override'} = 1;","","","Gitweb repositories","-------------------","","- By default all git repositories under projectroot are visible and"," available to gitweb. List of projects is generated by default by"," scanning the projectroot directory for git repositories (for object"," databases to be more exact).",""," You can provide pre-generated list of [visible] repositories,"," together with information about their owners (the project ownership"," is taken from owner of repository directory otherwise), by setting"," GITWEB_LIST build configuration variable (or $projects_list variable"," in gitweb config file) to point to a plain file.",""," Each line of projects list file should consist of url-encoded path"," to project repository database (relative to projectroot) separated"," by space from url-encoded project owner; spaces in both project path"," and project owner have to be encoded as either '%20' or '+'.",""," You can generate projects list index file using project_index action"," (the 'TXT' link on projects list page) directly from gitweb.","","- By default even if project is not visible on projects list page, you"," can view it nevertheless by hand-crafting gitweb URL. You can set"," GITWEB_STRICT_EXPORT build configuration variable (or $strict_export"," variable in gitweb config file) to only allow viewing of"," repositories also shown on the overview page.","","- Alternatively, you can configure gitweb to only list and allow"," viewing of the explicitly exported repositories, via"," GITWEB_EXPORT_OK build configuration variable (or $export_ok"," variable in gitweb config file). If it evaluates to true, gitweb"," show repository only if this file exists in its object database"," (if directory has the magic file $export_ok).","","Generating projects list using gitweb","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~","","We assume that GITWEB_CONFIG has its default Makefile value, namely","gitweb_config.perl. Put the following in gitweb_make_index.perl file:","","\t$GITWEB_CONFIG = \"gitweb_config.perl\";","\tdo $GITWEB_CONFIG if -e $GITWEB_CONFIG;","","\t$projects_list = $projectroot;","","Then create the following script to get list of project in the format","suitable for GITWEB_LIST build configuration variable (or","$projects_list variable in gitweb config):","","\t#!/bin/sh","","\texport GITWEB_CONFIG=\"gitweb_make_index.perl\"","\texport GATEWAY_INTERFACE=\"CGI/1.1\"","\texport HTTP_ACCEPT=\"*/*\"","\texport REQUEST_METHOD=\"GET\"","\texport QUERY_STRING=\"a=project_index\"","","\tperl -- /var/www/cgi-bin/gitweb.cgi","","","Requirements","------------",""," - Core git tools"," - Perl"," - Perl modules: CGI, Encode, Fcntl, File::Find, File::Basename."," - web server","","","Example web server configuration","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~","","See also \"Webserver configuration\" section in README file for gitweb","(in gitweb/README).","","","- Apache2, gitweb installed as CGI script,"," under /var/www/cgi-bin/","","\tScriptAlias /cgi-bin/ \"/var/www/cgi-bin/\"","","\t","\t Options Indexes FollowSymlinks ExecCGI","\t AllowOverride None","\t Order allow,deny","\t Allow from all","\t","","- Apache2, gitweb installed as mod_perl legacy script,"," under /var/www/perl/","","\tAlias /perl \"/var/www/perl\"","","\t","\t SetHandler perl-script","\t PerlResponseHandler ModPerl::Registry","\t PerlOptions +ParseHeaders","\t Options Indexes FollowSymlinks +ExecCGI","\t AllowOverride None","\t Order allow,deny","\t Allow from all","\t"],"stylingDirectives":[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/git/git/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"INSTALL","displayUrl":"https://github.com/git/git/blob/v1.5.3.2/gitweb/INSTALL?raw=true","headerInfo":{"blobSize":"7.9 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"6328e26","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fgit%2Fgit%2Fblob%2Fv1.5.3.2%2Fgitweb%2FINSTALL","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"225","truncatedSloc":"167"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Text","languageID":372,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/git/git/blob/v1.5.3.2/gitweb/INSTALL","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/git/git/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/git/git/raw/v1.5.3.2/gitweb/INSTALL","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":true,"symbols":[]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/git/git/branches":{"post":"N00WECwdoGp98JwGwc96nv1_wi3aTmeiI41j_AiIz9eeJ7KdHwjhERNq2i1tWwI-EBdr3pvMUKPOowW_pwDPoQ"},"/repos/preferences":{"post":"BazxJy29bb6QY6JzsCPQ0I2u6pRuIJjHGh3pC4Dv9V4iDhemtJ73jQXFMaOC2IJGCHu9zk0aas8cntEdDICROQ"}}},"title":"git/gitweb/INSTALL at v1.5.3.2 ยท git/git"}