Solarus Forum

Community => General discussion => Topic started by: alexgleason on October 20, 2018, 10:33:26 pm

Title: The stupidest commit message I have ever written
Post by: alexgleason on October 20, 2018, 10:33:26 pm
So, I've been learning Lua. For a while I was using pairs() to loop over an array, but later learned that ipairs() is actually the behavior I want. So I went back and edited my game's scripts, and wound up with this totally incoherent commit message: https://gitlab.com/voadi/voadi/commit/22885ca8e0ba0e1ab68a07422163f56b0b8e1048

I had written "Always use ipairs!! Now that I know the difference", but Bash interpreted my double exclamation points as a bang command (https://ss64.com/bash/bang.html). Geez... maybe I'll just write my commit messages into nano from now on instead of using the git commit -m <message> syntax.