From c477c592477dc7b14c02763cffd0a9b6bf034c0e Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 1 Feb 2023 13:02:14 -1000 Subject: [PATCH] ;fix: bin: hledger-git: don't forcibly add ignored files --- bin/hledger-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hledger-git b/bin/hledger-git index 3160a6676..0e9c8ed65 100755 --- a/bin/hledger-git +++ b/bin/hledger-git @@ -73,7 +73,7 @@ record() { ensure_git ensure_git_repo cd "$DIR" - for F in $FILES; do $GIT add -f "$F"; done + for F in $FILES; do $GIT add "$F"; done || echo "(ignored)" MSG=${1:-$(date +'%Y-%m-%d %H:%M:%S %Z')} if [ $# -ge 1 ]; then shift