Topic: https://brettterpstra.com/2012/05/08/scatterbrains-git-as-biographer/
hide preview

What's next? verify your email address for reply notifications!

Christian Tietze 12y, 197d ago

Just started to use Day One about a month ago and I really like to have my programming efforts logged this way. Thanks for the script!

In case this is not intentional I just wanted to point out: your install script installs the outdated gitlogger.rb file.

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 197d ago

Fixed, I think…

hide preview

What's next? verify your email address for reply notifications!

Cris Bennett 12y, 229d ago

A flaw in adding entries directly rather than via DayOne's cli tool is likely breakages when things (file formats, locations etc) change. Looks like this has happened with the new update -- at least my gitlogger suddenly isn't adding anything. Haven't had a chance to look at why yet. I did think of quickly editing gitlogger.rb to use the cli tool instead, but the new cli tool is broken (on my system it segfaults). Probably just as well, as I really should do some real work today rather than entertain myself with this ...

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 229d ago

My gitlogger is working fine after the Day One update, although I recently tweaked it to check locally only first, and --remote only if that came up empty (indicating I'm working on another machine). Not sure if I changed anything else, but I'll update the gist with the new code.

remark link parent
hide preview

What's next? verify your email address for reply notifications!

Cris Bennett 12y, 229d ago

Not sure what caused the apparent flakiness, as now it's working (when run directly and from launchd). I still mean to change it to use the cli tools sometime, but that will have to wait 'till the new cli tool works.

hide preview

What's next? verify your email address for reply notifications!

Andrew 12y, 314d ago

You could also use a post-commit hook in your git template directory so you don't have to run anything nightly and it will automatically work for all new repositories

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 314d ago

Right, and I did that for a while, but I swamped my log with entries. I want to hand pick which repos are logged, and I like having one log message per day with each repo's commits grouped together. I played with post-commit on tag commits and try to curate things a little more, but in the end I just wanted to not have to think about anything beyond adding the repo to a list and letting everything else go, while still maintaining an orderly log in Day One. Thus, the script :).

hide preview

What's next? verify your email address for reply notifications!