Skip to content

Instantly share code, notes, and snippets.

View kevinmoilar's full-sized avatar

Kevin Mueller kevinmoilar

View GitHub Profile
@RickCogley
RickCogley / on-exit_git.py
Last active August 10, 2021 15:01 — forked from wbsch/on-exit_git.py
Proof of concept for a Taskwarrior on-exit hook that manages a git repository in ~/.task
#!/usr/bin/env python
#
# PoC: Manage a git repository in ~/.task that gets updated on changes.
# Only pending.data and completed.data are included by default.
# You can use "git add" to add whatever files you want to track in your
# task folder.
#
# Inspired by https://gist.github.com/Unode/9366218
#
# Works with any Taskwarrior version that supports hooks.