ref-filter: support different email formats
authorHariom Verma <redacted>
Fri, 21 Aug 2020 21:41:43 +0000 (21:41 +0000)
committerJunio C Hamano <redacted>
Fri, 28 Aug 2020 20:52:50 +0000 (13:52 -0700)
commitb82445dc2789f2046831621e6be7b2af464af6e9
tree4084f2747aeec3e596d43caef36ff2d352c8485b
parent878e727637ec5815ccb3301eb994a54df95b21b8
ref-filter: support different email formats

Currently, ref-filter only supports printing email with angle brackets.

Let's add support for two more email options.
- trim : for email without angle brackets.
- localpart : for the part before the @ sign out of trimmed email

Mentored-by: Christian Couder <redacted>
Mentored-by: Heba Waly <redacted>
Signed-off-by: Hariom Verma <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-for-each-ref.txt
ref-filter.c
t/t6300-for-each-ref.sh
git clone https://git.99rst.org/PROJECT