Skip to content

Commit 9401346

Browse files
committed
docs: Update shell/report.sh
1 parent 71436fd commit 9401346

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shell/report.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
#
44
# Run this as a standalone report, not as a hook.
55
#
6-
# Get count of files added, modified, deleted and renamed/moved.
6+
# It will get count of files added, modified, deleted and renamed/moved and output it.
77
# Note that modified and renamed/moved can both apply to the same file.
88
# There also other states like C for copied.
99

1010
# This report uses git status and passes it do the steps below to parse it.
1111
# A more flexible approach (for unit tests for example) would be for this
1212
# script to handle the status and call another script to do the parsing and result. Then
1313
# the script could be used separate from git and so accept a filename or stdin.
14+
15+
# Status summary excluding untracked files using a flag.
1416
CHG=$(git status -s -uno --porcelain)
1517

1618
# Note quotes and -n to preserve newlines so line count or grep for start of lines works.

0 commit comments

Comments
 (0)