summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-03-10 03:16:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-10 03:16:07 (GMT)
commit4bfe5948721092588fac7c834f79a2477f0b9edf (patch)
treeb0fea0cb6074cd09c195a8a8f6a7f1daa018dc56
parenta9aa89f29ce8f9515a2d37fe4a57447028d0e7ba (diff)
downloadgit-4bfe5948721092588fac7c834f79a2477f0b9edf.zip
git-4bfe5948721092588fac7c834f79a2477f0b9edf.tar.gz
git-4bfe5948721092588fac7c834f79a2477f0b9edf.tar.bz2
Meta/cook: make ":" to mean what is cached
-rwxr-xr-xcook4
1 files changed, 4 insertions, 0 deletions
diff --git a/cook b/cook
index 73d96af..a579853 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]);
}