2022-02-16 00:53:01 -05:00
|
|
|
[core]
|
|
|
|
autocrlf = input
|
2022-02-17 22:33:27 -05:00
|
|
|
whitespace = -tab-in-indent,tabwidth=4,indent-with-non-tab,trailing-space,space-before-tab
|
2022-02-16 00:53:01 -05:00
|
|
|
safecrlf
|
2022-02-17 22:33:27 -05:00
|
|
|
[apply]
|
|
|
|
whitespace = fix
|
|
|
|
ignoreWhitespace = no
|
2022-02-16 00:53:01 -05:00
|
|
|
[alias]
|
2022-02-17 22:33:27 -05:00
|
|
|
lg = log --max-count=6 --oneline --pretty='format:%C(auto)%h %d %Creset%p %C("#60A0FF")%cr %Cgreen %cn %G? %GT trust%Creset%n%s%n'
|
|
|
|
graph = log --max-count=18 --graph --pretty=format:'%C(auto)%h %s %Cgreen(%cr) %C(bold blue)%cn %G?%Creset' --abbrev-commit
|
2022-02-16 00:53:01 -05:00
|
|
|
alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ / | grep -v ^'alias ' | sort
|
|
|
|
fixws = !"\
|
2022-02-18 15:59:12 -05:00
|
|
|
if (! git diff-files --quiet .) && \
|
|
|
|
(! git diff-index --quiet --cached HEAD) ; then \
|
|
|
|
git commit -m FIXWS_SAVE_INDEX && \
|
|
|
|
git add -u :/ && \
|
|
|
|
git commit -m Fix_whitespace && \
|
|
|
|
git rebase --whitespace=fix HEAD~2 && \
|
|
|
|
git reset HEAD~ && \
|
|
|
|
git reset --soft HEAD~ ; \
|
|
|
|
elif (! git diff-files --quiet .) ; then \
|
|
|
|
git add -u :/ && \
|
|
|
|
git commit -m Fix_whitespace && \
|
|
|
|
git rebase --whitespace=fix HEAD~ && \
|
|
|
|
git reset HEAD~ ; \
|
|
|
|
elif (! git diff-index --quiet --cached HEAD) ; then \
|
|
|
|
git commit -m FIXWS_SAVE_INDEX && \
|
|
|
|
git rebase --whitespace=fix HEAD~ && \
|
|
|
|
git reset --soft HEAD~ ; \
|
|
|
|
fi"
|
|
|
|
check-whitespace = !"git diff --check $(git hash-object -t tree /dev/null) HEAD"
|
2022-02-16 00:53:01 -05:00
|
|
|
[commit]
|
|
|
|
gpgSign = true
|