Re: [PATCH 08/10] cat-file: split --batch input lines on whitespace
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Jul 10, 2013, 15:29 UTC
- Message-ID
- <CALkWK0mGMZPWowZ0ULNuGKD8w2Q=kN0nEGaOkuWoYKmzD5zGrw@mail.gmail.com>
- In-Reply-To
- <20130710114828.GH21963@sigill.intra.peff.net>
Jeff King wrote:
> git rev-list --objects HEAD | > git cat-file --batch-check='%(objectsize) %(text)'
If anything, I would have expected %(rest), not %(text). This atom is specific to commands that accept input via stdin (i.e. not log, f-e-r, branch, or anything else I can think of).
Also, this makes me wonder if %(field:0), %(field:1), and probably %(field:@) are good ideas. Even if we go down that road, I don't think %(rest) is a problem per-se.