this post was submitted on 10 Jan 2025
56 points (96.7% liked)

Git

2960 readers
1 users here now

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 2 years ago
MODERATORS
 

Hey! I've just released todo-md v1 πŸš€. Keep your tasks organized with todo-md!

The pre-commit hook automatically maintains a TODO.md file by scanning your staged files for TODO: comments. You do not need complicated task trackers bloated with features anymore:) Let your code speak for itself!

Get it now: https://codeberg.org/lig/todo-md

#TODOmd #DevTools #PreCommit #Automation #OpenSource #Git #Todo​

top 13 comments
sorted by: hot top controversial new old
[–] emaro@nerdculture.de 1 points 6 days ago

@lig that looks neat!

[–] jonne@infosec.pub 17 points 1 week ago (1 children)

But when I put @todo in my code, the point is to never revisit it. I don't want to be reminded every time I open the repo!

[–] lig@lemmings.world 5 points 1 week ago (1 children)

This one isn't for you then :)

[–] jonne@infosec.pub 6 points 1 week ago

Haha, nice work on it tho.

[–] nomen_dubium@startrek.website 6 points 1 week ago (1 children)

excellent! i can now remove my eternal TODO to write this myself :D

[–] lig@lemmings.world 3 points 1 week ago

You're welcome:)

[–] OsrsNeedsF2P@lemmy.ml 6 points 1 week ago

That's actually pretty neat

[–] Kissaki@programming.dev 5 points 1 week ago (1 children)

Maybe you want to scan for FIXME: too?

[–] lig@lemmings.world 2 points 1 week ago (1 children)

That could be an option. Care to fill an issue?:)

[–] Kissaki@programming.dev 3 points 1 week ago (2 children)

https://codeberg.org/lig/todo-md/issues/4

I didn't create one because I won't be using the project, but suggested it here for your consideration. :)

Outside of work-in-progress or exploration branches, I don't commit or merge TODOs. Typically, I consider them merge/land blockers. Because most of the time, they're never resolved. And in that case, I much prefer documentation and statements; reasoning of why it is the way it is, or opportunities.

[–] nik9000@programming.dev 2 points 6 days ago

In projects I work on we use NOCOMMIT for these blockers and they'll fail the build. It's honestly lovely to have something to leave yourself a note that the build catches for you.

[–] pupbiru@aussie.zone 1 points 6 days ago

a TODO can often be expressed in a throw NotImplementedError or similar, but a comment is where danger lies

[–] Kalcifer@sh.itjust.works 3 points 1 week ago