git log --author=me

2015-11-02 Thread Harry Jeffery
Hi, I've written a patch that allows `me` to be used as shorthand for $(user.name) or $(user.email) in the `--author` and `--commiter` fields. The purpose being to make finding your own commits quicker and easier: git log --author=me Is this a change that would be accepted if submitted? T

[PATCH] pretty-format: add append line-feed format specifier

2014-09-09 Thread Harry Jeffery
inserting a '%_d' expansion before a commit to show any refs pointing towards it. Signed-off-by: Harry Jeffery --- Documentation/pretty-formats.txt | 4 pretty.c | 10 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentat

Re: [PATCH] pretty-format: add append line-feed format specifier

2014-09-09 Thread Harry Jeffery
On 09/09/14 20:15, Junio C Hamano wrote: Is this different from "%n%-d"? Yes. "%n%-d" will place the newline before the expansion, not after. log --decorate --pretty=format:"%n%-d%h\\ %t\\ [%cn]\\ %s" --- (HEAD, upstream/master, master)85f0837 c29da1d [Junio C Hamano] Start the post-2.1 cy

Re: [PATCH] pretty-format: add append line-feed format specifier

2014-09-09 Thread Harry Jeffery
On 09/09/14 22:45, Jeff King wrote: Yeah, that was my thought on reading the initial patch, too. Why limit ourselves to newlines and spaces. I'd much rather have full conditional expansion, like "${foo:+prefix $foo suffix}" in the shell. Something like the patch below might work, but I didn't te

[PATCH 1/2] log-tree: make format_decorations more flexible

2014-09-10 Thread Harry Jeffery
The prefix, separator and suffix for decorations are hard-coded. Make format_decorations more flexible by having the caller specify the prefix, separator and suffix. Signed-off-by: Harry Jeffery --- log-tree.c | 16 +--- log-tree.h | 2 +- pretty.c | 2 +- 3 files changed, 11

[PATCH 2/2] pretty: add %D format specifier

2014-09-10 Thread Harry Jeffery
%d prints decorations wrapped by " (" and ")". %D provides the same output without the parenthesis, making " (%D)" and "%d" equivalent to one another. Signed-off-by: Harry Jeffery --- Documentation/pretty-formats.txt | 6 -- pretty.c

Re: [PATCH 2/2] pretty: add %D format specifier

2014-09-11 Thread Harry Jeffery
On 11/09/14 17:56, Junio C Hamano wrote: > Because patch 1/2 alone does not make much sense without 2/2, it > probably would have been better to do these as a single patch. Would you like me to resubmit it as a single patch, or are you applying them as is? > And of course a few additional test

[PATCH v2] pretty: add %D format specifier

2014-09-15 Thread Harry Jeffery
Add a new format specifier, '%D' that is identical in behaviour to '%d', except that it does not include the ' (' prefix or ')' suffix provided by '%d'. Signed-off-by: Harry Jeffery --- Documentation/pretty-formats.txt

[PATCH v3] pretty: add %D format specifier

2014-09-16 Thread Harry Jeffery
Add a new format specifier, '%D' that is identical in behaviour to '%d', except that it does not include the ' (' prefix or ')' suffix provided by '%d'. Signed-off-by: Harry Jeffery --- Documentation/pretty-formats.txt

[PATCH v4] pretty: add %D format specifier

2014-09-18 Thread Harry Jeffery
Add a new format specifier, '%D' that is identical in behaviour to '%d', except that it does not include the ' (' prefix or ')' suffix provided by '%d'. Signed-off-by: Harry Jeffery --- Documentation/pretty-formats.txt | 6 -- log-tree.c