From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?David_K=C3=A5gedal?= Subject: Re: [StGit RFC] Make "stg branch -l" faster by getting all git config information in one call Date: Thu, 13 Dec 2007 15:15:26 +0100 Message-ID: <87odcur88x.fsf@lysator.liu.se> References: <20071213133653.13925.89254.stgit@krank> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org To: Catalin Marinas X-From: git-owner@vger.kernel.org Thu Dec 13 15:17:01 2007 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1J2orb-00048o-5Y for gcvg-git-2@gmane.org; Thu, 13 Dec 2007 15:16:35 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753253AbXLMOQL convert rfc822-to-quoted-printable (ORCPT ); Thu, 13 Dec 2007 09:16:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753105AbXLMOQL (ORCPT ); Thu, 13 Dec 2007 09:16:11 -0500 Received: from mail.lysator.liu.se ([130.236.254.3]:43982 "EHLO mail.lysator.liu.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbXLMOQK convert rfc822-to-8bit (ORCPT ); Thu, 13 Dec 2007 09:16:10 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 639D2200A22C; Thu, 13 Dec 2007 15:16:09 +0100 (CET) Received: from mail.lysator.liu.se ([127.0.0.1]) by localhost (lenin.lysator.liu.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14849-01-54; Thu, 13 Dec 2007 15:16:08 +0100 (CET) Received: from krank (c83-253-242-75.bredband.comhem.se [83.253.242.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTP id DD918200A29D; Thu, 13 Dec 2007 15:15:09 +0100 (CET) Received: by krank (Postfix, from userid 1000) id D99A67B4077; Thu, 13 Dec 2007 15:15:26 +0100 (CET) In-Reply-To: (Catalin Marinas's message of "Thu\, 13 Dec 2007 14\:04\:26 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at lysator.liu.se Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: "Catalin Marinas" writes: > On 13/12/2007, David K=C3=A5gedal wrote: >> I have a fair amount of branches, and I noticed that "stg branch -l" >> takes ridiculously long to finish. > > I have the same problem. > >> Maybe someone can help me find a quicker replacement for the >> get_protected call? > > We can have the standard --list command which ignores the protected > flag or even the stgit.formatversion. Just a simple listing of the > branches (that's what I need most of the time). To get the > description, the 's' and 'p' flags, we could use --list-full or > something similar and wait a bit longer. This would also improve the > bash completion of commands taking branch names as arguments. If you remove everything but the branch name, you will have identical output to "git branch", but much slower. Then there is no reason to use it. The reason I used "stg branch -l" was that I found it interesting to know which branches I had initialized with stgit, and I could see uses for the description as well. --=20 David K=C3=A5gedal