X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/435cc8fef85299175abdc7734e8d2c81dd766bf3..e623f04118295c92c75eacaed5c50ce72fd108b6:/dot/gitconfig.in diff --git a/dot/gitconfig.in b/dot/gitconfig.in index 4ace82d..9a55627 100644 --- a/dot/gitconfig.in +++ b/dot/gitconfig.in @@ -46,9 +46,11 @@ [format] headers = "Organization: Straylight/Edgeware\n" + from = Mark Wooding <@email@> coverletter = auto thread = shallow signature = "[mdw]" + outputdirectory = p/ [color] ui = auto @@ -78,17 +80,24 @@ local = normal remote = cyan -[color "grep"] - external = --color=always +[column] + ui = auto column dense [pager] - log = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less - show = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less - diff = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less + log = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager + show = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager + diff = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager [alias] + do = "!sh -e -c ' \ + quiet=; \ + case $#,$1 in 0, | *,*,*) ;; *,-q) quiet=--quiet; shift ;; esac; \ + case $quiet in ?*) ;; *) echo \"Entering toplevel\" ;; esac; \ + (name=\"\"; path=.; toplevel=$(pwd); \ + sha1=$(git rev-parse HEAD); \ + set +e; case $# in 1) eval \"$1\" ;; *) \"$@\" ;; esac); \ + exec git submodule $quiet foreach --recursive \"$@\"' do" egrep = "grep -E" - patches = "format-patch --full-index" graph = "log --pretty=oneline --abbrev-commit --graph" release = !"sh -e -c ' \ [ $# -gt 0 ] || { \ @@ -96,6 +105,18 @@ exit 1; \ }; \ git tag -as -m \"Release $1.\" \"$@\"' release" + catchup = !"perl -e ' \ + use autodie qw(:all); \ + if (@ARGV < 2) { \ + print STDERR \"git catchup REMOTE REF ...\n\"; \ + exit 2; \ + } \ + @c = (); $m = shift @ARGV; \ + for my $r (@ARGV) { \ + my ($p, $r) = $r =~ /^([+]*)(.*)$/; \ + push @c, \"$p$m/$r:$r\"; \ + } \ + exec \"git\", \"push\", \".\", @c'" amend = !"env EDITOR=true VISUAL=true git commit --amend -a" spaces = !"sh -e -c 'git ls-files -z \"$@\"| \ xargs -0r space -cv' spaces" @@ -129,9 +150,13 @@ aliasesfile = @profile@/dot/mailrc aliasfiletype = mailrc chainreplyto = no + thread = no signedoffbycc = yes suppresscc = self +[mailinfo] + scissors = true + [gui] fontui = -family Sans -size 10 fontdiff = -family Fixed -size 13