Aligning your Git logs
pyrtsa.posterous.com
Aligning your Git logs
1–9 of 9 posts
Re: Aligning your Git logs
#2Re: Aligning your Git logs
#3For those as confused as I was, the code is silently swallowed if you have JavaScript turned off.
I'm still thinking whether to switch my blog to another platform, maybe even an own server, as that's not the only problem I've had trying to embed source code examples to my posts.
Much of it boils down to the use of the Tiny MCE editor, that I'm a bit surprised Posterous is enforcing everybody to use!
Re: Aligning your Git logs
#4Edit: Something to do with copy/pasting from the browser. Cloning the gist repository and copying directly in vim works fine.
Re: Aligning your Git logs
#5I get a bad config file error when I copy the aliases into my .gitconfig. Edit: Something to do with copy/pasting from the browser. Cloning the gist repository and copying directly in vim works fine.
Re: Aligning your Git logs
#6Re: Aligning your Git logs
#7I get a bad config file error when I copy the aliases into my .gitconfig. Edit: Something to do with copy/pasting from the browser. Cloning the gist repository and copying directly in vim works fine.
Good to hear that you got it resolved, but are you sure that your character encoding settings are alright?
Re: Aligning your Git logs
#8Probably the easiest way to do this is with homebrew[1]:
brew install gawk
[1] If you don't know about homebrew, check out https://github.com/mxcl/homebrew. It's a package manager for Mac.Re: Aligning your Git logs
#9l = "!f() { git log $@ --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{79}).{2,}/, \"\\\\1\",\"g\",$4), $5, $6 }' | less -R ; } ; f"