Code

Merge branch 'maint-1.7.6' into maint
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2011 23:09:28 +0000 (16:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2011 23:09:28 +0000 (16:09 -0700)
* maint-1.7.6:
  make the sample pre-commit hook script reject names with newlines, too
  git-read-tree.txt: update sparse checkout examples
  git-read-tree.txt: correct sparse-checkout and skip-worktree description
  git-read-tree.txt: language and typography fixes
  unpack-trees: print "Aborting" to stderr
  Documentation/git-update-index: refer to 'ls-files'
  Documentation: basic configuration of notes.rewriteRef

1  2 
Documentation/config.txt
unpack-trees.c

diff --combined Documentation/config.txt
index 0658ffb889320d408f2cad9214e138879059c766,87643882fcb26415ad805dd1c8ab72c1fd3e4604..0781341d6b3ad26e99b5db58b1322842564ad107
@@@ -1198,14 -1198,6 +1198,14 @@@ http.proxy:
        environment variable (see linkgit:curl[1]).  This can be overridden
        on a per-remote basis; see remote.<name>.proxy
  
 +http.cookiefile::
 +      File containing previously stored cookie lines which should be used
 +      in the git http session, if they match the server. The file format
 +      of the file to read cookies from should be plain HTTP headers or
 +      the Netscape/Mozilla cookie file format (see linkgit:curl[1]).
 +      NOTE that the file specified with http.cookiefile is only used as
 +      input. No cookies will be stored in the file.
 +
  http.sslVerify::
        Whether to verify the SSL certificate when fetching or pushing
        over HTTPS. Can be overridden by the 'GIT_SSL_NO_VERIFY' environment
@@@ -1453,7 -1445,8 +1453,8 @@@ notes.rewriteRef:
        You may also specify this configuration several times.
  +
  Does not have a default value; you must configure this variable to
- enable note rewriting.
+ enable note rewriting.  Set it to `refs/notes/commits` to enable
+ rewriting for the default commit notes.
  +
  This setting can be overridden with the `GIT_NOTES_REWRITE_REF`
  environment variable, which must be a colon separated list of refs or
diff --combined unpack-trees.c
index 670b46473883505c39c5353c65e0eeb93aec21c3,c3d3436adda39dfb8e48e3452479ea0f02546063..237aed8c766638c55d8d6b870c86ef2ad13a74d3
@@@ -159,7 -159,7 +159,7 @@@ static void display_error_msgs(struct u
                string_list_clear(rejects, 0);
        }
        if (something_displayed)
-               printf("Aborting\n");
+               fprintf(stderr, "Aborting\n");
  }
  
  /*
@@@ -444,7 -444,6 +444,7 @@@ static int traverse_trees_recursive(in
  
        newinfo = *info;
        newinfo.prev = info;
 +      newinfo.pathspec = info->pathspec;
        newinfo.name = *p;
        newinfo.pathlen += tree_entry_len(p->path, p->sha1) + 1;
        newinfo.conflicts |= df_conflicts;
@@@ -1041,7 -1040,6 +1041,7 @@@ int unpack_trees(unsigned len, struct t
                info.fn = unpack_callback;
                info.data = o;
                info.show_all_errors = o->show_all_errors;
 +              info.pathspec = o->pathspec;
  
                if (o->prefix) {
                        /*