Thread (4 messages) 4 messages, 2 authors, 2016-06-15

Re: [PATCH] git-cat-file.txt: Document --textconv

flat view

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:49:00

Possibly related (same subject, not in this thread)

Michael J Gruber [off-list ref] writes:
Signed-off-by: Michael J Gruber <redacted>
---
This formulation is based on my understanding that you can't cat-file
 --textconv something in the index or worktree.
Actually, you can't textconv from the worktree, but you can from the
index, saying

git cat-file --textconv :path/to/file

(the :<path> syntax is not specific here, you can use it in other Git
commands)
quoted hunk
+--textconv::
+	Show the content as transformed by a textconv filter. In this case,
+	<object> has be of the form <treeish:path>, with treeish defaulting to
+	HEAD.
So the "defaulting to HEAD" is incorrect. Also, I prefer
<treeish>:<path> to <treeish:path>, to make it clear the : is actually
a :.

What about this:

--textconv:: 
	Show the content as transformed by a textconv filter. In this
	case, <object> has be of the form <treeish>:<path>, or :<path>
	to run the filter on the file <path> stored in the index.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help