diff options
author | Tim Harder <radhermit@gmail.com> | 2021-06-13 00:19:08 -0600 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-06-13 00:19:08 -0600 |
commit | 5e0698974eb0d8b11fafdb8781c68987ccb4bc46 (patch) | |
tree | 5e9777d8240ca1b7a96637927bc3d5a7dab91f3c | |
parent | pkgdev commit: use `git diff-index` instead of `git diff` (diff) | |
download | pkgdev-5e0698974eb0d8b11fafdb8781c68987ccb4bc46.tar.gz pkgdev-5e0698974eb0d8b11fafdb8781c68987ccb4bc46.tar.bz2 pkgdev-5e0698974eb0d8b11fafdb8781c68987ccb4bc46.zip |
pkgdev commit: filter `git diff-index` for actions we care about
-rw-r--r-- | src/pkgdev/scripts/pkgdev_commit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkgdev/scripts/pkgdev_commit.py b/src/pkgdev/scripts/pkgdev_commit.py index d772bf1..035b25b 100644 --- a/src/pkgdev/scripts/pkgdev_commit.py +++ b/src/pkgdev/scripts/pkgdev_commit.py @@ -555,7 +555,8 @@ def determine_changes(options): # determine staged changes forcing rename search p = git.run( - 'diff-index', '--find-renames', '--name-status', '--cached', '-z', 'HEAD', + 'diff-index', '--diff-filter=ARMD', '--find-renames', + '--name-status', '--cached', '-z', 'HEAD', stdout=subprocess.PIPE) # ebuild path regex, validation is handled on instantiation |