]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - gitconfig.in
gitconfig: enable diff.mnemonicprefix
[config/dotfiles.git] / gitconfig.in
index 53dd50c671636edfca307d1dfddf87a65250c307..00045f4951e2c0a9620e908643a1de0c51c07085 100644 (file)
@@ -97,6 +97,8 @@
        re  = rebase
        rei = rebase --interactive
        rec = rebase --continue
+       ## Submodules.
+       sm  = submodule
        ## Remote.
        f   = fetch
        t   = tag
        # Diff algorithm to use.
        algorithm = histogram
 
+       # Replace "a/" and "b/" prefix in diffs with characters describing the
+       # context (e.g. "i/"ndex and "w/"ork tree).
+       mnemonicprefix = true
+
        # Change the definition of a word as used by diff --color-words to be
        # shorter (not only spaces) and thus simplify the generated diffs.
        # Words ([a-zA-Z0-9_]+) are matched, or a single non-word character