]> njoseph.me Git - goutils.git/commitdiff
Add shell alias equivalent of git-pull-all
authorJoseph Nuthalapati <njoseph@thoughtworks.com>
Wed, 30 Dec 2020 06:26:03 +0000 (11:56 +0530)
committerJoseph Nuthalapati <njoseph@thoughtworks.com>
Wed, 30 Dec 2020 06:26:03 +0000 (11:56 +0530)
utils/git_pull_all.go

index f2bd685231c630e9b6f5e9ffc30b12d0119e4d86..c38a655dbfd247fdeb296fcfdb8e5bda59cfc690 100644 (file)
@@ -8,6 +8,9 @@ import (
        "sync"
 )
 
        "sync"
 )
 
+// Equivalent to the following shell alias
+// alias git-pull-all="ls -d */ | xargs -P12 -I{} git -C {} pull"
+
 func GitPullAll() {
        currentDirectory, err := os.Getwd()
        if err != nil {
 func GitPullAll() {
        currentDirectory, err := os.Getwd()
        if err != nil {