Count unstaged but changed files

This commit is contained in:
Akitake 2024-07-11 13:48:15 +02:00
parent 3943525d47
commit c4099f7300
No known key found for this signature in database
GPG Key ID: BBB11D6E26F3162D

View File

@ -18,7 +18,7 @@ def git_files(command):
# Get a list of changes json files using git # Get a list of changes json files using git
def get_changed_jsons(): def get_changed_jsons():
commands = [ commands = [
# ['git', 'diff', '--name-only'], # changed files ['git', 'diff', '--name-only'], # changed files
['git', 'diff', '--cached', '--name-only'], # staged files ['git', 'diff', '--cached', '--name-only'], # staged files
['git', 'log', 'origin/main..HEAD', '--name-only', '--pretty=format:'] # comitted files ['git', 'log', 'origin/main..HEAD', '--name-only', '--pretty=format:'] # comitted files
] ]