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

Re: Check out git-author

From
Torsten Bögershausen <tboegi@web.de>
Date
Sep 8, 2014, 07:16 UTC
Message-ID
<540D57C4.7000602@web.de>
In-Reply-To
<20140908051956.GA8987@peff.net>
On 09/08/2014 07:19 AM, Jeff King wrote:
Show 5 quoted lines
> Have you tried "git log -L 2235,2235:fs/ext4/mballoc.c --
> fs/ext4/mballoc.c"? Can you compare your approach to that of "log -L"?
>
> -Peff
>
Nice, but it doesn't seem to work 100 % (?)

tb@linux:~/projects/git/git.pu/t$ git log t3910-mac-os-precompose.sh | grep "^commit" commit 1265886303778b5a2631c41c6ee61094c5fda7b0 commit a4cf6b4b91835c1d8d13ebb5cf3ce9241e181f1b commit 750b2e4785e5956122b3c565af65eb1929714fba commit 92b0c8bed0d3f6ed5442e3ffa178413772faa31b commit 308566eb8b35b9279082bd5398c4252169d52b22 commit 76759c7dff53e8c84e975b88cb8245587c14c7ba

I'm quite sure that line 15 looks like this in the original commit 76759c7d:
">junk/"$Adiarnfc" &&"
But it is not shown:
tb@linux:~/projects/git/git.pu/t$ git log -L 
15,15:t3910-mac-os-precompose.sh -- t3910-mac-os-precompose.sh
commit 308566eb8b35b9279082bd5398c4252169d52b22
Author: Michael J Gruber <git@drmicha.warpmail.net>
Date:   Mon Jul 30 11:57:18 2012 +0200
     t3910: use the UTF8_NFD_TO_NFC test prereq
     Besides reusing the new test prerequisite, this fixes also the issue
     that the current output is not TAP compliant and produces the 
output "no
     reason given" [for skipping].
     Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
     Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/t/t3910-mac-os-precompose.sh b/t/t3910-mac-os-precompose.sh
--- a/t/t3910-mac-os-precompose.sh
+++ b/t/t3910-mac-os-precompose.sh
@@ -10,0 +15,1 @@
+
============================
But line 20 seems to work better (I shortened the output by using grep):

tb@linux:~/projects/git/git.pu/t$ git log -L 
20,20:t3910-mac-os-precompose.sh -- t3910-mac-os-precompose.sh | grep 
"^commit"
commit a4cf6b4b91835c1d8d13ebb5cf3ce9241e181f1b
commit 308566eb8b35b9279082bd5398c4252169d52b22
commit 76759c7dff53e8c84e975b88cb8245587c14c7ba
Previous: Jeff King
Message 3 of 3 in “Check out git-author”
  1. xmengSep 7, 2014
  2. Jeff KingSep 8, 2014
  3. Torsten BögershausenSep 8, 2014

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.