t / t4100 / t-apply-1.patchon commit Merge branch 'ab/diff-tree-doc-fix' (9c90dab)
   1418aaf847a8b3ffffb4f777a2dd5262ca5ce0ef7 (from dc93841715dfa9a9cdda6f2c4a25eec831ea7aa0)
   2diff --git a/Documentation/git-rpull.txt b/Documentation/git-ssh-pull.txt
   3similarity index 90%
   4rename from Documentation/git-rpull.txt
   5rename to Documentation/git-ssh-pull.txt
   6--- a/Documentation/git-rpull.txt
   7+++ b/Documentation/git-ssh-pull.txt
   8@@ -1,21 +1,21 @@
   9-git-rpull(1)
  10-============
  11+git-ssh-pull(1)
  12+===============
  13 v0.1, May 2005
  14 
  15 NAME
  16 ----
  17-git-rpull - Pulls from a remote repository over ssh connection
  18+git-ssh-pull - Pulls from a remote repository over ssh connection
  19 
  20 
  21 
  22 SYNOPSIS
  23 --------
  24-'git-rpull' [-c] [-t] [-a] [-d] [-v] [--recover] commit-id url
  25+'git-ssh-pull' [-c] [-t] [-a] [-d] [-v] [--recover] commit-id url
  26 
  27 DESCRIPTION
  28 -----------
  29-Pulls from a remote repository over ssh connection, invoking git-rpush on
  30-the other end.
  31+Pulls from a remote repository over ssh connection, invoking git-ssh-push
  32+on the other end.
  33 
  34 OPTIONS
  35 -------
  36diff --git a/Documentation/git-rpush.txt b/Documentation/git-ssh-push.txt
  37similarity index 71%
  38rename from Documentation/git-rpush.txt
  39rename to Documentation/git-ssh-push.txt
  40--- a/Documentation/git-rpush.txt
  41+++ b/Documentation/git-ssh-push.txt
  42@@ -1,19 +1,19 @@
  43-git-rpush(1)
  44-============
  45+git-ssh-push(1)
  46+===============
  47 v0.1, May 2005
  48 
  49 NAME
  50 ----
  51-git-rpush - Helper "server-side" program used by git-rpull
  52+git-ssh-push - Helper "server-side" program used by git-ssh-pull
  53 
  54 
  55 SYNOPSIS
  56 --------
  57-'git-rpush'
  58+'git-ssh-push'
  59 
  60 DESCRIPTION
  61 -----------
  62-Helper "server-side" program used by git-rpull.
  63+Helper "server-side" program used by git-ssh-pull.
  64 
  65 
  66 Author
  67diff --git a/Documentation/git.txt b/Documentation/git.txt
  68--- a/Documentation/git.txt
  69+++ b/Documentation/git.txt
  70@@ -148,7 +148,7 @@ link:git-resolve-script.html[git-resolve
  71 link:git-tag-script.html[git-tag-script]::
  72        An example script to create a tag object signed with GPG
  73 
  74-link:git-rpull.html[git-rpull]::
  75+link:git-ssh-pull.html[git-ssh-pull]::
  76        Pulls from a remote repository over ssh connection
  77 
  78 Interogators:
  79@@ -156,8 +156,8 @@ Interogators:
  80 link:git-diff-helper.html[git-diff-helper]::
  81        Generates patch format output for git-diff-*
  82 
  83-link:git-rpush.html[git-rpush]::
  84-       Helper "server-side" program used by git-rpull
  85+link:git-ssh-push.html[git-ssh-push]::
  86+       Helper "server-side" program used by git-ssh-pull
  87 
  88 
  89 
  90diff --git a/Makefile b/Makefile
  91--- a/Makefile
  92+++ b/Makefile
  93@@ -30,7 +30,7 @@ PROG=   git-update-index git-diff-files
  94        git-checkout-cache git-diff-tree git-rev-tree git-ls-files \
  95        git-check-files git-ls-tree git-merge-base git-merge-cache \
  96        git-unpack-file git-export git-diff-cache git-convert-cache \
  97-       git-http-pull git-rpush git-rpull git-rev-list git-mktag \
  98+       git-http-pull git-ssh-push git-ssh-pull git-rev-list git-mktag \
  99        git-diff-helper git-tar-tree git-local-pull git-write-blob \
 100        git-get-tar-commit-id git-mkdelta git-apply git-stripspace
 101 
 102@@ -105,8 +105,8 @@ git-diff-cache: diff-cache.c
 103 git-convert-cache: convert-cache.c
 104 git-http-pull: http-pull.c pull.c
 105 git-local-pull: local-pull.c pull.c
 106-git-rpush: rsh.c
 107-git-rpull: rsh.c pull.c
 108+git-ssh-push: rsh.c
 109+git-ssh-pull: rsh.c pull.c
 110 git-rev-list: rev-list.c
 111 git-mktag: mktag.c
 112 git-diff-helper: diff-helper.c
 113diff --git a/rpull.c b/ssh-pull.c
 114similarity index 97%
 115rename from rpull.c
 116rename to ssh-pull.c
 117--- a/rpull.c
 118+++ b/ssh-pull.c
 119@@ -64,13 +64,13 @@ int main(int argc, char **argv)
 120                arg++;
 121        }
 122        if (argc < arg + 2) {
 123-               usage("git-rpull [-c] [-t] [-a] [-v] [-d] [--recover] commit-id url");
 124+               usage("git-ssh-pull [-c] [-t] [-a] [-v] [-d] [--recover] commit-id url");
 125                return 1;
 126        }
 127        commit_id = argv[arg];
 128        url = argv[arg + 1];
 129 
 130-       if (setup_connection(&fd_in, &fd_out, "git-rpush", url, arg, argv + 1))
 131+       if (setup_connection(&fd_in, &fd_out, "git-ssh-push", url, arg, argv + 1))
 132                return 1;
 133 
 134        if (get_version())
 135diff --git a/rpush.c b/ssh-push.c
 136similarity index 93%
 137rename from rpush.c
 138rename to ssh-push.c
 139--- a/rpush.c
 140+++ b/ssh-push.c
 141@@ -16,7 +16,7 @@ int serve_object(int fd_in, int fd_out) 
 142        do {
 143                size = read(fd_in, sha1 + posn, 20 - posn);
 144                if (size < 0) {
 145-                       perror("git-rpush: read ");
 146+                       perror("git-ssh-push: read ");
 147                        return -1;
 148                }
 149                if (!size)
 150@@ -30,7 +30,7 @@ int serve_object(int fd_in, int fd_out) 
 151        buf = map_sha1_file(sha1, &objsize);
 152        
 153        if (!buf) {
 154-               fprintf(stderr, "git-rpush: could not find %s\n", 
 155+               fprintf(stderr, "git-ssh-push: could not find %s\n", 
 156                        sha1_to_hex(sha1));
 157                remote = -1;
 158        }
 159@@ -45,9 +45,9 @@ int serve_object(int fd_in, int fd_out) 
 160                size = write(fd_out, buf + posn, objsize - posn);
 161                if (size <= 0) {
 162                        if (!size) {
 163-                               fprintf(stderr, "git-rpush: write closed");
 164+                               fprintf(stderr, "git-ssh-push: write closed");
 165                        } else {
 166-                               perror("git-rpush: write ");
 167+                               perror("git-ssh-push: write ");
 168                        }
 169                        return -1;
 170                }
 171@@ -71,7 +71,7 @@ void service(int fd_in, int fd_out) {
 172                retval = read(fd_in, &type, 1);
 173                if (retval < 1) {
 174                        if (retval < 0)
 175-                               perror("rpush: read ");
 176+                               perror("git-ssh-push: read ");
 177                        return;
 178                }
 179                if (type == 'v' && serve_version(fd_in, fd_out))
 180@@ -91,12 +91,12 @@ int main(int argc, char **argv)
 181                 arg++;
 182         }
 183         if (argc < arg + 2) {
 184-               usage("git-rpush [-c] [-t] [-a] commit-id url");
 185+               usage("git-ssh-push [-c] [-t] [-a] commit-id url");
 186                 return 1;
 187         }
 188        commit_id = argv[arg];
 189        url = argv[arg + 1];
 190-       if (setup_connection(&fd_in, &fd_out, "git-rpull", url, arg, argv + 1))
 191+       if (setup_connection(&fd_in, &fd_out, "git-ssh-pull", url, arg, argv + 1))
 192                return 1;
 193 
 194        service(fd_in, fd_out);