Code

vc-git.el: Take into account the destination name in vc-checkout.
authorAlexandre Julliard <julliard@winehq.org>
Fri, 26 Jan 2007 10:57:50 +0000 (11:57 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 26 Jan 2007 23:38:27 +0000 (15:38 -0800)
commit40d6dc0f9d4045d237f8334224777922789c6d04
tree159905837b582fcba60b7acb9a5592ae568adf85
parent7f9acb2a16473e5ba6d44231d2fc844ca8bb9817
vc-git.el: Take into account the destination name in vc-checkout.

This is necessary for vc-version-other-window. Based on a patch by Sam
Vilain <sam.vilain@catalyst.net.nz>.

Currently, the vc-git-checkout function uses `git checkout' to fetch a
file from the git repository to the working copy.  However, it is
completely ignoring the input argument that specifies the destination
file.  `git-checkout' does not support specifying this, so we have to
use `git-cat-file', capture the output in a buffer and then save it.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/emacs/vc-git.el