From: Junio C Hamano Date: Tue, 10 Mar 2020 03:16:07 +0000 (-0700) Subject: Meta/cook: make ":" to mean what is cached X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bfe5948721092588fac7c834f79a2477f0b9edf;p=thirdparty%2Fgit.git Meta/cook: make ":" to mean what is cached --- diff --git a/cook b/cook index 73d96af536..a579853728 100755 --- a/cook +++ b/cook @@ -942,6 +942,10 @@ if ($wildo) { open($fd, "-|", qw(git --git-dir=Meta/.git cat-file -p), "$ARGV[0]:whats-cooking.txt"); + } elsif ($ARGV[0] eq ":") { + open($fd, "-|", + qw(git --git-dir=Meta/.git cat-file -p), + ":whats-cooking.txt"); } else { open($fd, "<", $ARGV[0]); }