auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dependency on tex-buf.el


From: Tassilo Horn
Subject: Re: Dependency on tex-buf.el
Date: Mon, 21 Mar 2022 06:59:28 +0100
User-agent: mu4e 1.7.10; emacs 29.0.50

Uwe Brauer <oub@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]