mirror of
https://github.com/docker/cli.git
synced 2026-01-25 03:42:05 +03:00
Update .mailmap and add gitdm configuration. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com> Upstream-commit: bf6d52bba16072d0c0f85782a5907acad4067789 Component: engine
17 lines
376 B
Bash
Executable File
17 lines
376 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# This script generates a gitdm compatible email aliases file from a git
|
|
# formatted .mailmap file.
|
|
#
|
|
# Usage:
|
|
# $> ./generate_aliases <mailmap_file> > aliases
|
|
#
|
|
|
|
cat $1 | \
|
|
grep -v '^#' | \
|
|
sed 's/^[^<]*<\([^>]*\)>/\1/' | \
|
|
grep '<.*>' | sed -e 's/[<>]/ /g' | \
|
|
awk '{if ($3 != "") { print $3" "$1 } else {print $2" "$1}}' | \
|
|
sort | uniq
|