git-ls-tree, git-rev-list, git-rev-parse: add pages (#3644)

This commit is contained in:
Valentin Vetter
2019-12-17 21:31:17 +01:00
committed by Zlatan Vasović
parent a5f91094dc
commit a1a3faecb8
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# git ls-tree
> List the contents of a tree object.
> More information: <https://git-scm.com/docs/git-ls-tree>.
- List the contents of the tree on a branch:
`git ls-tree {{branch_name}}`
- List the contents of the tree on a commit, recursing into subtrees:
`git ls-tree -r {{commit_hash}}`
- List only the filenames of the tree on a commit:
`git ls-tree --name-only {{commit_hash}}`