From: Jeff King Date: Fri, 24 Feb 2012 22:02:37 +0000 (-0500) Subject: teach convert_to_git a "dry run" mode X-Git-Tag: v1.7.9.3~8^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/92ac3197e4859ba8c19e3e7f7b8cf5dc38e4669d?ds=inline;hp=92ac3197e4859ba8c19e3e7f7b8cf5dc38e4669d 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 Signed-off-by: Junio C Hamano ---