CVSTrac Legacy Code

Check-in [e811e9226a]
Login

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

Overview
Comment:(#798) Remove trailing spaces from rlog Author/Committer names, drop Commiter info if is the person as Author.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e811e9226ad2ca1bedc050e38ad1e7181a52d3e2
User & Date: ono 2009-05-14 12:01:36
Context
2009-05-14
12:11
(#534, #567) ensure we are not sending Content-Length with value of 0 (zero), that may happen on some actions and confuse browsers. check-in: 73773e45d3 user: ono tags: trunk
12:01
(#798) Remove trailing spaces from rlog Author/Committer names, drop Commiter info if is the person as Author. check-in: e811e9226a user: ono tags: trunk
11:48
(#797) download current folder as tarball feature, structure for all SCM, Subversion implementation trough =svntar=. check-in: 0538777a0b user: ono tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to git.c.

124
125
126
127
128
129
130



131
132
133
134
135
136
137
        azParents[nParent] = 0;

      }else if( 0==strncmp(zLine,"author ",7) ){
        sscanf(&zLine[7],"%90[^<]%*[^>]>",zAuthor);
      }else if( 0==strncmp(zLine,"committer ",10) ){
        sscanf(&zLine[10],"%90[^<]%*[^>]> %d",zCommitter,nDate);
      }



    }else{
      int len = strlen(zLine);
      if( len+nComment >= sizeof(zComment) ) break;
      strcpy(&zComment[nComment], zLine);
      nComment += len;
    }
  }







>
>
>







124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
        azParents[nParent] = 0;

      }else if( 0==strncmp(zLine,"author ",7) ){
        sscanf(&zLine[7],"%90[^<]%*[^>]>",zAuthor);
      }else if( 0==strncmp(zLine,"committer ",10) ){
        sscanf(&zLine[10],"%90[^<]%*[^>]> %d",zCommitter,nDate);
      }
      { char *zSpace = zAuthor+strlen(zAuthor)-1; while( zSpace >= zAuthor && isspace(*zSpace) ){ *(zSpace--) = 0; } }
      { char *zSpace = zCommitter+strlen(zCommitter)-1; while( zSpace >= zCommitter && isspace(*zSpace) ){ *(zSpace--) = 0; } }
      if( *zCommitter && *zAuthor && !strcmp(zCommitter, zAuthor) ){ *zCommitter = 0; }
    }else{
      int len = strlen(zLine);
      if( len+nComment >= sizeof(zComment) ) break;
      strcpy(&zComment[nComment], zLine);
      nComment += len;
    }
  }