Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6063241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:08:36+00:00 2026-05-23T09:08:36+00:00

I want a way to list all git authors that Is only since a

  • 0

I want a way to list all git authors that

  1. Is only since a given commit.
  2. Is unique.

These two are easy, and I’ve seen some solutions to this online, most using git log --format. But none that I saw fits the additional requirements:

  1. Is ordered by commit date. So if John Smith committed before Aaron Meurer, his name should appear before mine (I’m Aaron Meurer).
  2. Respects .mailmap. As far as I can tell, only git shortlog does this, and it gives a bunch of extra stuff that I don’t want. But maybe I’m wrong. Or maybe those of you who are more handy with sed and friends than I am would just use that.

(by the way, how do I make Markdown not restart the numbering?)

I also want a way to order it by last name, but this is relatively easy.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:08:36+00:00Added an answer on May 23, 2026 at 9:08 am

    The following format specifiers will solve your second concern:

    %aN: author name (respecting .mailmap)
    %aE: author email (respecting .mailmap)
    %cN: committer name (respecting .mailmap)
    %cE: committer email (respecting .mailmap)

    So discounting the duplicate author part, you want something like

    git log <commit>.. --format="%aN <%aE>" --reverse
    

    I suspect you could pipe it through something that does a hash-table based deduplication, a perl oneliner would be trivial:

    git log <commit>.. --format="%aN <%aE>" --reverse | perl -e 'my %dedupe; while (<STDIN>) { print unless $dedupe{$_}++}'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to list all elements that contain two or more events
Is there any way to list all the files that have changed between two
I want to know if there is any way to list (get) all the
I want to get a list of all the branches in a Git repository
I have a List of MyType1 objects. I want to copy all these objects
I want to list all objects in R that start with something, like starts
I want a way to list files in a directory and putting a check
Is there a way to dynamically create a selectItem list? I dont really want
Is there any way to, with help of Javascript, list all cookies associated with
I am looking for a way to list all the files in a directory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.