summaryrefslogtreecommitdiff
path: root/Documentation/git-web--browse.txt
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2013-07-10 07:45:47 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-07-12 09:18:12 -0700
commit93d2a607ba05fba31442941d0425019120993846 (patch)
treef2fe7d26dc9e6a517a0a526eb0c6879ede4feab1 /Documentation/git-web--browse.txt
parentcat-file: refactor --batch option parsing (diff)
downloadtgif-93d2a607ba05fba31442941d0425019120993846.tar.xz
cat-file: add --batch-check=<format>
The `cat-file --batch-check` command can be used to quickly get information about a large number of objects. However, it provides a fixed set of information. This patch adds an optional <format> option to --batch-check to allow a caller to specify which items they are interested in, and in which order to output them. This is not very exciting for now, since we provide the same limited set that you could already get. However, it opens the door to adding new format items in the future without breaking backwards compatibility (or forcing callers to pay the cost to calculate uninteresting items). Since the --batch option shares code with --batch-check, it receives the same feature, though it is less likely to be of interest there. The format atom names are chosen to match their counterparts in for-each-ref. Though we do not (yet) share any code with for-each-ref's formatter, this keeps the interface as consistent as possible, and may help later on if the implementations are unified. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-web--browse.txt')
0 files changed, 0 insertions, 0 deletions