Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mtg@gnu.org>2016-10-31 00:18:13 -0400
committerMike Gerwitz <mtg@gnu.org>2016-10-31 00:18:39 -0400
commit48ceda94bb157ad74e701144991d1821d67ee740 (patch)
tree5e36978d2c43694b5c0f36f884e6362a628d7f49
parentf3bba8812cb47b7cbc013b4eb844b46be2354f4a (diff)
downloadrepo2html-48ceda94bb157ad74e701144991d1821d67ee740.tar.gz
repo2html-48ceda94bb157ad74e701144991d1821d67ee740.tar.bz2
repo2html-48ceda94bb157ad74e701144991d1821d67ee740.zip
Handle mailmap in git listing
This change was made a long while back, but was apparently never committed.
-rwxr-xr-xgit/list10
1 files changed, 8 insertions, 2 deletions
diff --git a/git/list b/git/list
index 65488ac..b437b45 100755
--- a/git/list
+++ b/git/list
@@ -20,6 +20,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
-# add an extra newline to prevent read from getting confused
+# Add an extra newline to prevent read from getting confused. The dir
+# change is because Git has trouble finding .mailmap.
t=$'\t'
-git log --first-parent --pretty="format:%H$t%h$t%at$t%f$t%aN$t%aE$t%s" && echo
+(
+ cd "$GIT_DIR/.." \
+ && git log --use-mailmap \
+ --first-parent \
+ --pretty="format:%H$t%h$t%at$t%f$t%aN$t%aE$t%s" && echo
+)