$treeview $search $mathjax $extrastylesheet
librsync  2.3.0
$projectbrief
$projectbrief
$searchbox

rdiff.c File Reference

Command-line network-delta tool. More...

Go to the source code of this file.

Enumerations

enum  { OPT_GZIP = 1069, OPT_BZIP2 }

Functions

static void rdiff_usage (const char *error,...)
static void rdiff_no_more_args (poptContext opcon)
static void bad_option (poptContext opcon, int error)
static void help (void)
static void rdiff_show_version (void)
static void rdiff_options (poptContext opcon)
static rs_result rdiff_sig (poptContext opcon)
 Generate signature from remaining command line arguments.
static rs_result rdiff_delta (poptContext opcon)
static rs_result rdiff_patch (poptContext opcon)
static rs_result rdiff_action (poptContext opcon)
int main (const int argc, const char *argv[])

Variables

static int block_len = 0
static int strong_len = 0
static int show_stats = 0
static int bzip2_level = 0
static int gzip_level = 0
static int file_force = 0
char * rs_hash_name
char * rs_rollsum_name

Detailed Description

Command-line network-delta tool.

Todo:
Add a -z option to gzip/gunzip patches. This would be somewhat useful, but more importantly a good test of the streaming API. Also add -I for bzip2.
Todo:
If built with debug support and we have mcheck, then turn it on. (Optionally?)
Todo:
popt doesn't handle single dashes very well at the moment: we'd like to use them as arguments to indicate stdin/stdout, but it turns them into options. I sent a patch to the popt maintainers; hopefully it will be fixed in the future.
Todo:
Add an option for delta to check whether the files are identical.

Definition in file rdiff.c.


Function Documentation

static rs_result rdiff_sig ( poptContext  opcon  )  [static]

Generate signature from remaining command line arguments.

Definition at line 193 of file rdiff.c.