From 595392b56f754a39991d8ef1d9caf23eca0270ec Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 12 May 2017 20:09:02 +0300 Subject: [PATCH] - Added update-requirements Git alias (same as the update-requirements shell alias but also commits the changed files.) --- .gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitconfig b/.gitconfig index 64a3030..78381c4 100644 --- a/.gitconfig +++ b/.gitconfig @@ -22,6 +22,7 @@ tag-version = !git tag -af "v$(cat VERSION)" tracking = rev-parse --abbrev-ref --symbolic-full-name @{upstream} trigger = !git commit --allow-empty --no-edit --amend && git push --force-with-lease + update-requirements = !git stash save -a -u -q && ( git ls-files '*requirements*.txt' | xargs pur -r ) && ( git commit -a -m '- Updated requirements.' || echo 'No requirements updated.' ) && git stash pop [color] grep = true [core] -- GitLab