Thread (7 messages) flat view 7 messages, 6 authors, 2016-06-15

Re: Getting a file revision

From: Jerome Lovy <hidden>
Date: 2016-06-15 22:43:30

Possibly related (same subject, not in this thread)

Hi,

Junio C Hamano wrote:
"Bahadir Balban" [off-list ref] writes:
quoted
This might sound like a novice question but anyway: I sometimes have a
need to quickly recover an old revision of a file just to check
something or copy some code from it.
$ git show -p $commit:$path >$path.old-version
Is "-p" a short version of "--pretty" ?

(I do not see it documented in the man-page and assume it is not the 
"-p" applicable to git-diff-tree, is it ?)

Thanks,
Jérôme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help