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

Re: [PATCH] gitweb: Enable tree (directory) history display

From
Linus Torvalds <torvalds@osdl.org>
Date
Feb 27, 2006, 19:56 UTC
Message-ID
<Pine.LNX.4.64.0602271154400.22647@g5.osdl.org>
In-Reply-To
<20060227185554.75822.qmail@web31810.mail.mud.yahoo.com>
On Mon, 27 Feb 2006, Luben Tuikov wrote:
Show 6 quoted lines
> 
> This patch allows history display of whole trees/directories,
> a la "git-rev-list HEAD <dir or file>", but somewhat
> slower, since exported git repository doesn't have
> the files checked out so we have to use
> "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin \'$file_name\'"
No no. 
Just use 
	git-rev-list $hash -- $file_name
where the "--" is the important part.

As a usability-enhancer, you can leave out the "--" to separate filenames and other things, but when you leave out the "--", git requires that the filenames exist.

		Linus
Previous: Luben Tuikov
Message 2 of 2 in “gitweb: Enable tree (directory) history display”
  1. gitweb: Enable tree (directory) history displayLuben Tuikov, Feb 27, 2006
  2. Linus TorvaldsFeb 27, 2006

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.