Teach fast-import to import subtrees named by tree id
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 1 Jul 2010 03:18:19 +0000 (22:18 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Jul 2010 19:11:33 +0000 (12:11 -0700)
To simulate the svn cp command, it would be very useful to be
replace an arbitrary file in the current revision by an
arbitrary directory from a previous one. Modify the filemodify
command to allow that:

M 040000 <tree id> pathname

This would be most useful in combination with a facility to
print the commit ids for new revisions as they are written.

Cc: Shawn O. Pearce <spearce@spearce.org>
Cc: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found