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
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
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
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
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
%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
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
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
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
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
10 matches
Mail list logo