git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to determine the number of unique recent committers on a branch?

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Mar 23, 2022, 22:14 UTC
Message-ID
<CAHGBnuMjRNiHr+V7Vc6N72CFbtVDmTapf3w1vn=1TOPB89W0ag@mail.gmail.com>
In-Reply-To
<220323.86bkxwogxs.gmgdl@evledraar.gmail.com>

On Wed, Mar 23, 2022 at 3:57 PM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

> But you *can* do by grabbing the epoch from the tip commit and doing
> some basic shell-math on it:
>
>     git log --since=$(($(git log --oneline -1 --date=unix --pretty=format:%ad origin/master) - $((60*60*24*7*2)) )) origin/master
Thanks, that works!

However, as --since works on the commit date, shouldn't it also be %cd instead of %ad in the format string for consistency?

-- 
Sebastian Schuberth
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 5 of 6 in “How to determine the number of unique recent committers on a branch?”
  1. Sebastian SchuberthMar 23, 2022
  2. Ævar Arnfjörð BjarmasonMar 23, 2022
  3. Sebastian SchuberthMar 23, 2022
  4. Ævar Arnfjörð BjarmasonMar 23, 2022
  5. Sebastian SchuberthMar 23, 2022
  6. Junio C HamanoMar 23, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.