File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 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.
1416CHG=$( git status -s -uno --porcelain)
1517
1618# Note quotes and -n to preserve newlines so line count or grep for start of lines works.
You can’t perform that action at this time.
0 commit comments