;fix: bin: hledger-git: don't forcibly add ignored files

This commit is contained in:
Simon Michael 2023-02-01 13:02:14 -10:00
parent c8c920cbe0
commit c477c59247

View File

@ -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