1. 27 3月, 2015 1 次提交
  2. 26 3月, 2015 14 次提交
    • J
      Getting ready for -rc0 · bca18110
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bca18110
    • J
      Merge branch 'nd/doc-git-index-version' · 6ce3cc5d
      Junio C Hamano 提交于
      Doc clean-up.
      
      * nd/doc-git-index-version:
        git.txt: list index versions in plain English
      6ce3cc5d
    • J
      Merge branch 'jk/run-command-capture' · ea1fd481
      Junio C Hamano 提交于
      The run-command interface was easy to abuse and make a pipe for us
      to read from the process, wait for the process to finish and then
      attempt to read its output, which is a pattern that lead to a
      deadlock.  Fix such uses by introducing a helper to do this
      correctly (i.e. we need to read first and then wait the process to
      finish) and also add code to prevent such abuse in the run-command
      helper.
      
      * jk/run-command-capture:
        run-command: forbid using run_command with piped output
        trailer: use capture_command
        submodule: use capture_command
        wt-status: use capture_command
        run-command: introduce capture_command helper
        wt_status: fix signedness mismatch in strbuf_read call
        wt-status: don't flush before running "submodule status"
      ea1fd481
    • J
      Merge branch 'tg/test-index-v4' · d78374e5
      Junio C Hamano 提交于
      A test fix.
      
      * tg/test-index-v4:
        t1700: make test pass with index-v4
      d78374e5
    • J
      Merge branch 'jk/prune-with-corrupt-refs' · 05e816e3
      Junio C Hamano 提交于
      "git prune" used to largely ignore broken refs when deciding which
      objects are still being used, which could spread an existing small
      damage and make it a larger one.
      
      * jk/prune-with-corrupt-refs:
        refs.c: drop curate_packed_refs
        repack: turn on "ref paranoia" when doing a destructive repack
        prune: turn on ref_paranoia flag
        refs: introduce a "ref paranoia" flag
        t5312: test object deletion code paths in a corrupted repository
      05e816e3
    • J
      Merge branch 'tg/fix-check-order-with-split-index' · a801bb8c
      Junio C Hamano 提交于
      The split-index mode introduced at v2.3.0-rc0~41 was broken in the
      codepath to protect us against a broken reimplementation of Git
      that writes an invalid index with duplicated index entries, etc.
      
      * tg/fix-check-order-with-split-index:
        read-cache: fix reading of split index
      a801bb8c
    • J
      Merge branch 'jk/fetch-pack' · 2f6ef713
      Junio C Hamano 提交于
      "git fetch" that fetches a commit using the allow-tip-sha1-in-want
      extension could have failed to fetch all the requested refs.
      
      * jk/fetch-pack:
        fetch-pack: remove dead assignment to ref->new_sha1
        fetch_refs_via_pack: free extra copy of refs
        filter_ref: make a copy of extra "sought" entries
        filter_ref: avoid overwriting ref->old_sha1 with garbage
      2f6ef713
    • J
      Merge branch 'jk/cleanup-failed-clone' · 927936d7
      Junio C Hamano 提交于
      An failure early in the "git clone" that started creating the
      working tree and repository could have resulted in some directories
      and files left without getting cleaned up.
      
      * jk/cleanup-failed-clone:
        clone: drop period from end of die_errno message
        clone: initialize atexit cleanup handler earlier
      927936d7
    • J
      Merge branch 'jc/submitting-patches-mention-send-email' · cf07d3fe
      Junio C Hamano 提交于
      Recommend format-patch and send-email for those who want to submit
      patches to this project.
      
      * jc/submitting-patches-mention-send-email:
        SubmittingPatches: encourage users to use format-patch and send-email
      cf07d3fe
    • J
      Merge branch 'dj/log-graph-with-no-walk' · dbd04eba
      Junio C Hamano 提交于
      "git log --graph --no-walk A B..." is a otcnflicting request that
      asks nonsense; no-walk tells us show discrete points in the
      history, while graph asks to draw connections between these
      discrete points. Forbid the combination.
      
      * dj/log-graph-with-no-walk:
        revision: forbid combining --graph and --no-walk
      dbd04eba
    • J
      Merge branch 'kd/rev-list-bisect-first-parent' · 257b204f
      Junio C Hamano 提交于
      "git rev-list --bisect --first-parent" does not work (yet) and can
      even cause SEGV; forbid it.  "git log --bisect --first-parent"
      would not be useful until "git bisect --first-parent" materializes,
      so it is also forbidden for now.
      
      * kd/rev-list-bisect-first-parent:
        rev-list: refuse --first-parent combined with --bisect
      257b204f
    • J
      Merge branch 'ws/grep-quiet-no-pager' · 01c057df
      Junio C Hamano 提交于
      Even though "git grep --quiet" is run merely to ask for the exit
      status, we spawned the pager regardless.  Stop doing that.
      
      * ws/grep-quiet-no-pager:
        grep: fix "--quiet" overwriting current output
      01c057df
    • J
      Merge branch 'jk/simplify-csum-file-sha1fd-check' · 09e32fa0
      Junio C Hamano 提交于
      Code simplification.
      
      * jk/simplify-csum-file-sha1fd-check:
        sha1fd_check: die when we cannot open the file
      09e32fa0
    • J
      Merge branch 'ct/prompt-untracked-fix' · 5f15cba2
      Junio C Hamano 提交于
      The prompt script (in contrib/) did not show the untracked sign
      when working in a subdirectory without any untracked files.
      
      * ct/prompt-untracked-fix:
        git prompt: use toplevel to find untracked files
      5f15cba2
  3. 25 3月, 2015 2 次提交
    • J
      Merge branch 'master' of git://ozlabs.org/~paulus/gitk · 92e625d3
      Junio C Hamano 提交于
      * 'master' of git://ozlabs.org/~paulus/gitk:
        gitk: Update .po files
        gitk: l10n: Add Catalan translation
        gitk: Fix typo in Russian translation
        gitk: Remove tcl-format flag from a message that shouldn't have it
        gitk: Pass --invert-grep option down to "git log"
        gitk: Synchronize config file writes
        gitk: Report errors in saving config file
        gitk: Only write changed configuration variables
        gitk: Enable mouse horizontal scrolling in diff pane
        gitk: Default wrcomcmd to use --pretty=email
      92e625d3
    • J
      report_path_error(): move to dir.c · 777c55a6
      Junio C Hamano 提交于
      The expected call sequence is for the caller to use match_pathspec()
      repeatedly on a set of pathspecs, accumulating the "hits" in a
      separate array, and then call this function to diagnose a pathspec
      that never matched anything, as that can indicate a typo from the
      command line, e.g. "git commit Maekfile".
      
      Many builtin commands use this function from builtin/ls-files.c,
      which is not a very healthy arrangement.  ls-files might have been
      the first command to feel the need for such a helper, but the need
      is shared by everybody who uses the "match and then report" pattern.
      
      Move it to dir.c where match_pathspec() is defined.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      777c55a6
  4. 24 3月, 2015 21 次提交
  5. 23 3月, 2015 2 次提交
    • J
      run-command: forbid using run_command with piped output · c29b3962
      Jeff King 提交于
      Because run_command both spawns and wait()s for the command
      before returning control to the caller, any reads from the
      pipes we open must necessarily happen after wait() returns.
      This can lead to deadlock, as the child process may block
      on writing to us while we are blocked waiting for it to
      exit.
      
      Worse, it only happens when the child fills the pipe
      buffer, which means that the problem may come and go
      depending on the platform and the size of the output
      produced by the child.
      
      Let's detect and flag this dangerous construct so that we
      can catch potential bugs early in the test suite rather than
      having them happen in the field.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c29b3962
    • J
      trailer: use capture_command · c5eadcaa
      Jeff King 提交于
      When we read from a trailer.*.command sub-program, the
      current code uses run_command followed by a pipe read, which
      can result in deadlock (though in practice you would have to
      have a large trailer for this to be a problem). The current
      code also leaks the file descriptor for the pipe to the
      sub-command.
      
      Instead, let's use capture_command, which makes this simpler
      (and we can get rid of our custom helper).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c5eadcaa