From 3b96f7518bf3f4b8176b7731d24f22b95f01f252 Mon Sep 17 00:00:00 2001 From: jxu <7989982+jxu@users.noreply.github.com> Date: Sat, 24 Aug 2024 11:50:36 -0400 Subject: [PATCH] git-diff: Use --stat command instead of only names (#13502) --- pages/common/git-diff.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/git-diff.md b/pages/common/git-diff.md index 1cabf72271..edbd85ca88 100644 --- a/pages/common/git-diff.md +++ b/pages/common/git-diff.md @@ -19,9 +19,9 @@ `git diff 'HEAD@{3 months|weeks|days|hours|seconds ago}'` -- Show only names of changed files since a given commit: +- Show diff statistics, like files changed, histogram, and total line insertions/deletions: -`git diff --name-only {{commit}}` +`git diff --stat {{commit}}` - Output a summary of file creations, renames and mode changes since a given commit: