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

Re: git log --author=me

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Nov 3, 2015, 10:26 UTC
Message-ID
<56388BEC.7050207@drmicha.warpmail.net>
In-Reply-To
<CACsJy8D83-Mg8UHA-=CPJ3z37CQTn7USjEbfO8QcU1T+=tS0Bg@mail.gmail.com>
Duy Nguyen venit, vidit, dixit 02.11.2015 19:37:
Show 16 quoted lines
> On Mon, Nov 2, 2015 at 2:27 PM, Harry Jeffery <harry@exec64.co.uk> wrote:
>> Hi,
>>
>> I've written a patch that allows `me` to be used as shorthand for
>> $(user.name) or $(user.email) in the `--author` and `--commiter` fields.
>>
>> The purpose being to make finding your own commits quicker and easier:
>>     git log --author=me
>>
> 
> It would be even cooler if it accepts mail aliases, then you can
> define "me" to your address and also have shortcuts to a few of your
> best friends. Though as Andreas pointed out --author is not a good fit
> because it accepts regex, and you can't use --mine either, so more
> work..
> 
Alternatively: How about teaching git-completion to complete the
argument to --author? Expensive, I know, but faster than typing it out
or realising "Michael J" is not as unique as you think ;)
Michael
Previous: Duy NguyenNext: Junio C Hamano
Message 6 of 7 in “git log --author=me”
  1. Harry JefferyNov 2, 2015
  2. Andreas SchwabNov 2, 2015
  3. Junio C HamanoNov 2, 2015
  4. Matthieu MoyNov 2, 2015
  5. Duy NguyenNov 2, 2015
  6. Michael J GruberNov 3, 2015
  7. Junio C HamanoNov 3, 2015

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.