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