]> git.ipfire.org Git - thirdparty/git.git/commit
doc-diff: let `render_tree()` take an explicit directory name
authorMartin Ågren <martin.agren@gmail.com>
Sun, 17 Mar 2019 18:36:01 +0000 (19:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Mar 2019 06:54:17 +0000 (15:54 +0900)
commitbc71dc3fa1561c301098796b47cd7ef721cb68f9
treebb324929d78b3d3114e8b88cdd1819fa606431df
parent9a71722b4df993475553ea499fdf44dab5fed544
doc-diff: let `render_tree()` take an explicit directory name

In `render_tree()`, `$1` is documented to be the commit-ish/oid and we
use it as that with `git checkout`, but we mostly use it to form the
name of various directories. To separate these concerns, and because we
are about to construct the directory names a bit differently, take two
distinct arguments instead.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/doc-diff