~ubuntu-branches/debian/stretch/gource/stretch

« back to all changes in this revision

Viewing changes to src/formats/commitlog.cpp

  • Committer: Package Import Robot
  • Author(s): Andrew Caudwell
  • Date: 2014-04-15 16:30:17 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20140415163017-ucdr2josj1spzrga
Tags: 0.41-1
* New upstream release
* Made VCS URIs canonical
* Changed watch file to look at Github for releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
}
123
123
 
124
124
bool RCommitLog::checkFormat() {
125
 
 
126
125
    if(!success) return false;
127
126
 
128
127
    //read a commit to see if the log is in the correct format
208
207
    return false;
209
208
}
210
209
 
 
210
void RCommitLog::bufferCommit(RCommit& commit) {
 
211
    lastCommit = commit;
 
212
    buffered = true;
 
213
}
 
214
 
211
215
bool RCommitLog::nextCommit(RCommit& commit, bool validate) {
212
216
 
213
217
    if(buffered) {
233
237
    return false;
234
238
}
235
239
 
 
240
bool RCommitLog::hasBufferedCommit() {
 
241
    return buffered;
 
242
}
 
243
 
236
244
//create temp file
237
245
void RCommitLog::createTempLog() {
238
246
 
239
247
    std::string tempdir;
240
248
 
241
249
#ifdef _WIN32
242
 
    DWORD tmplen = GetTempPath(0, "");
 
250
    DWORD tmplen = GetTempPath(0, 0);
243
251
 
244
252
    if(tmplen == 0) return;
245
253