Open mariacha opened 10 years ago
I'd like to only check staged files (ones that are actively being committed) instead of all files that show up using git status.
git status
Is the prefered method for this to change this line: LIST=$( git status | grep -e "$grep_include" | egrep -v "$egrep_exclude" )
LIST=$( git status | grep -e "$grep_include" | egrep -v "$egrep_exclude" )
to: LIST=$( git diff --name-only --cached | grep -e "$grep_include" | egrep -v "$egrep_exclude" )
LIST=$( git diff --name-only --cached | grep -e "$grep_include" | egrep -v "$egrep_exclude" )
or is there an option for this somewhere?
@ranelpadon can you please look into this request?
I'd like to only check staged files (ones that are actively being committed) instead of all files that show up using
git status
.Is the prefered method for this to change this line:
LIST=$( git status | grep -e "$grep_include" | egrep -v "$egrep_exclude" )
to:
LIST=$( git diff --name-only --cached | grep -e "$grep_include" | egrep -v "$egrep_exclude" )
or is there an option for this somewhere?