[Emacs] Change readme_was_update to diff HEAD

This commit is contained in:
Ivan Malison 2016-10-19 18:13:50 -07:00
parent 6682556418
commit 93a0db5ca7
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -5,7 +5,7 @@ README="$EMACS_DIR/README.org"
REPOSITORY_NAME="$(realpath --relative-to="$TOP_LEVEL" "$README")"
readme_was_updated() {
git diff HEAD~1 --name-only | grep --quiet "$REPOSITORY_NAME"
git diff HEAD HEAD~1 --name-only | grep --quiet "$REPOSITORY_NAME"
}
update_index () {