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

[BUG?] --boundary inconsistent with path limiting

From
Jeff King <peff@peff.net>
Date
Aug 4, 2016, 19:40 UTC
Message-ID
<20160804194043.z4nbosr4wpbzljdl@sigill.intra.peff.net>
Let's say I have a simple repo with three paths:
	git init -q repo
	cd repo
	for i in a b c
	do
		echo content >$i.t
		git add $i.t
		git commit -qm $i &&
		git tag $i
	done

If I ask for the top 2 commits, with the third as a boundary, I get the expected output:

  $ git log --format='%m %s' --boundary a..c
  > c
  > b
  - a
If I limit the path to "b.t", I get:
  $ git log --format='%m %s' --boundary a..c -- b.t
  > b
  - a

That makes sense to me. We omit "c" because it doesn't touch "b.t", and obviously include "b", which does. We _do_ include the boundary commit, even though it doesn't touch the path, which makes sense to me. It remains a boundary whether it touched the path or not, and without it, we get no boundary at all.

But now if I limit to "a.t", I get no output at all:
  $ git log --format='%m %s' --boundary a..c -- a.t
whereas I would have expected "- a" to show the boundary.
Is this a bug, or are my expectations wrong?
-Peff
Next: Jeff King
Message 1 of 3 in “[BUG?] --boundary inconsistent with path limiting”
  1. Jeff KingAug 4, 2016
  2. Jeff KingAug 4, 2016
  3. Junio C HamanoAug 4, 2016

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.