From 93a0db5ca773e467222c6e84eae9d35fcbbb868f Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 19 Oct 2016 18:13:50 -0700 Subject: [PATCH] [Emacs] Change readme_was_update to diff HEAD --- dotfiles/emacs.d/bin/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/emacs.d/bin/util.sh b/dotfiles/emacs.d/bin/util.sh index e69b0ebc..168c69a5 100755 --- a/dotfiles/emacs.d/bin/util.sh +++ b/dotfiles/emacs.d/bin/util.sh @@ -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 () {