From: Linus Torvalds Date: Mon, 27 Feb 2006 19:56:07 GMT Subject: Re: [PATCH] gitweb: Enable tree (directory) history display Message-ID: In-Reply-To: <20060227185554.75822.qmail@web31810.mail.mud.yahoo.com> On Mon, 27 Feb 2006, Luben Tuikov wrote: > > This patch allows history display of whole trees/directories, > a la "git-rev-list HEAD ", 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