From: Karl Hasselström Date: Sun, 27 Jan 2008 13:31:31 +0000 (+0100) Subject: Let the caller supply the diff text to diffstat() X-Git-Tag: v0.15-rc1~291 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/a45cea156746937c5d2e73c22cbcbf23479b4cfe?hp=a45cea156746937c5d2e73c22cbcbf23479b4cfe Let the caller supply the diff text to diffstat() Almost all diffstat() callers already have the diff text, so they might as well pass it to diffstat() instead of letting it recompute it. In some cases this even makes for a code simplification since the diff (and thus diffstat) parameters were nontrivial. Also, diffstat() wasn't as versatile as diff(); for example, it didn't accept any extra diff options. This patch solves all of those problems as a side-effect. Signed-off-by: Karl Hasselström ---