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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Marius Storm-Olsen <marius@...>, Johannes Sixt <j.sixt@...>, git <git@...>
Date: Tuesday, June 10, 2008 - 6: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, 4:10 am)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Johannes Schindelin, (Tue Jun 10, 11:34 am)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Junio C Hamano, (Tue Jun 10, 6:25 pm)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Marius Storm-Olsen, (Wed Jun 11, 2:01 am)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Johannes Schindelin, (Wed Jun 11, 3:06 pm)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Marius Storm-Olsen, (Thu Jun 12, 5:03 am)
Re: [PATCH 0/2] Respecting core.autocrlf when showing objects, Marius Storm-Olsen, (Thu Jun 12, 4:16 pm)