mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 10:42:07 +02:00
git-show: improve --stat, add --summary
This commit is contained in:
parent
0f502c4f54
commit
c91bb1b19c
1 changed files with 5 additions and 1 deletions
|
@ -23,10 +23,14 @@
|
||||||
|
|
||||||
`git show --oneline -s {{commit}}`
|
`git show --oneline -s {{commit}}`
|
||||||
|
|
||||||
- Show only the list of the files changed in a commit:
|
- Show only statistics (added/removed characters) about the changed files:
|
||||||
|
|
||||||
`git show --stat {{commit}}`
|
`git show --stat {{commit}}`
|
||||||
|
|
||||||
|
- Show only the list of added, renamed or deleted files:
|
||||||
|
|
||||||
|
`git show --summary {{commit}}`
|
||||||
|
|
||||||
- Show the contents of a file as it was at a given revision (e.g. branch, tag or commit):
|
- Show the contents of a file as it was at a given revision (e.g. branch, tag or commit):
|
||||||
|
|
||||||
`git show {{revision}}:{{path/to/file}}`
|
`git show {{revision}}:{{path/to/file}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue