News for hackers. Stuff that matters.
Re:The Perfect Commit by js2 on Saturday October 29, 2022 @08:35PM (#33389540)
> Adds optional table support

Ahem, "Add optional table support"

Because: imperative mood. :-)

I was an early git contributor and I've modeled my commits from the git project ever since.

Re:The Perfect Commit by simonw on Saturday October 29, 2022 @08:51PM (#33389675)
I can never remember which tense is recommended for git commits - I keep meaning to figure that out and try to make a habit of if.
Re:The Perfect Commit by mklein994 on Saturday October 29, 2022 @11:04PM (#33390603)
It's called the Imperative Mood[0]. I like to think of it as though I'm completing this statement: "If you apply this patch, this commit will [Do The Thing™]". Here's a few examples:

If I were to apply this patch, this commit will…

- Simplify FooWidget

- Add optional table support

- Remove trailing whitespace

- Update fizzbuzz to 1.2.0

- Merge branch 'feature/ABC-123-foobar'

- Revert "Add foo to bar"

[0]: https://en.wikipedia.org/wiki/Imperative_mood

Re:The Perfect Commit by simonw on Saturday October 29, 2022 @11:28PM (#33390732)
Thanks, that's a really clear explanation. I'm going to try that out and see if it sticks for me.