Re: [PATCH v2 0/3] Towards a useable git-branch
From: Duy Nguyen <hidden>
Date: 2016-06-15 22:57:27
On Sat, May 25, 2013 at 5:51 AM, Duy Nguyen [off-list ref] wrote:
I just had an idea that might bring pretty stuff to for-each-ref with probably reasonable effort, making for-each-ref format a superset of pretty. But I need to clean up my backlog first. Give me a few days, I will show you something (or give up ;)
And I can't get it out of my head. Might as well write it down. Check out https://github.com/pclouds/git.git for-each-ref-pretty It opens a hook in format_commit_message() to plug f-e-r's atom syntax in. I didn't do extensive test or anything, just t6300. The %xx syntax in for-each-ref might override some placeholders in pretty, I did not check. You can add extra %(xx) on top as you have done. I still need one more hook to support %>(*) with automatic width detection. After that I'm quite confident we can kill -v/-vv code. -- Duy