Fossil

Changes On Branch vpatch-binary
Login

Changes On Branch vpatch-binary

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch vpatch-binary Excluding Merge-Ins

This is equivalent to a diff from 161958a49b to 39d146166a

2019-10-01
13:44
Several small tweaks to defcsp.md ... (check-in: e73901f15c user: wyoung tags: trunk)
07:13
Enable client to control how much time skew is allowed before warning. This can be useful if one is not in control of the time on the remote server. Patch rejected because accurate timestamps are crucial. ... (Closed-Leaf check-in: 307f7642b5 user: andybradford tags: time-skew-setting)
2019-09-30
16:11
Add 'binary' query parameter to the 'vpatch' web page. ... (Closed-Leaf check-in: 39d146166a user: mistachkin tags: vpatch-binary)
16:08
Update custom Makefile for MinGW. ... (check-in: 161958a49b user: mistachkin tags: trunk)
2019-09-29
00:20
Added "Alternatives" section to shunning.wiki. ... (check-in: 004c550724 user: wyoung tags: trunk)

Changes to src/diffcmd.c.
960
961
962
963
964
965
966





967
968
969
970
971
972

973
974
975
976
977
978
979
    fossil_free(pFileDir);
  }
}

/*
** WEBPAGE: vpatch
** URL: /vpatch?from=FROM&to=TO





**
** Show a patch that goes from check-in FROM to check-in TO.
*/
void vpatch_page(void){
  const char *zFrom = P("from");
  const char *zTo = P("to");

  login_check_credentials();
  if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
  if( zFrom==0 || zTo==0 ) fossil_redirect_home();

  cgi_set_content_type("text/plain");
  diff_two_versions(zFrom, zTo, 0, 0, 0, DIFF_VERBOSE, 0);
}







>
>
>
>
>






>





|

960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
    fossil_free(pFileDir);
  }
}

/*
** WEBPAGE: vpatch
** URL: /vpatch?from=FROM&to=TO
**
** Query parameters:
**
**   binary=1        Attempt to compute diff for binary files as well.
**
**
** Show a patch that goes from check-in FROM to check-in TO.
*/
void vpatch_page(void){
  const char *zFrom = P("from");
  const char *zTo = P("to");
  const char *zBinary = P("binary");
  login_check_credentials();
  if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
  if( zFrom==0 || zTo==0 ) fossil_redirect_home();

  cgi_set_content_type("text/plain");
  diff_two_versions(zFrom, zTo, 0, 0, zBinary!=0, DIFF_VERBOSE, 0);
}