Re: [PATCH v2 0/3] Towards a useable git-branch
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 25, 2013, 06:26 UTC
- Message-ID
- <CACsJy8Av8LmiefR5XFuFadZERmivZAAB9TbysFjeUSb2hzgWBw@mail.gmail.com>
- In-Reply-To
- <CACsJy8AEkmiWP46tOBkXRkWDGO+k5YW+GJB-ak8HfTpghQP5eQ@mail.gmail.com>
On Sat, May 25, 2013 at 5:51 AM, Duy Nguyen <pclouds@gmail.com> 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