]> git.ipfire.org Git - thirdparty/git.git/commit
diff-tree doc: correct & remove wrong documentation
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 4 Feb 2019 10:36:18 +0000 (11:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Feb 2019 20:39:13 +0000 (12:39 -0800)
commit9fce19a431d9fa9cbd8033a1961d3a1f579b6295
tree1445065b5f7566f52618c04ecaf2c914d51a72ea
parent98cdfbb84ad2ed6a2eb43dafa357a70a4b0a0fad
diff-tree doc: correct & remove wrong documentation

The documentation saying that diff-tree didn't support anything except
literal prefixes hasn't been true since
d38f28093e ("tree_entry_interesting(): support wildcard matching",
2010-12-15), but this documentation was not updated at the time.

Since this command uses pathspecs like most other commands, there's no
need to show examples of how the various "cmd <revs> <paths>"
invocations work.

Furthermore, the "git diff-tree --abbrev 5319e4" example shown here
never worked. We'd ended up with that through a combination of
62b42d3487 ("docs: fix some antique example output", 2011-05-26) and
ac4e086929 ("Adjust core-git documentation to more recent Linus GIT.",
2005-05-05), but "git diff-tree <tree>" was always invalid.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-diff-tree.txt