sk- / git-lint

improving source code one step at a time
Apache License 2.0
236 stars 78 forks source link

git-lint run only on staged files #103

Closed saurabhprakash closed 6 years ago

saurabhprakash commented 6 years ago

Current git-lint has following options

Options: -h Show the usage patterns. --version Prints the version number. -f --force Shows all the lines with problems. -t --tracked Lints only tracked files. --json Prints the result as a json string. Useful to use it in conjunction with other tools. --last-commit Checks the last checked-out commit. This is mostly useful when used as: git checkout ; git lint --last-commit.

Do we have any option to run only only on staged files(for commit)?

sk- commented 6 years ago

There's no such option at the moment as I haven't needed it before. PRs are welcomed.