From: Jonas Fonseca Date: Mon, 27 Apr 2009 10:21:05 GMT Subject: Re: [tig] Feeding specific revisions to tig Message-ID: <2c6b72b30904270321t3d73e2c5o5e3ac8d4b627e5ab@mail.gmail.com> In-Reply-To: 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