Uwe Brauer <o...@mat.ucm.es> writes: >> In Git it should work > > Well this does not work > > git init > echo "First" > test.org > git add -A test.org > git commit -a -m "First" > echo "Second" >> test.org > git commit -a -m "Second" > echo "Third" >> test.org > git commit -a -m "Third" > echo "Forth" >> test.org > git commit -a -m "Forth" > mv test.org testnew.org > git add -A > git commit -a -m "Renamed file test.org to testnew.org"
Indeed, that's because vc tries to get the previous revision by issuing git rev-list -2 HEAD -- testnew.org but testnew.org has no previous revision. :-( > I think I will bring up that subject on emacs devel. Maybe that could be fixed for the vc-annotate case because the previous revision is most probably already in the "git blame" output which lead to the current annotate buffer. But that's of course an edge case which doesn't really fit in the general vc architecture... Bye, Tassilo