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

Re: [ANNOUNCE] git related v0.3

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 27, 2021, 00:58 UTC
Message-ID
<60aeee9a14f13_770c208cd@natae.notmuch>
In-Reply-To
<CACBZZX6gOeTrLJwL-Zp5hEEbWCipioPgNKt7Tc41ixcQLQshiw@mail.gmail.com>
Ævar Arnfjörð Bjarmason wrote:
Show 7 quoted lines
> The general heuristic I use, which I've found to be much better than
> git-blame is:
> 
>  1. Find substrings of code I'm directly removing/altering, and
> functions I'm removing/altering
>  2. Do git log --reverse -p -S'<substr>' (maybe with -- file) for a
> list of substrings

v1.0 of git-related has a similar tool: git-who, which you can use to do precisely that:

  git who -S'<substr>'
Cheers.
-- 
Felipe Contreras
Previous: Felipe Contreras
Message 4 of 4 in “[ANNOUNCE] git related v0.3”
  1. Felipe ContrerasMay 19, 2014
  2. Ævar Arnfjörð BjarmasonMay 19, 2014
  3. Felipe ContrerasMay 19, 2014
  4. Felipe ContrerasMay 27, 2021

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.