From b92c2da2fcf079fcd1317d057031428b8923d503 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Thu, 11 Oct 2012 23:51:37 +1300 Subject: [PATCH] Added --update-all-with-notifications command for easier cron invocation --- lib/git/repo_index.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index fdadcbd..5558dbb 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -60,6 +60,9 @@ function git_index() { _rebuild_git_index elif [ "$1" = "--update-all" ]; then _git_index_update_all + elif [ "$1" = "--update-all-with-notifications" ]; then + NOTIFY=true + _git_index_update_all elif [ "$1" = "--batch-cmd" ]; then _git_index_batch_cmd "${@:2:$(($#-1))}" # Pass all args except $1 elif [ "$1" = "--list" ] || [ "$1" = "-l" ]; then