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

Re: [PATCH v7 7/8] blame: add a fingerprint heuristic to match ignored lines

From
Junio C Hamano <gitster@pobox.com>
Date
May 16, 2019, 07:49 UTC
Message-ID
<xmqqpnoi4z5x.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190515214503.77162-8-brho@google.com>
Barret Rhoden <brho@google.com> writes:
> From: Michael Platings <michael@platin.gs>
>
> +test_expect_success setup '
> +	{ for ((i=2;i<=$last_test;i++))
Crap.
What language are you writing this in?

Please make it a habit to try running the test suite with a shell that is *not* bash, after you are happy with your tests in bash, e.g.

	$ make SHELL_PATH=/bin/dash test
Thanks.
Show 14 quoted lines
> +	do
> +		# Append each line in a separate commit to make it easy to
> +		# check which original line the blame output relates to.
> +
> +		line_count=0 &&
> +		{ while IFS= read line
> +		do
> +			line_count=$((line_count+1)) &&
> +			echo "$line" >>"$i" &&
> +			git add "$i" &&
> +			test_tick &&
> +			GIT_AUTHOR_NAME="$line_count" git commit -m "$line_count"
> +		done } <"a$i"
> +	done } &&
Previous: Barret RhodenNext: Barret Rhoden
Message 9 of 15 in “blame: add the ability to ignore commits”
  1. 0/8 blame: add the ability to ignore commitsBarret Rhoden, May 15, 2019
  2. 1/8 fsck: rename and touch up init_skiplist()Barret Rhoden, May 15, 2019
  3. 2/8 Move oidset_parse_file() to oidset.cBarret Rhoden, May 15, 2019
  4. 3/8 blame: use a helper function in blame_chunk()Barret Rhoden, May 15, 2019
  5. 4/8 blame: add the ability to ignore commits and their changesBarret Rhoden, May 15, 2019
  6. 5/8 blame: add config options for the output of ignored or unblamable linesBarret Rhoden, May 15, 2019
  7. 6/8 blame: optionally track line fingerprints during fill_blame_origin()Barret Rhoden, May 15, 2019
  8. 7/8 blame: add a fingerprint heuristic to match ignored linesBarret Rhoden, May 15, 2019
  9. Junio C HamanoMay 16, 2019
  10. 7/8 blame: add a fingerprint heuristic to match ignored linesBarret Rhoden, May 16, 2019
  11. Junio C HamanoMay 17, 2019
  12. Michael PlatingsMay 20, 2019
  13. Barret RhodenMay 20, 2019
  14. Junio C HamanoMay 28, 2019
  15. 8/8 blame: use the fingerprint heuristic to match ignored linesBarret Rhoden, May 15, 2019

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.