Thread (1 message) 1 message, 1 author, 2016-06-15

Re: "Medium" log format: change proposal for author != committer

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:06:35

Jacob Keller [off-list ref] writes:
On Tue, Sep 15, 2015 at 6:52 PM, Junio C Hamano [off-list ref] wrote:
quoted
 * Enhance the "--pretty=format:" thing so that the current set of
   hardcoded --pretty=medium,short,... formats and your modified
   "medium" can be expressed as a custom format string.

 * Introduce a configuration mechanism to allow users to define new
   short-hand, e.g. if you have this in your $HOME/.gitconfig:

        [pretty "robin"]
                format = "commit %H%nAuthor: %an <%ae>%n..."
Afiak there is already support for this.. from "git help config":
Yup.  But before the first bullet item is done, it cannot be used to
replace the built-in hardcoded formats with a built-in set of default
configurations.
quoted
 * (optional) Replace the hardcoded implementations of pretty
   formats with short-hand names like "medium", "short", etc. with a
   built-in set of pretty.$name.format using the configuration
   mechanism.  But we need to make sure this does not hurt
   performance for common cases.
This part obviously hasn't been done, I don't know if any particular
format is not expressable today by the pretty syntax or not..
One that we know we cannot is the nice conditional one Robin wants.
I do think it is a reasonable thing to have.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help