Found a way of detecting if the file needs to be written. If it's a normal buffer...
commit399507002f69972880bb3719132e25645482f641
authorEustaquio Rangel <taq@eustaquiorangel.com>
Fri, 20 Jun 2008 00:14:23 +0000 (19 21:14 -0300)
committerEustaquio Rangel <taq@eustaquiorangel.com>
Fri, 20 Jun 2008 00:14:23 +0000 (19 21:14 -0300)
tree99b03c811f7dba930316440437848f5fb17691a2
parente028790f61761791e0105b0bee80a361ef2885fe
Found a way of detecting if the file needs to be written. If it's a normal buffer, it is written, if not, the GitBranchInfoWriteCheck() skip it. Useful with other scriptsthat use temporary buffers like VCSCommand.
git-branch-info.vim