From patchwork Tue Oct 23 15:13:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 10653259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BF4CA14DE for ; Tue, 23 Oct 2018 15:15:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7C6729B7E for ; Tue, 23 Oct 2018 15:15:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C01329B8E; Tue, 23 Oct 2018 15:15:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C7A3729B7E for ; Tue, 23 Oct 2018 15:15:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 074A46E0E4; Tue, 23 Oct 2018 15:15:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 893A26E110 for ; Tue, 23 Oct 2018 15:15:00 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id 143-v6so2173971wmf.1 for ; Tue, 23 Oct 2018 08:15:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tna/cZwz0HubjvIGJ7reINw9Piu584yVi1FzTwu8DKE=; b=d2Qn0/p04ey3xP6biLqULTdkNeXbF9hI5MBqMZekctXX37iiYSxdVQEjsgJol7Q7bN Ww32PO+0FWa1ot+XgGcThkU3h4EgEhL6IGCR0dv/N6fpoaWY3pgy1Bs0E/bhvwoDcmZS TeDUMB5OWe/xWfBsdcwURurQSfHl/A5HyMw69h0B3tTIes/ifX3/Z142vx31+Pu1u40X H2XdEk6m9I//GTJ9Z3PMqheR4iBN7MfTmushKJYJiVhL9vbQITMq7pMZoPKslhD4dXN4 yij78f+DU5IVgvtjQ+Gvo5vpVx8Umc59Ckko9lW3cX1uU15COcKtNWQR522dmmnEhg1D hbsA== X-Gm-Message-State: ABuFfohx9Ctu8LNw2/tnFh73pgHVayFp03xdKlJ2tLRxZpsKu3ub2rp5 P2rbrWjhcnraV+lEfM6lhdR5810V X-Google-Smtp-Source: ACcGV62/rdC4bZmYIPjLwASK97ueLc294OyXVwX5Esstf8Y1Y9zoEFrsXSUhu+kWeFVJKDrZKsee0A== X-Received: by 2002:a1c:a55:: with SMTP id 82-v6mr21706419wmk.54.1540307698888; Tue, 23 Oct 2018 08:14:58 -0700 (PDT) Received: from arch-x1c3.cbg.collabora.co.uk ([2a00:5f00:102:0:9665:9cff:feee:aa4d]) by smtp.gmail.com with ESMTPSA id l140-v6sm2823247wmb.24.2018.10.23.08.14.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 08:14:57 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH] dim: don't opencode fetch_all in dim_update_branches Date: Tue, 23 Oct 2018 16:13:57 +0100 Message-Id: <20181023151357.9980-1-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emil.l.velikov@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Emil Velikov Simply make use of the function, instead of duplicating it. Signed-off-by: Emil Velikov --- dim | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dim b/dim index 8be504e46995..21e1e0d6ed45 100755 --- a/dim +++ b/dim @@ -2026,12 +2026,7 @@ function dim_update_branches cd $DIM_PREFIX/$DIM_REPO - for repo in "${!drm_tip_repos[@]}"; do - remote=$(repo_to_remote $repo) - echo -n "Fetching $repo (local remote $remote)... " - git_fetch_helper $remote - echo "Done." - done + fetch_all assert_repo_clean