CVSTrac Legacy Code

Check-in [488fc0db1e]
Login

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

Overview
Comment:(#781) don't run the external diff filter if the output is supposed to be _raw_
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:488fc0db1ed9b02a39d07119168e13b4413c7670
User & Date: cpb 2009-02-19 02:33:58
Context
2009-02-19
02:59
(#783) when appending a ticket comment, write an HTML anchor based on the change time so we can find it later. check-in: 7c22978975 user: cpb tags: trunk
02:33
(#781) don't run the external diff filter if the output is supposed to be _raw_ check-in: 488fc0db1e user: cpb tags: trunk
2009-01-17
16:31
(#777) an index on filechng(vers) speeds the update quite a bit for larger projects. check-in: c6b04561ea user: cpb tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to git.c.

790
791
792
793
794
795
796
797
798
799
800
801
802
803



804
805
806
807
808
809
810
  azSubst[5] = azRev[0];
  azSubst[6] = "RP";
  azSubst[7] = db_config("cvsroot", "");
  azSubst[8] = "V";
  azSubst[9] = azRev[0];
  azSubst[10] = 0;
			  
  zTemplate = db_config(
    "filediff", 
    OS_VAL( "GIT_DIR='%RP' git-diff --full-index -t "
              "-p -r '%V1' '%V2' -- '%F' 2>/dev/null",
            "GIT_DIR=\"%RP\" git-diff --full-index -t "
              "-p -r \"%V1\" \"%V2\" -- \"%F\" 2>NUL" )
          );



  zCmd = subst(zTemplate, azSubst);
  
  db_query_free(azRev);
  
  in = popen(zCmd, "r");
  free(zCmd);
  if( in==0 ) return -1;







|
<



|
|
>
>
>







790
791
792
793
794
795
796
797

798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
  azSubst[5] = azRev[0];
  azSubst[6] = "RP";
  azSubst[7] = db_config("cvsroot", "");
  azSubst[8] = "V";
  azSubst[9] = azRev[0];
  azSubst[10] = 0;
			  
  zTemplate = 

    OS_VAL( "GIT_DIR='%RP' git-diff --full-index -t "
              "-p -r '%V1' '%V2' -- '%F' 2>/dev/null",
            "GIT_DIR=\"%RP\" git-diff --full-index -t "
              "-p -r \"%V1\" \"%V2\" -- \"%F\" 2>NUL" );
  if( !bRaw ){
    /* Only use external diff filter if bRaw is false */
    zTemplate = db_config( "filediff", zTemplate );
  }
  zCmd = subst(zTemplate, azSubst);
  
  db_query_free(azRev);
  
  in = popen(zCmd, "r");
  free(zCmd);
  if( in==0 ) return -1;