]> git.zndr.dk Git - dotfiles.git/commitdiff
git submodules support
authorJannik ZANDER <jannik@zndr.dk>
Sat, 1 Feb 2020 07:59:41 +0000 (08:59 +0100)
committerJannik ZANDER <jannik@zndr.dk>
Sat, 1 Feb 2020 07:59:41 +0000 (08:59 +0100)
.config/git/config

index 2854fb565f26d83600fcbbed916b11ebfe84371e..a868be16c84e3f8b2c1319ab165d3fb238f5dbfd 100644 (file)
        rebase = true\r
 [push]\r
        default = simple\r
+       recurseSubmodules = check
 [diff]\r
        tool = vimdiff\r
+       submodule = log
 [merge]\r
        tool = vimdiff\r
 [difftool "vimdiff"]\r
        gtags = "!sh -c '[ -f .git/hooks/gtags ] || git init; .git/hooks/gtags' git-gtags"\r
        cscope = "!sh -c '[ -f .git/hooks/cscope ] || git init; .git/hooks/cscope' git-cscope"\r
 \r
+       sdiff = !git diff && git submodule foreach 'git diff'
 [include]\r
        path = ~/.gitconfig.local\r
 [gc]
        writeCommitGraph = true
+[status]
+       submodulesummary = 1
+[submodule]
+       recurse = true