1. 15 8月, 2011 6 次提交
  2. 12 8月, 2011 6 次提交
  3. 09 8月, 2011 13 次提交
  4. 06 8月, 2011 3 次提交
    • J
      fast-export: quote paths in output · 6280dfdc
      Jeff King 提交于
      Many pathnames in a fast-import stream need to be quoted. In
      particular:
      
        1. Pathnames at the end of an "M" or "D" line need quoting
           if they contain a LF or start with double-quote.
      
        2. Pathnames on a "C" or "R" line need quoting as above,
           but also if they contain spaces.
      
      For (1), we weren't quoting at all. For (2), we put
      double-quotes around the paths to handle spaces, but ignored
      the possibility that they would need further quoting.
      
      This patch checks whether each pathname needs c-style
      quoting, and uses it. This is slightly overkill for (1),
      which doesn't actually need to quote many characters that
      vanilla c-style quoting does. However, it shouldn't hurt, as
      any implementation needs to be ready to handle quoted
      strings anyway.
      
      In addition to adding a test, we have to tweak a test which
      blindly assumed that case (2) would always use
      double-quotes, whether it needed to or not.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6280dfdc
    • J
      Merge branch 'tc/minix' · e7a85be3
      Junio C Hamano 提交于
      * tc/minix:
        Makefile: add Minix configuration options.
      e7a85be3
    • J
      Merge branch 'jc/pack-order-tweak' · 96790ca0
      Junio C Hamano 提交于
      * jc/pack-order-tweak:
        pack-objects: optimize "recency order"
        core: log offset pack data accesses happened
      96790ca0
  5. 05 8月, 2011 3 次提交
  6. 04 8月, 2011 7 次提交
  7. 03 8月, 2011 1 次提交
    • C
      commit: allow partial commits with relative paths · 8894d535
      Clemens Buchacher 提交于
      In order to do partial commits, git-commit overlays a tree on the
      cache and checks pathspecs against the result. Currently, the
      overlaying is done using "prefix" which prevents relative pathspecs
      with ".." and absolute pathspec from matching when they refer to
      files not under "prefix" and absent from the index, but still in
      the tree (i.e.  files staged for removal).
      
      The point of providing a prefix at all is performance optimization.
      If we say there is no common prefix for the files of interest, then
      we have to read the entire tree into the index.
      
      But even if we cannot use the working directory as a prefix, we can
      still figure out if there is a common prefix for all given paths,
      and use that instead. The pathspec_prefix() routine from ls-files.c
      does exactly that.
      
      Any use of global variables is removed from pathspec_prefix() so
      that it can be called from commit.c.
      Reported-by: NReuben Thomas <rrt@sc3d.org>
      Analyzed-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NClemens Buchacher <drizzd@aon.at>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8894d535
  8. 02 8月, 2011 1 次提交