minus-squarelemmysmash@beehaw.orgtoProgramming@programming.dev•A program to automatically generate commit messages locally without an LLM?linkfedilinkarrow-up2·2 days agoUse commit 0 as your initial commit, and then: git log -1 --pretty=%s | sed -E 's/^commit ([0-9]+)$/\1/' | awk '{print "commit " ($1+1)}' linkfedilink
Use
commit 0as your initial commit, and then:git log -1 --pretty=%s | sed -E 's/^commit ([0-9]+)$/\1/' | awk '{print "commit " ($1+1)}'