Browse Source

Rename git-universe to gittum

Alois Mahdal 10 years ago
parent
commit
a83226d4af

+ 1
- 1
.gitignore View File

@@ -1,5 +1,5 @@
1 1
 *~
2 2
 .*.swp
3 3
 .netrwhist
4
-*/git-universe/private/*
4
+*/gittum/private/*
5 5
 */vim/bundle/private/*

+ 1
- 1
TODO.md View File

@@ -6,4 +6,4 @@ TODO
6 6
 
7 7
 *   Do something about parens' highlighting (tin torte.vim)
8 8
 
9
-*   Add documentation for git-universe, particulatly message aliases
9
+*   Add documentation for gittum, particulatly message aliases

+ 1
- 1
dotfiles/bash/global-before.bashrc View File

@@ -54,7 +54,7 @@ export GREP_OPTIONS="--color --binary-files=without-match"
54 54
 # make green git bash trinket even cooler
55 55
 export GIT_PS1_SHOWDIRTYSTATE=true
56 56
 export GIT_PS1_SHOWUNTRACKEDFILES=true
57
-export GIT_DISABLED_COMMANDS="$HOME/.git-universe/disabled-commands"
57
+export GIT_DISABLED_COMMANDS="$HOME/.gittum/disabled-commands"
58 58
 
59 59
 # disable mounting things like SFTP to ~/.gvfs when accessed
60 60
 # via GIO (used by nautilus etc.)

+ 0
- 6
dotfiles/git-universe/bin/findcat View File

@@ -1,6 +0,0 @@
1
-#!/bin/sh
2
-
3
-NAME=$1
4
-cat .git_$NAME 2>/dev/null \
5
-    || cat .git/universe/$NAME 2>/dev/null \
6
-    || cat ~/.git-universe/default/$NAME 2>/dev/null

+ 0
- 24
dotfiles/git-universe/bin/setup View File

@@ -1,24 +0,0 @@
1
-#!/bin/bash
2
-
3
-git_binary=`which git`
4
-
5
-if [[ -x $HOME/bin/git ]]; then
6
-    git_binary=$HOME/bin/git
7
-fi
8
-
9
-gitver=`$git_binary --version | cut -d ' ' -f 3`
10
-if [[ "$gitver" > "1.8" ]]; then
11
-    tilde='~'
12
-else
13
-    tilde=$HOME
14
-fi
15
-
16
-host=`hostname -s`
17
-user=`whoami`
18
-
19
-printf "[include]\n" >> ~/.gitconfig
20
-printf "    path = $tilde/.git-universe/before.gitconfig\n" >> ~/.gitconfig
21
-printf "    path = $tilde/.git-universe/host/$host.gitconfig\n" >> ~/.gitconfig
22
-printf "    path = $tilde/.git-universe/user/$user.gitconfig\n" >> ~/.gitconfig
23
-printf "    path = $tilde/.git-universe/private/gitconfig\n" >> ~/.gitconfig
24
-printf "    path = $tilde/.git-universe/after.gitconfig\n" >> ~/.gitconfig

dotfiles/git-universe/before.gitconfig → dotfiles/gittum/before.gitconfig View File

@@ -8,9 +8,9 @@
8 8
   cm = commit
9 9
   cma = commit --amend
10 10
   cmt = !sh -c \
11
-        'git commit --edit --message=\"$(~/.git-universe/bin/findcat msg_typo)\"'
11
+        'git commit --edit --message=\"$(~/.gittum/bin/findcat msg_typo)\"'
12 12
   cmw = !sh -c \
13
-        'git commit --edit --message=\"$(~/.git-universe/bin/findcat msg_wip)\"'
13
+        'git commit --edit --message=\"$(~/.gittum/bin/findcat msg_wip)\"'
14 14
   co = checkout
15 15
   com = checkout master
16 16
   cp = cherry-pick
@@ -27,6 +27,6 @@
27 27
   rb = rebase
28 28
   rbi = rebase --interactive
29 29
   rmv = remote --verbose
30
-  sibling = ! ~/.git-universe/bin/sibling
30
+  sibling = ! ~/.gittum/bin/sibling
31 31
   st = status
32 32
   sh = show

+ 6
- 0
dotfiles/gittum/bin/findcat View File

@@ -0,0 +1,6 @@
1
+#!/bin/sh
2
+
3
+NAME=$1
4
+cat .git_$NAME 2>/dev/null \
5
+    || cat .git/gittum/$NAME 2>/dev/null \
6
+    || cat ~/.gittum/default/$NAME 2>/dev/null

+ 24
- 0
dotfiles/gittum/bin/setup View File

@@ -0,0 +1,24 @@
1
+#!/bin/bash
2
+
3
+git_binary=`which git`
4
+
5
+if [[ -x $HOME/bin/git ]]; then
6
+    git_binary=$HOME/bin/git
7
+fi
8
+
9
+gitver=`$git_binary --version | cut -d ' ' -f 3`
10
+if [[ "$gitver" > "1.8" ]]; then
11
+    tilde='~'
12
+else
13
+    tilde=$HOME
14
+fi
15
+
16
+host=`hostname -s`
17
+user=`whoami`
18
+
19
+printf "[include]\n" >> ~/.gitconfig
20
+printf "    path = $tilde/.gittum/before.gitconfig\n" >> ~/.gitconfig
21
+printf "    path = $tilde/.gittum/host/$host.gitconfig\n" >> ~/.gitconfig
22
+printf "    path = $tilde/.gittum/user/$user.gitconfig\n" >> ~/.gitconfig
23
+printf "    path = $tilde/.gittum/private/gitconfig\n" >> ~/.gitconfig
24
+    printf "    path = $tilde/.gittum/after.gitconfig\n" >> ~/.gitconfig

dotfiles/git-universe/bin/sibling → dotfiles/gittum/bin/sibling View File

@@ -13,7 +13,7 @@
13 13
 # The script simply takes the first subdir.  In case this is not
14 14
 # OK for you (e.g. the dir id likely to be empty or contain
15 15
 # come "non-compliant" repos, you can specify path to the
16
-# other "template" repo in .git-universe-sibling file.
16
+# other "template" repo in .gittum-sibling file.
17 17
 #
18 18
 # Hint: regarding the "template" repo, you can easily create
19 19
 # a "fake" repo that would sit elsewhere, e.g.:
@@ -27,7 +27,7 @@
27 27
 #
28 28
 
29 29
 origin_name="origin"
30
-sibling_conf=".git-universe-sibling"
30
+sibling_conf=".gittum-sibling"
31 31
 
32 32
 
33 33
 ## funz

dotfiles/git-universe/default/msg_typo → dotfiles/gittum/default/msg_typo View File


dotfiles/git-universe/default/msg_wip → dotfiles/gittum/default/msg_wip View File


dotfiles/git-universe/disabled-commands → dotfiles/gittum/disabled-commands View File


dotfiles/git-universe/host/azzgoat.gitconfig → dotfiles/gittum/host/azzgoat.gitconfig View File


dotfiles/git-universe/host/hugo.gitconfig → dotfiles/gittum/host/hugo.gitconfig View File


dotfiles/git-universe/user/aloism.gitconfig → dotfiles/gittum/user/aloism.gitconfig View File


dotfiles/git-universe/user/lennycz.gitconfig → dotfiles/gittum/user/lennycz.gitconfig View File