From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 124D1139083 for ; Wed, 20 Dec 2017 11:24:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71176E10F3; Wed, 20 Dec 2017 11:24:02 +0000 (UTC) Received: from mailsec110.isp.belgacom.be (mailsec110.isp.belgacom.be [195.238.20.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCE72E10B6 for ; Wed, 20 Dec 2017 11:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1513769041; x=1545305041; h=date:from:reply-to:subject:to:cc:references:in-reply-to: message-id:mime-version:content-transfer-encoding; bh=HGeVkn+PFdYNeX0Rw/OjJSj7aUKe8oc27J+craq1bK8=; b=uvGl8/vpifWV+TLejHzBPK/V+SYhbVr5p2gcBZO5abu1u0Ngq7I2xoMy V4UGrJE+4ltNM6vLWeOXDlwdzWQ4eg==; IronPort-PHdr: =?us-ascii?q?9a23=3Amip/qBSfFfsCiE671bjFrjeb3dpsv+yvbD5Q0YIu?= =?us-ascii?q?jvd0So/mwa69bBSN2/xhgRfzUJnB7Loc0qyK6/mmATRIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+?= =?us-ascii?q?KPjrFY7OlcS30P2594HObwlSizexfa5+IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf?= =?us-ascii?q?5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddO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Anti-Spam-Result: =?us-ascii?q?A2D9AQDFRzpa/1sHtVtbGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYM+gVqELYsVkB00AZkFCoU7AoURQxUBAQEBAQEBAQEBaiiCOCK?= =?us-ascii?q?CSgEFIzMjEAgBAhgCAiYCAjkeikiHCZ1sgieEc4V6AQEBAQYCJoEPgnCIfYUeT?= =?us-ascii?q?IJKgmMFo0SpJZZ7gTs1I4FPTCAYgWp8hFdAix0BAQE?= X-IPAS-Result: =?us-ascii?q?A2D9AQDFRzpa/1sHtVtbGQEBAQEBAQEBAQEBAQcBAQEBAYM?= =?us-ascii?q?+gVqELYsVkB00AZkFCoU7AoURQxUBAQEBAQEBAQEBaiiCOCKCSgEFIzMjEAgBA?= =?us-ascii?q?hgCAiYCAjkeikiHCZ1sgieEc4V6AQEBAQYCJoEPgnCIfYUeTIJKgmMFo0SpJZZ?= =?us-ascii?q?7gTs1I4FPTCAYgWp8hFdAix0BAQE?= Received: from 91.7-181-91.adsl-dyn.isp.belgacom.be (HELO numa-be) ([91.181.7.91]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 20 Dec 2017 12:23:39 +0100 Date: Wed, 20 Dec 2017 12:23:33 +0100 From: Helmut Jarausch Subject: Re: [gentoo-user] Status of a GIT repository To: gentoo-user@lists.gentoo.org Cc: "Vadim A. Misbakh-Soloviov" References: <7N7Q7DRG.BZCESPFR.N4MLWRSU@WK4ZHLCI.6LFP4NRM.CPJAW2UE> <5406309.XnSAvE3F1Y@note> In-Reply-To: <5406309.XnSAvE3F1Y@note> (from gentoo@mva.name on Wed Dec 20 11:28:31 2017) X-Mailer: Balsa 2.5.3a-272-ge7382b30 Message-Id: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 5342ec8d-e9c6-4f26-ad10-4fae813a331d X-Archives-Hash: 2bfdd347d72b0704483567c76a091d1b On 12/20/2017 11:28:31 AM, Vadim A. Misbakh-Soloviov wrote: > =D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 =D1=81=D1=80=D0= =B5=D0=B4=D0=B0, 20 =D0=B4=D0=B5=D0=BA=D0=B0=D0=B1=D1=80=D1=8F 2017 =D0=B3.= 17:04:33 +07 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5= =D0=BB=D1=8C Helmut > Jarausch =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > Hi, > > I have no experience with GIT. > > > > I'd like to determine if a GIT repository in Gentoo is up-to-date. > > Normally, a GIT folder has a '.git' subfolder. Using 'git status' in > > such a GIT folder works fine. > > > > But the subfolders in /usr/portage/distfiles/git3-src don't contain =20 > a > > '.git' subfolder. > > A plain 'git status' in such a subfolder doesn't work - I get =20 > "fatal: > > This operation must be run in a work tree". > > > > Is there a means to determine the status of a Gentoo-GIT-folder? > > > > Background: I'd like to check if anything has changed in the GIT > > repository before I run an 'emerge -u' for that. > > > > Many thanks for a hint, > > Helmut >=20 > 1) there is no "Gentoo-GIT-folder". The things in $DISTDIR/git3-src =20 > is called > "bare" repositories (i.e. it is that ".git" folder itself, without =20 > "unpacked" > work tree, like you have in $PORTDIR) > 2) Although, all the ways to check it would be too hard for your =20 > purpose. > 3) but there is nice tool for your purpose: it's called =20 > `app-portage/smart- > live-rebuild`. > So, just emerge it, and then just run `emerge @smart-live-rebuild` (it > provides special virtual set) periodically. It will perform all the =20 > checks for > you. Many thanks! This looks like it saves me a lot of work ( I was willing =20 to write a Python script myself). Helmut =