Last active
November 13, 2017 18:28
-
-
Save uburuntu/ee5685f4ca5c3644366145014c453261 to your computer and use it in GitHub Desktop.
Own .gitconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = uburuntu | |
email = [email protected] | |
[gui] | |
diffopts = -b | |
spellingdictionary = none | |
[merge] | |
tool = kdiff3 | |
[core] | |
editor = kate -n | |
[guitool "fetch"] | |
cmd = git fetch --all | |
[guitool "gn: gen"] | |
cmd = gn-gen.py out/debug --args='is_debug=true' && gn-gen.py out/release | |
[guitool "gn: update files list"] | |
cmd = ./update_gn.py | |
[guitool "rebase"] | |
cmd = git rebase | |
[guitool "rebase: abort"] | |
cmd = git rebase --abort | |
[guitool "rebase: continue"] | |
cmd = git rebase --continue | |
[guitool "rebase: interactive"] | |
cmd = git rebase -i | |
[guitool "cmds: patches / am: abort"] | |
cmd = git am --abort | |
[guitool "cmds: patches / am: continue"] | |
cmd = git am --continue | |
[guitool "cmds: patches / apply from shared"] | |
cmd = git am ~/virtualbox/shared/patches/*patch | |
[guitool "cmds: patches / apply from apply-patches"] | |
cmd = git am ~/apply-patches/*patch | |
[guitool "cmds: patches / make patches to apply-patches"] | |
cmd = git format-patch -$ARGS && mv ./*patch ~/apply-patches | |
argprompt = yes | |
[guitool "cmds: patches / make patches with arc"] | |
cmd = git format-patch -$ARGS && tar czf $(date +20%y%m%d_%H.%M.%S)_patches.tgz *patch --force-local && rm *patch && mv ./*patches.tgz ../patches/ | |
argprompt = yes | |
[guitool "cmds: patches / delete patches from repo"] | |
cmd = rm -f *patch | |
[guitool "cmds: utils / delete kdiff3 files"] | |
cmd = find ./ -type f -name \"*.BACKUP.*\" -delete && find ./ -type f -name \"*.BASE.*\" -delete && find ./ -type f -name \"*.LOCAL.*\" -delete && find ./ -type f -name \"*.REMOTE.*\" -delete | |
[guitool "cmds: utils / cppcheck changed files"] | |
cmd = cppcheck -j 20 --enable=warning,performance,portability,style --inconclusive --force --max-configs=30 $(git diff --name-only origin/$(git rev-parse --abbrev-ref HEAD)... | grep -E '*\\.(c|cpp|cc|cxx|inl)') | |
[guitool "update repo"] | |
cmd = git pull --rebase | |
[guitool "stash"] | |
cmd = git stash | |
[guitool "stash: apply"] | |
cmd = git stash pop | |
[guitool "stash: unapply"] | |
cmd = git stash show -p stash@{0} | git apply -R | |
[guitool "stash: new branch"] | |
cmd = git stash branch \"$ARGS\" | |
argprompt = yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment