Merge branch 'maint-1.7.4' into maint-1.7.5
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2011 23:08:14 +0000 (16:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2011 23:08:14 +0000 (16:08 -0700)
* maint-1.7.4:
  make the sample pre-commit hook script reject names with newlines, too
  Reindent closing bracket using tab instead of spaces
  Documentation/git-update-index: refer to 'ls-files'

1  2 
Documentation/git-update-index.txt
wt-status.c

@@@ -363,8 -365,18 +365,9 @@@ ctime for marking files processed) (se
  SEE ALSO
  --------
  linkgit:git-config[1],
- linkgit:git-add[1]
+ linkgit:git-add[1],
+ linkgit:git-ls-files[1]
  
 -
 -Author
 -------
 -Written by Linus Torvalds <torvalds@osdl.org>
 -
 -Documentation
 ---------------
 -Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
 -
  GIT
  ---
  Part of the linkgit:git[1] suite
diff --cc wt-status.c
@@@ -394,10 -320,10 +394,10 @@@ static void wt_status_collect_changes_w
        if (s->ignore_submodule_arg) {
                DIFF_OPT_SET(&rev.diffopt, OVERRIDE_SUBMODULE_CONFIG);
                handle_ignore_submodules_arg(&rev.diffopt, s->ignore_submodule_arg);
-     }
+       }
        rev.diffopt.format_callback = wt_status_collect_changed_cb;
        rev.diffopt.format_callback_data = s;
 -      rev.prune_data = s->pathspec;
 +      init_pathspec(&rev.prune_data, s->pathspec);
        run_diff_files(&rev, 0);
  }