Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  cvsserver: Handle re-added files correctly
  Fix compilation of test-delta
  • Loading branch information
Junio C Hamano committed May 2, 2007
2 parents b3431bc + 7a33b0b commit 6644d2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -2519,7 +2519,7 @@ sub update
#$log->debug("ADDED $name");
$head->{$name} = {
name => $name,
revision => 1,
revision => $head->{$name}{revision} ? $head->{$name}{revision}+1 : 1,
filehash => $hash,
commithash => $commit->{hash},
modified => $commit->{date},
Expand Down
5 changes: 3 additions & 2 deletions test-delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

#include "git-compat-util.h"
#include "delta.h"
#include "cache.h"

static const char usage[] =
static const char usage_str[] =
"test-delta (-d|-p) <from_file> <data_file> <out_file>";

int main(int argc, char *argv[])
Expand All @@ -22,7 +23,7 @@ int main(int argc, char *argv[])
unsigned long from_size, data_size, out_size;

if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) {
fprintf(stderr, "Usage: %s\n", usage);
fprintf(stderr, "Usage: %s\n", usage_str);
return 1;
}

Expand Down

0 comments on commit 6644d2f

Please sign in to comment.