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

Re: [PATCH] gitweb: Teach "a=blob" action to be more lenient about blob/file mime type

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 9, 2007, 10:06 UTC
Message-ID
<200712091106.14124.jnareb@gmail.com>
In-Reply-To
<7vk5notub9.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> Jakub Narebski <jnareb@gmail.com> writes:
>> +		}
>> +	} els
> There is a "Huh?" on the last line, though.
I'm sorry for this wart. Can you correct this, or should I send
amended patch?
 
Show 5 quoted lines
>> P.S. BTW is there some plumbing for scripts to help with
>> gitattributes, for example showing all gitattributes (or status of
>> selected attributes) for given path?
> 
> $ git grep gitattributes Documentation | grep -i display
Thanks. 

But as far as I can see you cannot specify _revision_, i.e. git-check-attr operates _only_ on working directory, and can be run only in a work tree. For gitweb I'd like it to run in bare repository, and check $GIT_DIR/info/attributes and <revision>:[*/].gitattributes

-- 
Jakub Narebski
Poland
Previous: Junio C Hamano
Message 3 of 3 in “gitweb: Teach "a=blob" action to be more lenient about blob/file mime type”
  1. gitweb: Teach "a=blob" action to be more lenient about blob/file mime typeJakub Narebski, Dec 8, 2007
  2. Junio C HamanoDec 9, 2007
  3. Jakub NarebskiDec 9, 2007

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.