today

what did you do today?
git clone git://git.alexkarle.com.com/today
Log | Files | Refs | README | LICENSE

commit cb14171c43373c7fdaa058b7bd8b383bbdcfe12b (patch)
parent d90a358137063693368fe4905fa334abb6e6a190
Author: Alex Karle <alex@alexkarle.com>
Date:   Mon,  7 Mar 2022 10:46:15 -0500

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).

Diffstat:
Mtoday | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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() {