Wednesday, October 31, 2012

Nice brief git log format

I'm really happy with this. There's two new features compared to what I've been using up until recently.

Firstly, I just learned about the core.pager option which solves the problems I was solving previously with this ugliness:
ll = "!git --no-pager log --pretty=nice -n30; echo"

Secondly, the %+d. I generally don't use the --graph log formats, (such as these), that show you the branch paths, but seeing where the refs are is super useful. The + makes it appear on the next line without adding a line break when there are no refs.

Here's a screenshot of how it looks (with details obscured to protect the innocent).

Update: I dropped the line break before the refs list, which is fine if you have a nice wide terminal, and tweaked some colours. Now it's:

  nice = format:%Cblue%h %C(cyan)%cr %Cgreen%an%Creset %s%C(yellow)%d %Creset

Tuesday, October 2, 2012

Some "progress" on my Tau in Ruby patch

Its category was changed from "core" to "joke" :(... How does the quote go? "First they ignore your patch, then they classify it as a joke, then... " I forget the rest ;)

"Once τ is widely accepted in these communities, we might add it..."

But also:

"...if it were just up to me, I'd add it just to show support. It's a rather tiny and harmless addition."

See the ticket here.