-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
55 lines (44 loc) · 1.72 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[user]
name = Sital Kedia
email = skedia@quantcast.com
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = /home/fsareshwala/prefix/etc/git/exclude
pager = less
editor = vim
[color]
diff = auto
branch = auto
status = auto
interactive = auto
ui = true
pager = true
[alias]
graph = log --graph --pretty=format:'%C(yellow)%h%Creset - %Cgreen(%cr) %C(bold blue)<%an>%Creset %s %Cred%d%Creset' --abbrev-commit --date=relative --no-merges
ls = ls-files
serve = daemon --reuseaddr --verbose --base-path=. --export-all ./.git
update = "!f() { git submodule foreach git checkout master ; git submodule foreach git ff; }; f"
ff = pull --ff-only --stat
# show only the differences between another branch that I have added
wc = "!f() { git diff `git merge-base HEAD $1`; }; f"
wcs = "!f() { git diff --stat `git merge-base HEAD $1`; }; f"
wcg = "!f() { SHA=`git merge-base HEAD $1`; git graph $SHA..HEAD; }; f"
gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"
make-puppet-module = !sh -c 'git checkout master && git checkout -b "modules/$0" && git rm -rf * && git update-ref -d `git rev-parse --symbolic-full-name HEAD` && mkdir -p manifests && touch manifests/init.pp && git add manifests/init.pp && git commit -m \"initial commit - branch modules/$0\" && git push origin modules/$0'
[reviewboard]
url = http://reviews.sfoffice.qc/
[diff]
tool = vimdiff
algorithm = patience
[difftool]
prompt = false
[merge]
tool = vimdiff
[tig]
author-width = 25
line-graphics = yes
tab-size = 4
[help]
autocorrect = 1
[rerere]
enabled = 1