aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-06-13 00:19:08 -0600
committerTim Harder <radhermit@gmail.com>2021-06-13 00:19:08 -0600
commit5e0698974eb0d8b11fafdb8781c68987ccb4bc46 (patch)
tree5e9777d8240ca1b7a96637927bc3d5a7dab91f3c
parentpkgdev commit: use `git diff-index` instead of `git diff` (diff)
downloadpkgdev-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.py3
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