X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.gitconfig;h=77d72174644af0173e6720d85f84c27bcc1ec1b4;hb=f7555918c8180c281c91caec2cb5f7990e1719bb;hp=53923dd1aaa37cede40df408ac735ba83ef586e0;hpb=d42b596aa3da002c10f6eb6274cb11e429f139ca;p=home.git diff --git a/.gitconfig b/.gitconfig index 53923dd..77d7217 100644 --- a/.gitconfig +++ b/.gitconfig @@ -2,12 +2,16 @@ name = Mike Frysinger email = vapier@gentoo.org # signingkey = 0xE837F581 + [core] abbrev = 12 + pager = less -FRMX --tabs 4 -#10 + [color] ui = auto diff = auto status = auto + [color "diff"] old = red bold new = green bold @@ -15,32 +19,59 @@ frag = yellow bold whitespace = normal green meta = magenta + [diff] renames = true + +# Settings used by Chromium's `git cl`. The defaults are brain-dead. +[gerrit] + skip-ensure-authenticated = true + squash-uploads = false + +[pager] + diff = diff-highlight | less + log = diff-highlight | less + show = diff-highlight | less + +[protocol] + # https://opensource.googleblog.com/2018/05/introducing-git-protocol-version-2.html + version = 2 + +[pull] + ff = only + [push] default = current + [alias] a = add - ab = abandon + am-a = am --abort + am-c = am --continue ar = archive b = branch -v bi = bisect cfg = config ci = commit + cia = commit -a + ciaf = commit -a --fixup + ciam = commit --amend + ciaam = commit --amend -a + cif = commit --fixup co = checkout cp = cherry-pick --ff cp-a = cherry-pick --abort cp-c = cherry-pick --continue cp-x = cherry-pick -x d = diff + dc = diff --cached desc = describe - dl = download f = fetch fp = format-patch -C -M g = grep h = help l = log - m = merge + lf = log --format= --name-only + m = merge --log=100 --no-stat rb = rebase rb-d = rebase --committer-date-is-author-date rb-a = rebase --abort @@ -52,24 +83,36 @@ sm = submodule st = status t = tag - up = upload + [tag] sort = version:refname + [merge] conflictstyle = diff3 + [rebase] autosquash = true + [http] cookiefile = ~/.gitcookies + [transfer] # https://groups.google.com/forum/m/#!topic/binary-transparency/f-BI4o8HZW0 fsckobjects = true + +[init] + defaultBranch = main + [merge "merge-changelog"] name = GNU-style ChangeLog merge driver driver = /usr/bin/git-merge-changelog %O %A %B + [sendemail] chainreplyto = false confirm = always suppressfrom = true suppresscc = author smtpserver = localhost:1111 + transferEncoding = 8bit +# composeencoding = utf-8 + assume8bitEncoding = 8bit