doc-diff: add --clean mode to remove temporary working gunk
commitad51743007d408ba6f1f670126d57722bb397ce6
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 31 Aug 2018 06:33:17 +0000 (31 02:33 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Aug 2018 18:49:51 +0000 (31 11:49 -0700)
treeeed9b91c5848bc41dbd1d18ef824723ea1851b90
parent83d4b5ff29ee4a67e1a7269de5c9ec913a467bef
doc-diff: add --clean mode to remove temporary working gunk

As part of its operation, doc-diff creates a bunch of temporary
working files and holds onto them in order to speed up subsequent
invocations. These files are never deleted. Moreover, it creates a
temporary working tree (via git-wortkree) which likewise never gets
removed.

Without knowing the implementation details of the tool, a user may not
know how to clean up manually afterward. Worse, the user may find it
surprising and alarming to discover a working tree which s/he did not
create explicitly.

To address these issues, add a --clean mode which removes the
temporary working tree and deletes all generated files.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/doc-diff