From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonas Fonseca Subject: Re: [tig] Feeding specific revisions to tig Date: Mon, 27 Apr 2009 12:21:05 +0200 Message-ID: <2c6b72b30904270321t3d73e2c5o5e3ac8d4b627e5ab@mail.gmail.com> References: <20080604192916.GB17327@sigill.intra.peff.net> <20080604230858.GA27136@sigill.intra.peff.net> <2c6b72b30808060406u10d7b332g22ea28fe5470ddb1@mail.gmail.com> <20080808211916.GA30583@sigill.intra.peff.net> <2c6b72b30808100216j2c719bf2yb7dfba651db901e3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org To: Jean-Baptiste Quenot X-From: git-owner@vger.kernel.org Mon Apr 27 13:51:19 2009 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 1LyNxv-0000c1-Gk for gcvg-git-2@gmane.org; Mon, 27 Apr 2009 12:21:35 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753976AbZD0KVX (ORCPT ); Mon, 27 Apr 2009 06:21:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752297AbZD0KVX (ORCPT ); Mon, 27 Apr 2009 06:21:23 -0400 Received: from mail-fx0-f158.google.com ([209.85.220.158]:52280 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997AbZD0KVW (ORCPT ); Mon, 27 Apr 2009 06:21:22 -0400 Received: by fxm2 with SMTP id 2so2202037fxm.37 for ; Mon, 27 Apr 2009 03:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=KtCa4MqkAJNt6zA8uTRMPtDQ0NxP+XAYPG9J3EJsreI=; b=wuic9o3mUv2XLnRQHQLeEVH6gT4IyyTy8bFlV4tP5rNSs2RB7WJvUzJp59nJELnkiI 8cVODM8fxuRVIY+yaNJkhIyuT22hbxyNBnbKke8ojXA1DtgVoWvVtzm8o7yx2SdpsW6j r0X7h1SuCoux3T2FauIaElqMUJHYxZkwReaXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=YoeILbLrLNOojuKeQxCFjaDKgznvQoeHvIThTsNK2cO8OfuPRh8FW/wet4BcwAjsX3 DhAROyLOGSXXFP3Vf5mrmLF7F1fr1y+ZyzTapE2EZOtZm6lJlQp11QoRUCdBob3rMWtq 86JP/ZDgD0M1Gd6oiRAGYY1ldUPclMWm541xI= Received: by 10.103.244.4 with SMTP id w4mr3103296mur.90.1240827680208; Mon, 27 Apr 2009 03:21:20 -0700 (PDT) In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Sorry for the slow reply ... On Thu, Apr 23, 2009 at 16:55, Jean-Baptiste Quenot wrote: > 2008/8/10 Jonas Fonseca : >>> So here is my cut-and-pastable version: >>> >>> tignowalk() { >>> tmp=$(mktemp) >>> cat >"$tmp" >>> TIG_MAIN_CMD="git rev-list --pretty=raw --no-walk --stdin <$tmp" \ >>> tig >> rm "$tmp" >>> } >> >> Thanks for the fixed up version. > > Restarting this old thread again. Starting from 0.13 the > *tignowalk()* hack does not work anymore. What's the preferred way to > feed specific revisions using stdin now? I don't know if it is preferred, but it works. First add a git alias: [alias] tignowalk-helper = !git rev-list --pretty=raw --no-walk --stdin< Then modify tignowalk by replacing the line calling tig to say: TIG_MAIN_CMD="git tignowalk-helper $tmp" tig