From cb14171c43373c7fdaa058b7bd8b383bbdcfe12b Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 7 Mar 2022 10:46:15 -0500 Subject: [PATCH] Fix -i flag not commiting due to clean `diff` When there are no commits / nothing is tracked, diff will always return clean (and therefore the init will fail to create the first commit). --- today | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/today b/today index 86a39c7..f8b0805 100755 --- a/today +++ b/today @@ -34,7 +34,8 @@ init() { today -- what did you do today? ------------------------------- EOM - commit "Initial commit" + gitdo add "$LOG" + gitdo commit -m "Initial commit" } reqinit() { -- libgit2 1.1.1