From c91bb1b19ce519323d55d871a75405f234723791 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Tue, 27 Oct 2020 12:31:35 +0000 Subject: [PATCH] git-show: improve --stat, add --summary --- pages/common/git-show.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/git-show.md b/pages/common/git-show.md index 8e2c0e497..28da3f47e 100644 --- a/pages/common/git-show.md +++ b/pages/common/git-show.md @@ -23,10 +23,14 @@ `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}}` +- 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): `git show {{revision}}:{{path/to/file}}`