Skip to content

Instantly share code, notes, and snippets.

@kikaigyo
Created April 15, 2012 04:21
Show Gist options
  • Save kikaigyo/2390001 to your computer and use it in GitHub Desktop.
Save kikaigyo/2390001 to your computer and use it in GitHub Desktop.
Macで使っているgitweb.conf
# Gitサーバーのパス。
$projectroot = "/Users/kikaigyo/git";
# tmpのパス。
$git_temp = "/tmp";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
# html text to include at home page
#$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
#$projects_list = $projectroot;
# スタイルシートのパス。
@stylesheets = ("gitweb/gitweb.css" , "gitweb/highlight.css");
# javascriptのパス。
$javascript = "gitweb/gitweb.js";
# gitwebに表示するロゴのパス。
$logo = "static/git-logo.png";
# ファビコンのパス。
$favicon = "static/git-favicon.png";
# git-diff-tree(1) options to use for generated patches
#@diff_opts = ("-M");
@diff_opts = ();
# ページに表示されるサイト名。
$home_link_str = "Git.local";
## Added by admin ##
# Enable PATH_INFO so the server can produce URLs of the
# form: http://git.cdwilson.us/project.git/xxx/xxx
# This allows for pretty URLs *within* the Git repository, where
# my Apache rewrite rules are not active.
$feature{'pathinfo'}{'default'} = [1];
# description(リポジトリの簡単な説明を表示する部分)の幅。
$projects_list_description_width = 20;
# highlightのパス。
$highlight_bin = "/usr/local/bin/highlight";
# ブラウザのタブに表示されるサイト名。
$site_name = "GitWeb >> local repos";
# アバターの表示を有効にする。
$feature{'avatar'}{'default'} = ['gravatar'];
# ハイライトを有効にする。
$feature{'highlight'}{'default'} = [1];
# リポジトリのダウンロードを有効にする。下はzip形式でダウンロード。
$feature{'snapshot'}{'default'} = ['zip'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment