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
@@ -942,6 +942,10 @@ if ($wildo) {
942 open($fd, "-|",
943 qw(git --git-dir=Meta/.git cat-file -p),
944 "$ARGV[0]:whats-cooking.txt");
945 + } elsif ($ARGV[0] eq ":") {
946 + open($fd, "-|",
947 + qw(git --git-dir=Meta/.git cat-file -p),
948 + ":whats-cooking.txt");
949 } else {
950 open($fd, "<", $ARGV[0]);
951 }