]> git.nbdom.net Git - nb.git/commitdiff
test
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 3 Sep 2016 17:57:54 +0000 (18:57 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 3 Sep 2016 17:57:54 +0000 (18:57 +0100)
etc/profile.d/nb.sh

index 35e2a3390451c4144fe1a98f4d41ea061d8b4624..840094f0263a6c209dae761032216bf98fb47513 100644 (file)
@@ -6,7 +6,9 @@ nb_repos_commit_push() {
     cd "$i" || continue
 
     printf ">%s\n" "$i"
-    git commit --all --no-status --quiet --message "$*" && git push | sed 's/^/ /'
+    git commit --all --no-status --quiet --message "$*" && git push \
+      | grep -vE '^(On branch master|Your branch is up-to-date|nothing to commit)' \
+      | sed 's/^/ /'
   done
   cd "$pwd"
 }