view move-if-change @ 109253:a41a9e7bfad8

Fix vc-annotate-show-changeset-diff-revision-at-line for git. * lisp/vc-annotate.el (vc-annotate-show-diff-revision-at-line-internal): Do not pass the file name to the 'previous-revision call when we don't want a file diff. (Bug#6489)
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 21 Jun 2010 19:08:55 -0700 (2010-06-22)
parents 354e0c45cedf
children 14a97ab281d5
line wrap: on
line source
#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi