From da8396f007818b647665510d92f1b1e0b8340015 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 14 May 2018 16:38:23 +0300 Subject: .gitconfig: add submodule-related settings This is cool: https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407 --- %HOME%/.gitconfig | 4 ++++ %HOME%/.local/bin/git-pulll | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100755 %HOME%/.local/bin/git-pulll (limited to '%HOME%') diff --git a/%HOME%/.gitconfig b/%HOME%/.gitconfig index 720cf1d..ae90746 100644 --- a/%HOME%/.gitconfig +++ b/%HOME%/.gitconfig @@ -38,3 +38,7 @@ process = git-lfs filter-process required = true clean = git-lfs clean -- %f +[diff] + submodule = log +[status] + submoduleSummary = true diff --git a/%HOME%/.local/bin/git-pulll b/%HOME%/.local/bin/git-pulll new file mode 100755 index 0000000..79299e5 --- /dev/null +++ b/%HOME%/.local/bin/git-pulll @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# This is cool: +# https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407 + +git pull "$@" \ + && git submodule sync --recursive \ + && git submodule update --init --recursive -- cgit v1.2.3