git add repo

This commit is contained in:
burakerturk
2015-07-16 00:43:28 +03:00
parent 7946a555cf
commit 723ef4239b
14 changed files with 573 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
(add-to-list 'vc-handled-backends 'GIT)
@@ -0,0 +1,5 @@
# Include the current git branch in the prompt
if type __git_ps1 >/dev/null 2>/dev/null; then
export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(__git_ps1 \" (%s)\")\]|")"
fi
@@ -0,0 +1,13 @@
Index: git-1.7.6.4/gitweb/Makefile
===================================================================
--- git-1.7.6.4.orig/gitweb/Makefile
+++ git-1.7.6.4/gitweb/Makefile
@@ -56,7 +56,7 @@ PERL_PATH ?= /usr/bin/perl
# Shell quote;
bindir_SQ = $(subst ','\'',$(bindir))#'
gitwebdir_SQ = $(subst ','\'',$(gitwebdir))#'
-gitwebstaticdir_SQ = $(subst ','\'',$(gitwebdir)/static)#'
+gitwebstaticdir_SQ = $(subst ','\'',$(gitwebdir)/gitweb)#'
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))#'
PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))#'
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))#'
@@ -0,0 +1,11 @@
--- git-1.5.0.6/gitweb/gitweb.perl~ 2007-03-30 01:37:05.000000000 +0100
+++ git-1.5.0.6/gitweb/gitweb.perl 2007-05-07 08:31:37.000000000 +0100
@@ -39,7 +39,7 @@ our $projectroot = "++GITWEB_PROJECTROOT
our $home_link = $my_uri || "/";
# string of the home link on top of all pages
-our $home_link_str = "++GITWEB_HOME_LINK_STR++";
+our $home_link_str = $ENV{'SERVER_NAME'} ? "git://" . $ENV{'SERVER_NAME'} : "projects";
# name of your site or organization to appear in page titles
# replace this with something more descriptive for clearer bookmarks
@@ -0,0 +1,26 @@
From 09891c65a5f7409ce0bd37daced0ff31fbb1b1c9 Mon Sep 17 00:00:00 2001
From: Todd Zullinger <tmz@pobox.com>
Date: Mon, 23 Mar 2009 00:03:36 -0400
Subject: [PATCH] git-cvsimport: Ignore cvsps-2.2b1 Branches: output
Signed-off-by: Todd Zullinger <tmz@pobox.com>
---
git-cvsimport.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index e439202..d020f1a 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -952,7 +952,7 @@ while (<CVS>) {
} elsif (/^-+$/) { # end of unknown-line processing
$state = 1;
} elsif ($state != 11) { # ignore stuff when skipping
- print STDERR "* UNKNOWN LINE * $_\n";
+ print STDERR "* UNKNOWN LINE * $_\n" unless /^Branches: /;
}
}
commit() if $branch and $state != 11;
--
1.6.2.2
@@ -0,0 +1,8 @@
# Meaningful options are:
# --syslog --- Enables syslog logging
# --verbose --- Enables verbose logging
# --export-all --- Exports all repositories even if they don't contain git-daemon-export-ok file
# --port=XXXX --- Starts in port XXXX instead of 9418
# --base-path=/path --- Remap all the path requests as relative to the given path
#
GITDAEMON_OPTS=""
+8
View File
@@ -0,0 +1,8 @@
Alias /git /var/www/localhost/cgi-bin
<Directory /var/www/localhost/cgi-bin>
Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex gitweb.cgi
</Directory>
@@ -0,0 +1,17 @@
Index: git-1.6.3/gitk-git/gitk
===================================================================
--- git-1.6.3.orig/gitk-git/gitk
+++ git-1.6.3/gitk-git/gitk
@@ -10931,9 +10931,9 @@ if {[tk windowingsystem] eq "aqua"} {
set textfont {Monaco 9}
set uifont {{Lucida Grande} 9 bold}
} else {
- set mainfont {Helvetica 9}
- set textfont {Courier 9}
- set uifont {Helvetica 9 bold}
+ set mainfont {{DejaVu Sans} 9}
+ set textfont {{DejaVu Sans Mono} 9}
+ set uifont {{DejaVu Sans} 9 bold}
}
set tabstop 8
set findmergefiles 0
+3
View File
@@ -0,0 +1,3 @@
# Write project root here
PROJECT_ROOT="/usr/local/scm"
@@ -0,0 +1,19 @@
--- gitweb/gitweb.perl 2007-04-04 11:40:33.000000000 +0300
+++ gitweb/gitweb.perl 2007-04-08 21:30:31.000000000 +0300
@@ -32,8 +32,14 @@
our $GIT = "++GIT_BINDIR++/git";
# absolute fs-path which will be prepended to the project path
-#our $projectroot = "/pub/scm";
-our $projectroot = "++GITWEB_PROJECTROOT++";
+our $projectroot = "/usr/local/scm";
+open(CONF, '/etc/conf.d/gitweb');
+
+while (<CONF>) {
+ do { $projectroot = $1; last } if /^PROJECT_ROOT="([^"]+)"/;
+}
+
+close(CONF);
# target of the home link on top of all pages
our $home_link = $my_uri || "/";