I have the following configuration in my ~ / .gitconfig
[diff] tool = vimdiff [diftool] prompt = false
When I run git diffftool, it opens buffers in read-only mode by default. I use it to check the changes before committing and say that I find a small change, for example, a missing line that I did not delete, or the JS console.log instruction, I have to leave the tool and open the file and make changes. I would really like the way to make changes inside the visual comparison window itself.
http://gitlog.wordpress.com/2011/03/30/git-1-7-4-2/ says that "git difftool" did not tell (g) vimdiff that the files it reads are openable read-only. "From this, I believe this read-only behavior was desirable.
I am curious to know why the default is read-only behavior in diffftool.
Is there a way to configure diffftool to read / write?
From git, vimdiff and dirdiff , I can see that a hidden plugin for vim and git diffall script is also available as an alternative to simplify this process of analyzing the differences. Will the use of lurking features open up the possibility of using the reading / writing mode of visual differences?
source share