Explorar el Código

Rename git-universe to gittum

Alois Mahdal hace 10 años
padre
commit
a83226d4af

+ 1
- 1
.gitignore Ver fichero

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

+ 1
- 1
TODO.md Ver fichero

6
 
6
 
7
 *   Do something about parens' highlighting (tin torte.vim)
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 Ver fichero

54
 # make green git bash trinket even cooler
54
 # make green git bash trinket even cooler
55
 export GIT_PS1_SHOWDIRTYSTATE=true
55
 export GIT_PS1_SHOWDIRTYSTATE=true
56
 export GIT_PS1_SHOWUNTRACKEDFILES=true
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
 # disable mounting things like SFTP to ~/.gvfs when accessed
59
 # disable mounting things like SFTP to ~/.gvfs when accessed
60
 # via GIO (used by nautilus etc.)
60
 # via GIO (used by nautilus etc.)

+ 0
- 6
dotfiles/git-universe/bin/findcat Ver fichero

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 Ver fichero

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 Ver fichero

8
   cm = commit
8
   cm = commit
9
   cma = commit --amend
9
   cma = commit --amend
10
   cmt = !sh -c \
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
   cmw = !sh -c \
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
   co = checkout
14
   co = checkout
15
   com = checkout master
15
   com = checkout master
16
   cp = cherry-pick
16
   cp = cherry-pick
27
   rb = rebase
27
   rb = rebase
28
   rbi = rebase --interactive
28
   rbi = rebase --interactive
29
   rmv = remote --verbose
29
   rmv = remote --verbose
30
-  sibling = ! ~/.git-universe/bin/sibling
30
+  sibling = ! ~/.gittum/bin/sibling
31
   st = status
31
   st = status
32
   sh = show
32
   sh = show

+ 6
- 0
dotfiles/gittum/bin/findcat Ver fichero

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 Ver fichero

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 Ver fichero

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

dotfiles/git-universe/default/msg_typo → dotfiles/gittum/default/msg_typo Ver fichero


dotfiles/git-universe/default/msg_wip → dotfiles/gittum/default/msg_wip Ver fichero


dotfiles/git-universe/disabled-commands → dotfiles/gittum/disabled-commands Ver fichero


dotfiles/git-universe/host/azzgoat.gitconfig → dotfiles/gittum/host/azzgoat.gitconfig Ver fichero


dotfiles/git-universe/host/hugo.gitconfig → dotfiles/gittum/host/hugo.gitconfig Ver fichero


dotfiles/git-universe/user/aloism.gitconfig → dotfiles/gittum/user/aloism.gitconfig Ver fichero


dotfiles/git-universe/user/lennycz.gitconfig → dotfiles/gittum/user/lennycz.gitconfig Ver fichero