Timeline for Echoing from a variable in a specific part of a string
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 23, 2019 at 6:31 | comment | added | Jake Ireland | Thank you @cas, your addition to xwindows' answer worked for me. Thank you to xwindows also! Works well now. | |
| Sep 23, 2019 at 5:39 | vote | accept | Jake Ireland | ||
| Sep 23, 2019 at 2:47 | comment | added | cas | BTW, you could use GNU uniq if you use e.g. -w 7 (aka --check-chars=7) option, so that it only uses the commit id for uniqueness. Still overly complicated, and probably not worth doing. using awk or something to implement a custom uniq would work too. | |
| Sep 23, 2019 at 2:37 | comment | added | cas | +1. This works too, and is a little simpler: git log "--pretty=tformat:%h <%an> %s" | perl -pe ' if(/<([^>]*)>/) { if ($1 eq "Joe Average") { s/<$1>/\e[1m\e[36m$&\e[39m\e[0m/; } else { s/<$1>/\e[1m\e[34m$&\e[39m\e[0m/; } }' | |
| Sep 22, 2019 at 13:32 | history | answered | xwindows -on strike- | CC BY-SA 4.0 |