[ooo-build-commit] .: bin/g

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Mon Oct 4 01:16:12 PDT 2010


 bin/g |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 087939b87691c94bd5420ddacfca7892cda68fe8
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Oct 2 22:18:56 2010 -0500

    allow ./bin/g grep to operate on all repository even when no match is found on any given one
    
    ./bin/g stop after the first repository for which the grep condition
    was not verified. this is usually not the desired behavior

diff --git a/bin/g b/bin/g
index 4c3de66..f6ba1fa 100755
--- a/bin/g
+++ b/bin/g
@@ -167,6 +167,11 @@ for DIR in * ; do
                     # git status returns error in some versions, clear that
                     RETURN=0
                     ;;
+                grep)
+                    # git grep return an 'error' if nothing is found
+                   # still we should continue grepping the other repos
+                    RETURN=0
+                    ;;
             esac
 
             exit $RETURN


More information about the ooo-build-commit mailing list