Sync with Git 1.8.3.4
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Jul 2013 18:34:25 +0000 (11:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jul 2013 18:34:25 +0000 (11:34 -0700)
1  2 
Documentation/git.txt
Documentation/user-manual.txt
builtin/apply.c
diff --combined Documentation/git.txt
index e9b4922110012eec5b6d5874b81685261565bdd1,2664b52725b3122dcba0ee3510c347e80441cd0e..3bdd56e8f41bbe1fa695c5ef03a7c6d253e7af62
@@@ -43,9 -43,10 +43,10 @@@ unreleased) version of Git, that is ava
  branch of the `git.git` repository.
  Documentation for older releases are available here:
  
- * link:v1.8.3.3/git.html[documentation for release 1.8.3.3]
+ * link:v1.8.3.4/git.html[documentation for release 1.8.3.4]
  
  * release notes for
+   link:RelNotes/1.8.3.4.txt[1.8.3.4],
    link:RelNotes/1.8.3.3.txt[1.8.3.3],
    link:RelNotes/1.8.3.2.txt[1.8.3.2],
    link:RelNotes/1.8.3.1.txt[1.8.3.1],
@@@ -54,9 -55,9 +55,9 @@@
  * link:v1.8.2.3/git.html[documentation for release 1.8.2.3]
  
  * release notes for
 -  link:RelNotes/1.8.2.3.txt[1.8.2.3].
 -  link:RelNotes/1.8.2.2.txt[1.8.2.2].
 -  link:RelNotes/1.8.2.1.txt[1.8.2.1].
 +  link:RelNotes/1.8.2.3.txt[1.8.2.3],
 +  link:RelNotes/1.8.2.2.txt[1.8.2.2],
 +  link:RelNotes/1.8.2.1.txt[1.8.2.1],
    link:RelNotes/1.8.2.txt[1.8.2].
  
  * link:v1.8.1.6/git.html[documentation for release 1.8.1.6]
@@@ -817,9 -818,8 +818,9 @@@ for further details
  'GIT_FLUSH'::
        If this environment variable is set to "1", then commands such
        as 'git blame' (in incremental mode), 'git rev-list', 'git log',
 -      and 'git whatchanged' will force a flush of the output stream
 -      after each commit-oriented record have been flushed.   If this
 +      'git check-attr', 'git check-ignore', and 'git whatchanged' will
 +      force a flush of the output stream after each record have been
 +      flushed. If this
        variable is set to "0", the output of these commands will be done
        using completely buffered I/O.   If this environment variable is
        not set, Git will choose buffered or record-oriented flushing
        as a file path and will try to write the trace messages
        into it.
  
 +'GIT_TRACE_PACK_ACCESS'::
 +      If this variable is set to a path, a file will be created at
 +      the given path logging all accesses to any packs. For each
 +      access, the pack file name and an offset in the pack is
 +      recorded. This may be helpful for troubleshooting some
 +      pack-related performance problems.
 +
 +'GIT_TRACE_PACKET'::
 +      If this variable is set, it shows a trace of all packets
 +      coming in or out of a given program. This can help with
 +      debugging object negotiation or other protocol issues. Tracing
 +      is turned off at a packet starting with "PACK".
 +
  GIT_LITERAL_PATHSPECS::
        Setting this variable to `1` will cause Git to treat all
        pathspecs literally, rather than as glob patterns. For example,
index e364007d7c2e5f9b1aa5472c7968cb248eb8cf3f,0a1df5e5f58e7fee13ea47d53ba324d2c3ace66f..fe723e472275dc8989338be9a1bc592a4dd18425
@@@ -66,8 -66,8 +66,8 @@@ $ git clone git://git.kernel.org/pub/sc
  The initial clone may be time-consuming for a large project, but you
  will only need to clone once.
  
 -The clone command creates a new directory named after the project (`git`
 -or `linux-2.6` in the examples above).  After you cd into this
 +The clone command creates a new directory named after the project
 +(`git` or `linux` in the examples above).  After you cd into this
  directory, you will see that it contains a copy of the project files,
  called the <<def_working_tree,working tree>>, together with a special
  top-level directory named `.git`, which contains all the information
@@@ -431,25 -431,19 +431,25 @@@ You can also track branches from reposi
  cloned from, using linkgit:git-remote[1]:
  
  -------------------------------------------------
 -$ git remote add linux-nfs git://linux-nfs.org/pub/nfs-2.6.git
 -$ git fetch linux-nfs
 -* refs/remotes/linux-nfs/master: storing branch 'master' ...
 -  commit: bf81b46
 +$ git remote add staging git://git.kernel.org/.../gregkh/staging.git
 +$ git fetch staging
 +...
 +From git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
 + * [new branch]      master     -> staging/master
 + * [new branch]      staging-linus -> staging/staging-linus
 + * [new branch]      staging-next -> staging/staging-next
  -------------------------------------------------
  
  New remote-tracking branches will be stored under the shorthand name
 -that you gave `git remote add`, in this case `linux-nfs`:
 +that you gave `git remote add`, in this case `staging`:
  
  -------------------------------------------------
  $ git branch -r
 -linux-nfs/master
 -origin/master
 +  origin/HEAD -> origin/master
 +  origin/master
 +  staging/master
 +  staging/staging-linus
 +  staging/staging-next
  -------------------------------------------------
  
  If you run `git fetch <remote>` later, the remote-tracking branches
