[Libreoffice-commits] .: g

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sat Jun 4 13:42:56 PDT 2011


 g |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit b64c431daaf163d58a12ac7e1d8c301c23769aeb
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Jun 4 15:42:42 2011 -0500

    we don't need the repos_changed semaphore file anymore
    
    ./g was doing 2 pair of git show-ref --head HEAD
    to figure out if something had change... notwidthstanding that it is a
    complete waste for the case of ./g clone, the only reason this was
    done was to touch a ./clone/repos_changed file that used to be
    used back in the 'build repo' days (pre 3.4)
    
    binned that.

diff --git a/g b/g
index bf92754..bf6d887 100755
--- a/g
+++ b/g
@@ -232,9 +232,6 @@ for REPO in $DIRS ; do
                     ;;
             esac
 
-            # check for changes
-            HEADREF=$(git show-ref --head HEAD)
-
             # do it!
             if [ "$COMMAND" != "clone" -o ! -d $DIR ] ; then
                 if [ "$REPORT_REPOS" = "1" -a "$COMMAND" != "grep" ] ; then
@@ -254,10 +251,6 @@ for REPO in $DIRS ; do
                 update_hooks "$HOOKDIR"
             fi
 
-            # update stamp if the repo changed
-            NEWHEADREF=$(git show-ref --head HEAD)
-            [ "$HEADREF" != "$NEWHEADREF" ] && touch $CLONEDIR/repos_changed
-
             case "$COMMAND" in
                 pull|clone)
                     # update links


More information about the Libreoffice-commits mailing list