From patchwork Tue Mar 21 12:45:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9636545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A7EF7602CC for ; Tue, 21 Mar 2017 12:45:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98F8427C0B for ; Tue, 21 Mar 2017 12:45:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D9A228304; Tue, 21 Mar 2017 12:45:28 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 3CDDC27C0B for ; Tue, 21 Mar 2017 12:45:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 64E4589D86; Tue, 21 Mar 2017 12:45:27 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6477989D86 for ; Tue, 21 Mar 2017 12:45:26 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id u132so2703725wmg.1 for ; Tue, 21 Mar 2017 05:45:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id; bh=QBkcjZIqbO842CItICSB8kY9CCV3Ok0+cszHHh0PzA8=; b=AhAdBQXth1ni1MVubfyLeXGMA7iZ0zvDADHFP97fEYP+4e42PFDia1d2fpUdlUPfJ4 CcdirUXUEH7u6rxUZrGGYL62tM6RbhfQb9M3ebZ+6zWw+8c2erqZopxWYskzDv191QTc VJksLQAQYIz4tdo9ucuza+B2gCdaI3VNw/Gl4= 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; bh=QBkcjZIqbO842CItICSB8kY9CCV3Ok0+cszHHh0PzA8=; b=eRCgpKPfa2jSlmA1mDL+9uv35OD5oYI26tARaxL6VVHRozPpqrQxTmIqQyIdNKjs5P PmvK2CDwSOVnoEoDaDz62VlABgx/i6wxnJ8RaIRZIr/vew1SwXPKH3JTRKhlREh6OUAO xMC163ZQUHoXR4Z8omL7mJbr/4klb3Ht5rHC7n6h1DVB/znUvn8xa2TiwgeF1Ylylck4 ip3lRqHzudOwTWvMza8a2UyyFAKs1wqGrbkGVPb7ONfoYkei48AXVNimvQQpygVZLh2P N0SStf+nW/sjlJ28xRDsm3PCErhEwQbZxQk4HZI3VDww6L1D63M239BzG0W6n8Qo3vrB WfRA== X-Gm-Message-State: AFeK/H0q4W1cKpA9oQOtF9BbAebizO+Tw1S+/J0Bx6PYzl0hXRj6gADUhk1nsVU9pW6y9w== X-Received: by 10.28.90.66 with SMTP id o63mr1161888wmb.97.1490100324764; Tue, 21 Mar 2017 05:45:24 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56c9:0:decc:6e78:7e96:b452]) by smtp.gmail.com with ESMTPSA id y4sm17469865wmy.5.2017.03.21.05.45.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Mar 2017 05:45:24 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Tue, 21 Mar 2017 13:45:19 +0100 Message-Id: <20170321124519.13148-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.11.0 Cc: Daniel Vetter , Daniel Vetter Subject: [Intel-gfx] [PATCH] dim: really make the branch argument for dim retip optional X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Some didn't work, at least here. Signed-off-by: Daniel Vetter --- dim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dim b/dim index 821147510dc5..91e75299f56d 100755 --- a/dim +++ b/dim @@ -380,7 +380,13 @@ function dim_retip local branch upstream remote branch="$1" - shift + + if [ -n "$branch" ] ; then + shift + else + branch=$(git symbolic-ref --short HEAD) + fi + remote=$(url_to_remote $drm_tip_ssh) upstream=$(git_find_tip "$branch")