changeset 124:20c49d51f7e3

Added `.gitconfig`.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 05 Mar 2013 12:48:38 -0800
parents 7832fcb79e03
children 2f5ac9cd3a5e
files git/gitconfig install.cmd install.sh uninstall.cmd uninstall.sh
diffstat 5 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/git/gitconfig	Tue Mar 05 12:48:38 2013 -0800
@@ -0,0 +1,3 @@
+[user]
+name = ludovicchabant
+email = ludovic@chabant.com
--- a/install.cmd	Tue Feb 19 17:44:57 2013 -0800
+++ b/install.cmd	Tue Mar 05 12:48:38 2013 -0800
@@ -27,3 +27,11 @@
 echo [extensions] >> "%userprofile%\mercurial.ini"
 echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini"
 echo onsub = %CWD:\=/%lib/hg/onsub/onsub.py >> "%userprofile%\mercurial.ini"
+
+:: Git Files
+if exist "%userprofile%\.gitconfig" (
+    set /P confirm=Will delete existing "%userprofile%\.gitconfig". OK with that? Press CTRL-C to abort.
+    del /Q "%userprofile%\.gitconfig"
+)
+copy "%CWD%git\gitconfig" "%userprofile%\.gitconfig"
+
--- a/install.sh	Tue Feb 19 17:44:57 2013 -0800
+++ b/install.sh	Tue Mar 05 12:48:38 2013 -0800
@@ -20,3 +20,8 @@
 echo [extensions] >> "$HOME/.hgrc"
 echo hggit = $CWD/lib/hg/hg-git/hggit/ >> "$HOME/.hgrc"
 echo onsub = $CWD/lib/hg/onsub/onsub.py >> "$HOME/.hgrc"
+
+# GIT
+# ---
+cp "$CWD/git/gitconfig" "$HOME/.gitconfig"
+
--- a/uninstall.cmd	Tue Feb 19 17:44:57 2013 -0800
+++ b/uninstall.cmd	Tue Mar 05 12:48:38 2013 -0800
@@ -6,3 +6,4 @@
 rmdir /Q /S  "%userprofile%\vimfiles"
 del          "%userprofile%\_vimrc"
 del          "%userprofile%\mercurial.ini"
+del          "%userprofile%\.gitconfig"
--- a/uninstall.sh	Tue Feb 19 17:44:57 2013 -0800
+++ b/uninstall.sh	Tue Mar 05 12:48:38 2013 -0800
@@ -5,3 +5,5 @@
 rm $HOME/.vim
 rm $HOME/.vimrc
 rm $HOME/.hgrc
+rm $HOME/.gitconfig
+