1. 05 9月, 2013 13 次提交
    • J
      Merge branch 'fc/remote-hg-shared-setup' · 4f5e9726
      Junio C Hamano 提交于
      * fc/remote-hg-shared-setup:
        remote-hg: add shared repo upgrade
        remote-hg: ensure shared repo is initialized
      4f5e9726
    • J
      Merge branch 'sb/misc-cleanup' · 2bdd8727
      Junio C Hamano 提交于
      * sb/misc-cleanup:
        rm: remove unneeded null pointer check
        diff: fix a possible null pointer dereference
        diff: remove ternary operator evaluating always to true
      2bdd8727
    • J
      Merge branch 'nd/gc-lock-against-each-other' · 05584b2a
      Junio C Hamano 提交于
      * nd/gc-lock-against-each-other:
        gc: reject if another gc is running, unless --force is given
      05584b2a
    • J
      Merge branch 'ap/remote-hg-tilde-is-home-directory' · 0335b647
      Junio C Hamano 提交于
      * ap/remote-hg-tilde-is-home-directory:
        remote-hg: fix path when cloning with tilde expansion
      0335b647
    • J
      Merge branch 'mm/no-shell-escape-in-die-message' · aaf4d399
      Junio C Hamano 提交于
      Fixes a minor bug in "git rebase -i" (there could be others, as the
      root cause is pretty generic) where the code feeds a random, data
      dependeant string to 'echo' and expects it to come out literally.
      
      * mm/no-shell-escape-in-die-message:
        die_with_status: use "printf '%s\n'", not "echo"
      aaf4d399
    • J
      Merge branch 'tr/fd-gotcha-fixes' · de5412bc
      Junio C Hamano 提交于
      Finishing touches to an earlier fix already in 'master'.
      
      * tr/fd-gotcha-fixes:
        t0070: test that git_mkstemps correctly checks return value of open()
      de5412bc
    • J
      Merge branch 'bc/unuse-packfile' · 04fbba01
      Junio C Hamano 提交于
      Handle memory pressure and file descriptor pressure separately when
      deciding to release pack windows to honor resource limits.
      
      * bc/unuse-packfile:
        Don't close pack fd when free'ing pack windows
        sha1_file: introduce close_one_pack() to close packs on fd pressure
      04fbba01
    • J
      Merge branch 'da/darwin' · 9a7eaad6
      Junio C Hamano 提交于
      * da/darwin:
        OS X: Fix redeclaration of die warning
        Makefile: Fix APPLE_COMMON_CRYPTO with BLK_SHA1
        imap-send: use Apple's Security framework for base64 encoding
      9a7eaad6
    • J
      Merge branch 'nd/sq-quote-buf' · 4aa04a8f
      Junio C Hamano 提交于
      Code simplification as a preparatory step to something larger.
      
      * nd/sq-quote-buf:
        quote: remove sq_quote_print()
        tar-tree: remove dependency on sq_quote_print()
        for-each-ref, quote: convert *_quote_print -> *_quote_buf
      4aa04a8f
    • J
      Merge branch 'rr/feed-real-path-to-editor' · d9fc2489
      Junio C Hamano 提交于
      * rr/feed-real-path-to-editor:
        editor: use canonicalized absolute path
      d9fc2489
    • J
      Merge branch 'jk/fast-import-empty-ls' · 7e394720
      Junio C Hamano 提交于
      * jk/fast-import-empty-ls:
        fast-import: allow moving the root tree
        fast-import: allow ls or filecopy of the root tree
        fast-import: set valid mode on root tree in "ls"
        t9300: document fast-import empty path issues
      7e394720
    • J
      Merge branch 'km/svn-1.8-serf-only' · 0f7483ee
      Junio C Hamano 提交于
      Subversion 1.8.0 that was recently released breaks older subversion
      clients coming over http/https in various ways.
      
      * km/svn-1.8-serf-only:
        Git.pm: revert _temp_cache use of temp_is_locked
        git-svn: allow git-svn fetching to work using serf
        Git.pm: add new temp_is_locked function
      0f7483ee
    • J
      Merge branch 'jc/check-x-z' · 0db320d0
      Junio C Hamano 提交于
      "git check-ignore -z" applied the NUL termination to both its input
      (with --stdin) and its output, but "git check-attr -z" ignored the
      option on the output side.
      
      This is potentially a backward incompatible fix.  Let's see if
      anybody screams before deciding if we want to do anything to help
      existing users (there may be none).
      
      * jc/check-x-z:
        check-attr -z: a single -z should apply to both input and output
        check-ignore -z: a single -z should apply to both input and output
        check-attr: the name of the character is NUL, not NULL
        check-ignore: the name of the character is NUL, not NULL
      0db320d0
  2. 04 9月, 2013 4 次提交
  3. 31 8月, 2013 10 次提交
  4. 30 8月, 2013 1 次提交
  5. 27 8月, 2013 1 次提交
    • J
      config: do not use C function names as struct members · 49d6cfa5
      Jeff King 提交于
      According to C99, section 7.1.4:
      
        Any function declared in a header may be additionally
        implemented as a function-like macro defined in the
        header.
      
      Therefore calling our struct member function pointer "fgetc"
      may run afoul of unwanted macro expansion when we call:
      
        char c = cf->fgetc(cf);
      
      This turned out to be a problem on uclibc, which defines
      fgetc as a macro and causes compilation failure.
      
      The standard suggests fixing this in a few ways:
      
        1. Using extra parentheses to inhibit the function-like
           macro expansion. E.g., "(cf->fgetc)(cf)". This is
           undesirable as it's ugly, and each call site needs to
           remember to use it (and on systems without the macro,
           forgetting will compile just fine).
      
        2. Using #undef (because a conforming implementation must
           also be providing fgetc as a function). This is
           undesirable because presumably the implementation was
           using the macro for a performance benefit, and we are
           dropping that optimization.
      
      Instead, we can simply use non-colliding names.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      49d6cfa5
  6. 26 8月, 2013 1 次提交
    • N
      fetch-pack: do not remove .git/shallow file when --depth is not specified · 6da8bdcb
      Nguyễn Thái Ngọc Duy 提交于
      fetch_pack() can remove .git/shallow file when a shallow repository
      becomes a full one again. This behavior is triggered incorrectly when
      tags are also fetched because fetch_pack() will be called twice. At
      the first fetch_pack() call:
      
       - shallow_lock is set up
       - alternate_shallow_file points to shallow_lock.filename, which is
         "shallow.lock"
       - commit_lock_file is called, which sets shallow_lock.filename to "".
         alternate_shallow_file also becomes "" because it points to the
         same memory.
      
      At the second call, setup_alternate_shallow() is not called and
      alternate_shallow_file remains "". It's mistaken as unshallow case and
      .git/shallow is removed. The end result is a broken repository.
      
      Fix this by always initializing alternate_shallow_file when
      fetch_pack() is called. As an extra measure, check if args->depth > 0
      before commit/rollback shallow file.
      Reported-by: NKacper Kornet <kornet@camk.edu.pl>
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6da8bdcb
  7. 24 8月, 2013 1 次提交
  8. 23 8月, 2013 1 次提交
  9. 22 8月, 2013 4 次提交
  10. 20 8月, 2013 1 次提交
  11. 15 8月, 2013 2 次提交
    • J
      Revert "Add new @ shortcut for HEAD" · 2c2b6646
      Junio C Hamano 提交于
      This reverts commit cdfd9483, as it
      does not just apply to "@" (and forms with modifiers like @{u}
      applied to it), but also affects e.g. "refs/heads/@/foo", which it
      shouldn't.
      
      The basic idea of giving a short-hand might be good, and the topic
      can be retried later, but let's revert to avoid affecting existing
      use cases for now for the upcoming release.
      2c2b6646
    • J
      Revert "git stash: avoid data loss when "git stash save" kills a directory" · c1ebd90c
      Junio C Hamano 提交于
      This reverts commit a7365313, as it
      has been reported that "ls-files --killed" is too time-consuming in
      a deep directory with too many untracked crufts (e.g. $HOME/.git
      tracking only a few files).
      
      We'd need to revisit it later but "ls-files --killed" needs to be
      optimized before it happens.
      c1ebd90c
  12. 14 8月, 2013 1 次提交