>> Hi, I'm testing the fugitive plugin for the time being and I've come
>> accross the following problems:
>> 1)
>> - If I add and commit a file called a.txt with the text "aaa"
>> - and then change the text to "bbb" and save it and commit it
>> - and then change the text to "ccc" and save it (without commiting)
>> - and then do the Gdiff ... I get to compare the "bbb" against "ccc"
>>
>> Why? Shouldn't Gdiff only compare values that form the actual
>> revisions - so in this case the "aaa" against "bbb", since the "ccc"
>> is not part of a revision yet - because it has not been commited to
>> the repository.
I don't use fugitive, so don't know the rest, but this is the same way
`git diff` behaves. Without arguments it compares what's in the working
copy to HEAD. After just committing everything in the repository, `git
diff` reports no changes. Maybe :Gdiff has a quick way to specify this
range, which would give what you're looking for:
HEAD~1..HEAD
On Fri, 8 Jul 2011, Tony Mechelynck wrote:
>
> I don't know fugitive, but from your post I gather that it's some kind
> of Vim plugin to control a version control system.
>
> Which VCS is fugitive using?
It's in the name ^^^ (git).
--
Best,
Ben
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment