Thread (15 messages) flat view 15 messages, 6 authors, 2016-06-15

Re: [PATCH] allow user aliases for the --author parameter

From: Pedro Melo <hidden>
Date: 2016-06-15 22:45:13

Hi,

On Aug 22, 2008, at 10:09 PM, Junio C Hamano wrote:
Another potential source of this information is the existing  
commits.  If
you are communicating with the same set of people already, you already
have the information in your repository.  I suspect Michael's  
"selected
few co-workers that would comfortably fit in a small list of config
entries without need for any external text file" use case would be  
better
served by an approach to look into existing commits.

I often use "git who Jeff" alias to fill the recipient of my e- 
mails with
this alias:

    [alias]
        who = "!sh -c 'git log -1 --pretty=\"format:%an <%ae>\" -- 
author=\"$1\"' -"
Nice:)
        one = "!sh -c 'git show -s --pretty=\"format:%h (%s, %ai\"  
\"$@\" | sed -e \"s/ [012][0-9]:[0-5][0-9]:[0-5][0-9] [-+][0-9][0-9] 
[0-9][0-9]$/)/\"' -"
Can you explain this one? It seems a bit like git describe, but it  
misses a single char at the beggining?

git (master) $ git one
2ebc02d (Start 1.6.1 cycle, 2008-08-17)

git (master) $ git describe
v1.6.0-2-g2ebc02d

Best regards,
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo@simplicidade.org
Use XMPP!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help