Meta/cook: make ":" to mean what is cached
Junio C Hamano committed
Mar 9, 2020 at 20:16 UTC
4bfe5948721092588fac7c834f79a2477f0b9edf
1 file changed
+4
cook
+4
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]);
}