Re: [PATCH 0/2] Respecting core.autocrlf when showing objects

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Tuesday, June 10, 2008 - 3:25 pm

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:


I'd agree with your argument on general principle, but it might make sense
to give an option to let you say "here is a blob contents, and use the
attribute for this path to munge it out to the filesystem."  I am not sure
if that belongs to "git show" Porcelain, though.  It _could_ be more like:

        git checkout-blob $blob_sha1 $path

that (1) reads the blob object specified by its object name, (2)
grabs attribute for the $path, and (3) applies convert_to_worktree()
filtering given that attribute and deposits the results to $path.

Alternatively, the interface could be:

        git cat-file blob $blob_sha1 |
        git filter-blob --use-attr-for=$path >$path.old

so that you can then do:

	git diff --no-index $path.old $path

I dunno.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] Respecting core.autocrlf when showing objects, Marius Storm-Olsen, (Tue Jun 10, 1:10 am)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Johannes Schindelin, (Tue Jun 10, 8:34 am)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Junio C Hamano, (Tue Jun 10, 3:25 pm)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Marius Storm-Olsen, (Tue Jun 10, 11:01 pm)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Johannes Schindelin, (Wed Jun 11, 12:06 pm)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Marius Storm-Olsen, (Thu Jun 12, 2:03 am)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, J. Bruce Fields, (Thu Jun 12, 12:55 pm)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Marius Storm-Olsen, (Thu Jun 12, 1:16 pm)