about summary refs log tree commit diff
path: root/modules/shell
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-06-15 19:36:35 +0000
committerAlyssa Ross <hi@alyssa.is>2020-06-15 19:37:54 +0000
commit8813a2f46f474a2b04bdc126911bba5c0c707c0a (patch)
tree980db7678e29d9dde49276165ba7641689678f3b /modules/shell
parent1cfef846ab3584eb44721dc93d979d3dd5b5e869 (diff)
downloadnixlib-8813a2f46f474a2b04bdc126911bba5c0c707c0a.tar
nixlib-8813a2f46f474a2b04bdc126911bba5c0c707c0a.tar.gz
nixlib-8813a2f46f474a2b04bdc126911bba5c0c707c0a.tar.bz2
nixlib-8813a2f46f474a2b04bdc126911bba5c0c707c0a.tar.lz
nixlib-8813a2f46f474a2b04bdc126911bba5c0c707c0a.tar.xz
nixlib-8813a2f46f474a2b04bdc126911bba5c0c707c0a.tar.zst
nixlib-8813a2f46f474a2b04bdc126911bba5c0c707c0a.zip
modules/git: set some cool looking config options
I just read all the way through git-config(1).  These options looked
neat.  I haven't tried them yet.  Maybe I'll end up hating some of
them.  Who knows.
Diffstat (limited to 'modules/shell')
-rw-r--r--modules/shell/git/config.in21
1 files changed, 20 insertions, 1 deletions
diff --git a/modules/shell/git/config.in b/modules/shell/git/config.in
index d066f2f5cfbf..8113962e0c9e 100644
--- a/modules/shell/git/config.in
+++ b/modules/shell/git/config.in
@@ -1,6 +1,9 @@
 [alias]
     ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
     unbranch = "!git branch --sort -HEAD --merged | sed 1d | xargs git branch -d"
+[am]
+    messageid = true
+    threeWay = true
 [branch]
     autosetuprebase = always
 [color "branch"]
@@ -25,11 +28,17 @@
 [credential]
     helper = osxkeychain
 [diff]
+    algorithm = histogram
     compactionHeuristic = true
+    mnemonicPrefix = true
     renameLimit = 0
+    renames = copy
+    submodule = diff
     wsErrorHighlight = all
 [diff "mozlz4"]
     textconv = @mozlz4_textconv@
+[fetch]
+    parallel = 0
 [filter "lfs"]
     clean = git-lfs clean -- %f
     required = true
@@ -37,6 +46,7 @@
 [format]
     pretty = format:%Cred%h %C(magenta)%G? %Cgreen(%ar)%Creset -%C(bold red)%d%Creset %s %C(bold blue)<%aN>%Creset
 [grep]
+    fallbackToNoIndex = true
     lineNumber = true
     patternType = perl
 [help]
@@ -48,5 +58,14 @@
     tool = opendiff
 [push]
     default = upstream
+[rebase]
+    autoSquash = true
+    autoStash = true
+    rescheduleFailedExec = true
+    stat = true
 [sendemail]
-    confirm = always
\ No newline at end of file
+    confirm = always
+[stash]
+    showPatch = true
+[submodule]
+    fetchJobs = 0