anchor.diff:  
   SETLOCAL EnableDelayedExpansion
   
  -SET tfs="%VS110COMNTOOLS%\..\IDE\tf.exe"
  +SET git="%PROGRAMFILES(X86)%\Git\cmd\git.exe"
   SET db[1]="GSFSchema.db"
   SET db[2]="GSFSchema-InitialDataSet.db"
   SET db[3]="GSFSchema-SampleDataSet.db"
  
positive.code:             COPY /Y !prevdb! !db[%%i]!
          )
          
          FOR /f "tokens=2 delims=;" %%c IN ('CALL %tfs% localversions !script[%%i]!') DO SET changeset=%%c
          
          sqlite3 !db[%%i]! < !script[%%i]!
          sqlite3 !db[%%i]! "PRAGMA user_version = !changeset:~1!"
      )
      
      SET prevdb=!db[%%i]!
  
negative.code: FOR %%i IN (1 2 3) DO (
      IF NOT "!update!" == "true" (
          ECHO Checking for pending edits on !script[%%i]!...
          FOR /f "delims=" %%s IN ('CALL %git% status --short !script[%%i]!') DO SET status=%%s
          IF NOT "!status!" == "There are no pending changes." SET update=true
      )
      
      IF NOT "!update!" == "true" (
          ECHO Checking for changes to !script[%%i]! since last update...
          FOR /f "tokens=1" %%c IN ('CALL %git% log --max-count=1 --pretty=oneline !db[%%i]!') DO SET commit=%%c
          FOR /f %%c IN ('CALL %git% log --max-count=1 --pretty=oneline !commit!.. !script[%%i]!') DO SET update=true
      )
      
      IF "!update!" == "true" (
          ECHO Updating !db[%%i]!...
          
          FOR /f %%v IN ('CALL sqlite3 !db[%%i]! "PRAGMA user_version') DO SET /a version=%%v+1
          
          IF "!prevdb!" == "" (
              DEL !db[%%i]!
  