@@@ -461,9 -455,9 +461,9 @@@ a new stanza
  -------------------------------------------------
  $ cat .git/config
  ...
 -[remote "linux-nfs"]
 -      url = git://linux-nfs.org/pub/nfs-2.6.git
 -      fetch = +refs/heads/*:refs/remotes/linux-nfs/*
 +[remote "staging"]
 +      url = git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
 +      fetch = +refs/heads/*:refs/remotes/staging/*
  ...
  -------------------------------------------------
  
@@@ -1841,7 -1835,7 +1841,7 @@@ Once the index is updated with the resu
  resolution, instead of creating a new commit, just run
  
  -------------------------------------------------
 -$ git am --resolved
 +$ git am --continue
  -------------------------------------------------
  
  and Git will create the commit for you and continue applying the
@@@ -2162,7 -2156,7 +2162,7 @@@ To set this up, first create your work 
  tree:
  
  -------------------------------------------------
 -$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git work
 +$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git work
  $ cd work
  -------------------------------------------------
  
@@@ -2204,7 -2198,7 +2204,7 @@@ make it easy to push both branches to y
  -------------------------------------------------
  $ cat >> .git/config <<EOF
  [remote "mytree"]
 -      url =  master.kernel.org:/pub/scm/linux/kernel/git/aegl/linux-2.6.git
 +      url =  master.kernel.org:/pub/scm/linux/kernel/git/aegl/linux.git
        push = release
        push = test
  EOF
@@@ -4675,5 -4669,5 +4675,5 @@@ Write a chapter on using plumbing and w
  Alternates, clone -reference, etc.
  
  More on recovery from repository corruption.  See:
-       http://marc.theaimsgroup.com/?l=git&m=117263864820799&w=2
-       http://marc.theaimsgroup.com/?l=git&m=117147855503798&w=2
+       http://marc.info/?l=git&m=117263864820799&w=2
+       http://marc.info/?l=git&m=117147855503798&w=2
diff --combined builtin/apply.c
index 64310cd678d67c88de459e99ba577a1228378fa4,a88c372de59d950c2aae68455347ea0004e169fb..50912c928f79cc0bcb4acf3ae50fd9fdc32193e8
@@@ -473,7 -473,7 +473,7 @@@ static char *find_name_gnu(const char *
  
        /*
         * Proposed "new-style" GNU patch/diff format; see
-        * http://marc.theaimsgroup.com/?l=git&m=112927316408690&w=2
+        * http://marc.info/?l=git&m=112927316408690&w=2
         */
        if (unquote_c_style(&name, line, NULL)) {
                strbuf_release(&name);
@@@ -2999,7 -2999,7 +2999,7 @@@ static int read_blob_object(struct strb
        return 0;
  }
  
 -static int read_file_or_gitlink(struct cache_entry *ce, struct strbuf *buf)
 +static int read_file_or_gitlink(const struct cache_entry *ce, struct strbuf *buf)
  {
        if (!ce)
                return 0;
@@@ -3117,7 -3117,7 +3117,7 @@@ static struct patch *previous_patch(str
        return previous;
  }
  
 -static int verify_index_match(struct cache_entry *ce, struct stat *st)
 +static int verify_index_match(const struct cache_entry *ce, struct stat *st)
  {
        if (S_ISGITLINK(ce->ce_mode)) {
                if (!S_ISDIR(st->st_mode))
  #define SUBMODULE_PATCH_WITHOUT_INDEX 1
  
  static int load_patch_target(struct strbuf *buf,
 -                           struct cache_entry *ce,
 +                           const struct cache_entry *ce,
                             struct stat *st,
                             const char *name,
                             unsigned expected_mode)
   * we read from the result of a previous diff.
   */
  static int load_preimage(struct image *image,
 -                       struct patch *patch, struct stat *st, struct cache_entry *ce)
 +                       struct patch *patch, struct stat *st,
 +                       const struct cache_entry *ce)
  {
        struct strbuf buf = STRBUF_INIT;
        size_t len;
@@@ -3274,7 -3273,7 +3274,7 @@@ static int load_current(struct image *i
  }
  
  static int try_threeway(struct image *image, struct patch *patch,
 -                      struct stat *st, struct cache_entry *ce)
 +                      struct stat *st, const struct cache_entry *ce)
  {
        unsigned char pre_sha1[20], post_sha1[20], our_sha1[20];
        struct strbuf buf = STRBUF_INIT;
        return 0;
  }
  
 -static int apply_data(struct patch *patch, struct stat *st, struct cache_entry *ce)
 +static int apply_data(struct patch *patch, struct stat *st, const struct cache_entry *ce)
  {
        struct image image;
  
@@@ -3848,7 -3847,7 +3848,7 @@@ static void add_index_file(const char *
                const char *s = buf;
  
                if (get_sha1_hex(s + strlen("Subproject commit "), ce->sha1))
 -                      die(_("corrupt patch for subproject %s"), path);
 +                      die(_("corrupt patch for submodule %s"), path);
        } else {
                if (!cached) {
                        if (lstat(path, &st) < 0)