Commits

Randy Stauner committed 5ddc098

Add git pulls alias to update submodules when present

  • Participants
  • Parent commits 07cd757

Comments (0)

Files changed (1)

scripts/git_config.sh

 gc="git config --global"
 
 # [settings]
+# TODO: figure out $gc core.autocrlf        input
+
 $gc color.ui             auto
 
 # make tabs whitespace errors
 
 $gc alias.prune-all       $'!git remote | xargs -n 1 git remote prune'
 
+$gc alias.pulls           $'!git pull; test -f ${GIT_DIR:-.}/.gitmodules && git submodule update'
+
 # pum doesn't seem to be storing the fetch, so do both
 $gc alias.pum             $'!git fetch upstream; git pull upstream master'