diff options
author | Jeff King <peff@peff.net> | 2012-02-24 17:02:37 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-24 14:11:27 -0800 |
commit | 92ac3197e4859ba8c19e3e7f7b8cf5dc38e4669d (patch) | |
tree | 66604f0afda58b0f6c522ea25262be830266d7fd /t/t4203-mailmap.sh | |
parent | Sync with 1.7.6.6 (diff) | |
download | tgif-92ac3197e4859ba8c19e3e7f7b8cf5dc38e4669d.tar.xz |
teach convert_to_git a "dry run" mode
Some callers may want to know whether convert_to_git will
actually do anything before performing the conversion
itself (e.g., to decide whether to stream or handle blobs
in-core). This patch lets callers specify the dry run mode
by passing a NULL destination buffer. The return value,
instead of indicating whether conversion happened, will
indicate whether conversion would occur.
For readability, we also include a wrapper function which
makes it more obvious we are not actually performing the
conversion.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4203-mailmap.sh')
0 files changed, 0 insertions, 0 deletions