X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/7e2c05e92fcc878bd17c49575bede378db3c45a3..c537b3bfacb5ca65cc6c3c2b7919c1b3190bb3a0:/gitconfig diff --git a/gitconfig b/gitconfig index 7ef9adf..1f002ca 100644 --- a/gitconfig +++ b/gitconfig @@ -1,10 +1,14 @@ +### -*-conf-*- +### Git configuration + [core] filemode = true + excludesfile = @gitignore@ [user] name = Mark Wooding email = mdw@distorted.org.uk - signingkey = 0x838424481371BE1B22ECB4C545510A46481334C2 + signingkey = @releasekey@ [merge] summary = true @@ -23,12 +27,13 @@ diff = auto status = auto branch = auto + interactive = auto [color "diff"] plain = normal meta = bold - new = bold green - old = bold red + new = green + old = red commit = bold yellow whitespace = reverse red @@ -47,14 +52,31 @@ egrep = "grep -E" patch = "format-patch -o p -s" release = !"sh -e -c ' \ - ver=${1?version}; \ - shift; \ - git tag -as "$@" -m \"Release $ver.\" \"$ver\"' release" + [ $# -gt 0 ] || { \ + echo >&2 \"usage: git release TAG [OPTS]\"; \ + exit 1; \ + }; \ + git tag -as -m \"Release $1.\" \"$@\"' release" + amend = !"env EDITOR=true VISUAL=true git commit --amend -a" + spaces = !"sh -e -c 'git ls-files -z \"$@\"| \ + xargs -0r space -cv' spaces" mailto = "send-email \ --quiet \ --no-chain-reply-to \ --no-signed-off-by-cc \ --to" + files = "ls-files --exclude-standard" + unstg = !"sh -e -c ' \ + : ${GIT_DIR=$(git rev-parse --git-dir)}; \ + if [ $# -eq 0 ]; then set -- \"$(stg branch)\"; fi; \ + for branch; do \ + rmdir \"$GIT_DIR/patches/$branch/patches\"; \ + rm -rf \"$GIT_DIR/patches/$branch\"; \ + git for-each-ref -s \ + --format \"git update-ref -d %(refname) %(objectname)\" \ + \"refs/patches/$branch\" \"refs/bases/$branch\" | \ + sh -e; \ + done' unstg" [stgit] autoresolved = yes @@ -64,6 +86,10 @@ git = git@vger.kernel.org mdw = mdw@distorted.org.uk +[sendemail] + chainreplyto = no + signedoffcc = yes + [gui] - fontui = -family helvetica -size 11 -weight normal -slant roman -underline 0 -overstrike 0 - fontdiff = -family fixed -size 10 -weight normal -slant roman -underline 0 -overstrike 0 + fontui = -family Sans -size 10 + fontdiff = -family MiscFixed6x13 -size 10