Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old file names of moved files are checked #9

Closed
sebdah opened this issue Jan 8, 2013 · 0 comments
Closed

Old file names of moved files are checked #9

sebdah opened this issue Jan 8, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@sebdah
Copy link
Owner

sebdah commented Jan 8, 2013

If you rename a file, the pre commit hook will try to lint both the old and the new file name. The commit hook should look at the full diff-index output and take action upon the status there.

[sebastian ~/git/avail (support/10.0.x)]$ git diff-index --cached HEAD
:100755 100755 cd8b2c07ba0dd9d25e272d666d7836cbf9b6192d 1fbb2e9a61cd28c32db54916c9baa2c8cfcd63d1 M  host-packages/gk/gk/etc/ami-init.d/15-crontab
:100755 000000 e7dd12eeedeb6437c875321a61a5e95c4e23bc29 0000000000000000000000000000000000000000 D  host-packages/gk/gk/usr/local/bin/cust-data-backup.py
:000000 100755 0000000000000000000000000000000000000000 98ca01f224265b815b7d4c4f71b861d0fd20d4cc A  host-packages/gk/gk/usr/local/bin/cust_data_backup.py
@ghost ghost assigned sebdah Jan 8, 2013
@sebdah sebdah closed this as completed in fdcc382 Jan 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant