Update documentation of fetch-pack, push and send-pack
[gitweb.git] / fetch-pack.c
index c527bf9e9621519f72e1039313666a03ee12c586..726140a1a57a00cdd000dabad2a9a3ef37acd79a 100644 (file)
@@ -12,7 +12,7 @@ static int verbose;
 static int fetch_all;
 static int depth;
 static const char fetch_pack_usage[] =
-"git-fetch-pack [--all] [-q] [-v] [-k] [--thin] [--exec=upload-pack] [--depth=<n>] [host:]directory <refs>...";
+"git-fetch-pack [--all] [--quiet|-q] [--keep|-k] [--thin] [--exec=<git-upload-pack>] [--depth=<n>] [-v] [<host>:]<directory> [<refs>...]";
 static const char *exec = "git-upload-pack";
 
 #define COMPLETE       (1U << 0)
@@ -625,6 +625,8 @@ static int remove_duplicates(int nr_heads, char **heads)
        return dst;
 }
 
+static struct lock_file lock;
+
 int main(int argc, char **argv)
 {
        int i, ret, nr_heads;
@@ -632,7 +634,6 @@ int main(int argc, char **argv)
        int fd[2];
        pid_t pid;
        struct stat st;
-       struct lock_file lock;
 
        setup_git_directory();