]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/cook: make ":" to mean what is cached
authorJunio C Hamano <gitster@pobox.com>
Tue, 10 Mar 2020 03:16:07 +0000 (20:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Mar 2020 03:16:07 +0000 (20:16 -0700)
cook

diff --git a/cook b/cook
index 73d96af536e3fb739c16a12ef58357456a38b305..a57985372826a41eebebc3dd1e6b2f4f960b4847 100755 (executable)
--- 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]);
        }