1. 25 6月, 2013 3 次提交
    • J
      Merge branch 'mm/rm-coalesce-errors' · 8d8975ac
      Junio C Hamano 提交于
      Give a single message followed by list of paths from "git rm" to
      report multiple paths that cannot be removed.
      
      * mm/rm-coalesce-errors:
        rm: introduce advice.rmHints to shorten messages
        rm: better error message on failure for multiple files
      8d8975ac
    • J
      Merge branch 'jh/libify-note-handling' · 22d94a72
      Junio C Hamano 提交于
      Make it possible to call into copy-notes API from the sequencer code.
      
      * jh/libify-note-handling:
        Move create_notes_commit() from notes-merge.c into notes-utils.c
        Move copy_note_for_rewrite + friends from builtin/notes.c to notes-utils.c
        finish_copy_notes_for_rewrite(): Let caller provide commit message
      22d94a72
    • J
      Merge branch 'fc/sequencer-plug-leak' · 0039d60c
      Junio C Hamano 提交于
      Plug a small leak in an error codepath.
      
      * fc/sequencer-plug-leak:
        sequencer: avoid leaking message buffer when refusing to create an empty commit
        sequencer: remove useless indentation
      0039d60c
  2. 24 6月, 2013 10 次提交
    • J
      Revert "Merge branch 'jg/status-config'" · 908a0e6b
      Junio C Hamano 提交于
      This reverts commit 1a22bd31, reversing
      changes made to 3e7a5b48.
      
      It makes it impossible to "git commit" when status.short is set, and
      also "git status --porcelain" output is affected by status.branch.
      908a0e6b
    • J
      Update draft release notes to 1.8.4 · 1f3a412d
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1f3a412d
    • J
      Merge branch 'mz/rebase-tests' · 8ff80a2f
      Junio C Hamano 提交于
      * mz/rebase-tests:
        rebase topology tests: fix commit names on case-insensitive file systems
        tests: move test for rebase messages from t3400 to t3406
        t3406: modernize style
        add tests for rebasing merged history
        add tests for rebasing root
        add tests for rebasing of empty commits
        add tests for rebasing with patch-equivalence present
        add simple tests of consistency across rebase types
      8ff80a2f
    • J
      Merge branch 'jk/unpack-entry-fallback-to-another' · ee64e345
      Junio C Hamano 提交于
      * jk/unpack-entry-fallback-to-another:
        unpack_entry: do not die when we fail to apply a delta
        t5303: drop "count=1" from corruption dd
      ee64e345
    • J
      Merge branch 'jk/apache-test-for-2.4' · 23983a47
      Junio C Hamano 提交于
      * jk/apache-test-for-2.4:
        lib-httpd/apache.conf: check version only after mod_version loads
        t/lib-httpd/apache.conf: configure an MPM module for apache 2.4
        t/lib-httpd/apache.conf: load compat access module in apache 2.4
        t/lib-httpd/apache.conf: load extra auth modules in apache 2.4
        t/lib-httpd/apache.conf: do not use LockFile in apache >= 2.4
      23983a47
    • J
      Merge branch 'cm/remote-mediawiki-perlcritique' · 39abbd38
      Junio C Hamano 提交于
      * cm/remote-mediawiki-perlcritique: (31 commits)
        git-remote-mediawiki: make error message more precise
        git-remote-mediawiki: add a perlcritic rule in Makefile
        git-remote-mediawiki: add a .perlcriticrc file
        git-remote-mediawiki: clearly rewrite double dereference
        git-remote-mediawiki: fix a typo ("mediwiki" instead of "mediawiki")
        git-remote-mediawiki: put non-trivial numeric values in constants.
        git-remote-mediawiki: don't use quotes for empty strings
        git-remote-mediawiki: replace "unless" statements with negated "if" statements
        git-remote-mediawiki: brace file handles for print for more clarity
        git-remote-mediawiki: modify strings for a better coding-style
        git-remote-mediawiki: put long code into a subroutine
        git-remote-mediawiki: remove import of unused open2
        git-remote-mediawiki: check return value of open
        git-remote-mediawiki: assign a variable as undef and make proper indentation
        git-remote-mediawiki: rename a variable ($last) which has the name of a keyword
        git-remote-mediawiki: remove unused variable $entry
        git-remote-mediawiki: turn double-negated expressions into simple expressions
        git-remote-mediawiki: change the name of a variable
        git-remote-mediawiki: add newline in the end of die() error messages
        git-remote-mediawiki: change style in a regexp
        ...
      39abbd38
    • J
      Merge branch 'bp/remote-mw-tests' · 7f031ed5
      Junio C Hamano 提交于
      * bp/remote-mw-tests:
        git-remote-mediawiki: remove hardcoded version number in the test suite
      7f031ed5
    • J
      Merge branch 'rr/rebase-autostash' · afaa2a47
      Junio C Hamano 提交于
      * rr/rebase-autostash:
        rebase: finish_rebase() in noop rebase
        rebase: finish_rebase() in fast-forward rebase
        rebase: guard against missing files in read_basic_state()
      afaa2a47
    • J
      Merge branch 'rr/prompt-rebase-breakage-fix' · 352e86e5
      Junio C Hamano 提交于
      * rr/prompt-rebase-breakage-fix:
        prompt: squelch error output from cat
      352e86e5
    • J
      Merge branch 'jg/status-config' · 1a22bd31
      Junio C Hamano 提交于
      "git status" learned status.branch and status.short configuration
      variables to use --branch and --short options by default (override
      with --no-branch and --no-short options from the command line).
      
      * jg/status-config:
        status: introduce status.branch to enable --branch by default
        status: introduce status.short to enable --short by default
      1a22bd31
  3. 22 6月, 2013 3 次提交
    • J
      lib-httpd/apache.conf: check version only after mod_version loads · 5bdc47eb
      Jeff King 提交于
      Commit 04427438 introduced an <IfVersion> directive near the
      top of the apache config file. However, at that point we
      have not yet checked for and loaded the mod_version module.
      This means that the directive will behave oddly if
      mod_version is dynamically loaded, failing to match when it
      should.
      
      We can fix this by moving the whole block below the
      LoadModule directive for mod_version.
      Reported-by: NBrian Gernhardt <brian@gernhardtsoftware.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5bdc47eb
    • J
      Sync with maint · 3e7a5b48
      Junio C Hamano 提交于
      * maint:
        completion: complete diff --word-diff
      3e7a5b48
    • J
      transport-helper: be quiet on read errors from helpers · 266f1fdf
      Jeff King 提交于
      Prior to commit 81d340d4, we did not print any error message
      if a remote transport helper died unexpectedly. If a helper
      did not print any error message (e.g., because it crashed),
      the user could be left confused. That commit tried to
      rectify the situation by printing a note that the helper
      exited unexpectedly.
      
      However, this makes a much more common case worse: when a
      helper does die with a useful message, we print the extra
      "Reading from 'git-remote-foo failed" message. This can also
      end up confusing users, as they may not even know what
      remote helpers are (e.g., the fact that http support comes
      through git-remote-https is purely an implementation detail
      that most users do not know or care about).
      
      Since we do not have a good way of knowing whether the
      helper printed a useful error, and since the common failure
      mode is for it to do so, let's default to remaining quiet.
      Debuggers can dig further by setting GIT_TRANSPORT_HELPER_DEBUG.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      266f1fdf
  4. 21 6月, 2013 12 次提交
  5. 18 6月, 2013 1 次提交
  6. 17 6月, 2013 1 次提交
    • J
      Merge tag 'gitgui-0.18.0' of git://repo.or.cz/git-gui · fb7dfaa7
      Junio C Hamano 提交于
      git-gui 0.18.0
      
      * tag 'gitgui-0.18.0' of git://repo.or.cz/git-gui:
        git-gui 0.18
        git-gui: avoid an error message when removing the last remote
        git-gui: fix file name handling with non-empty prefix
        git-gui: bring wish process to front on Mac
        git-gui: change dialog button positions for Windows to suit platform.
        git-gui: allow "\ No newline at end of file" for linewise staging
        git-gui: fix the mergetool launcher for the Beyond Compare tool.
        Makefile: replace "echo 1>..." with "echo >..."
        French translation: copy -> copie.
        git-gui: Fix parsing of <rev> <path-which-not-present-in-worktree>
      fb7dfaa7
  7. 16 6月, 2013 4 次提交
  8. 15 6月, 2013 6 次提交
    • J
      unpack_entry: do not die when we fail to apply a delta · 1ee886c1
      Jeff King 提交于
      When we try to load an object from disk and fail, our
      general strategy is to see if we can get it from somewhere
      else (e.g., a loose object). That lets users fix corruption
      problems by copying known-good versions of objects into the
      object database.
      
      We already handle the case where we were not able to read
      the delta from disk. However, when we find that the delta we
      read does not apply, we simply die.  This case is harder to
      trigger, as corruption in the delta data itself would
      trigger a crc error from zlib.  However, a corruption that
      pointed us at the wrong delta base might cause it.
      
      We can do the same "fail and try to find the object
      elsewhere" trick instead of dying. This not only gives us a
      chance to recover, but also puts us on code paths that will
      alert the user to the problem (with the current message,
      they do not even know which sha1 caused the problem).
      
      Note that unlike some other pack corruptions, we do not
      recover automatically from this case when doing a repack.
      There is nothing apparently wrong with the delta, as it
      points to a valid, accessible object, and we realize the
      error only when the resulting size does not match up. And in
      theory, one could even have a case where the corrupted size
      is the same, and the problem would only be noticed by
      recomputing the sha1.
      
      We can get around this by recomputing the deltas with
      --no-reuse-delta, which our test does (and this is probably
      good advice for anyone recovering from pack corruption).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1ee886c1
    • J
      t5303: drop "count=1" from corruption dd · 50b72ede
      Jeff King 提交于
      This test corrupts pack objects by using "dd" with a seek
      command. It passes "count=1 bs=1" to munge just a single
      byte. However, the test added in commit b3118bdc wants to
      munge two bytes, and the second byte of corruption is
      silently ignored.
      
      This turned out not to impact the test, however. The idea
      was to reduce the "size of this entry" part of the header so
      that zlib runs out of input bytes while inflating the entry.
      That header is two bytes long, and the test reduced the
      value of both bytes; since we experience the problem if we
      are off by even 1 byte, it is sufficient to munge only the
      first one.
      
      Even though the test would have worked with only a single
      byte munged, and we could simply tweak the test to use a
      single byte, it makes sense to lift this 1-byte restriction
      from do_corrupt_object. It will allow future tests that do
      need to change multiple bytes to do so.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      50b72ede
    • B
      git-remote-mediawiki: remove hardcoded version number in the test suite · 3e3d5fd2
      Benoit Person 提交于
      Updates the code to make it more easy to switch mediawiki version when
      testing. Before that, the version number was partly hardcoded, partly
      in a var.
      Signed-off-by: NBenoit Person <benoit.person@ensimag.fr>
      Signed-off-by: NMatthieu Moy <matthieu.moy@grenoble-inp.fr>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3e3d5fd2
    • J
      t/lib-httpd/apache.conf: configure an MPM module for apache 2.4 · 296f0b3e
      Jeff King 提交于
      Versions of Apache before 2.4 always had a "MultiProcessing
      Module" (MPM) statically built in, which manages the worker
      threads/processes. We do not care which one, as it is
      largely a performance issue, and we put only a light load on
      the server during our testing.
      
      As of Apache 2.4, the MPM module is loadable just like any
      other module, but exactly one such module must be loaded. On
      a system where the MPMs are compiled dynamically (e.g.,
      Debian unstable), this means that our test Apache server
      will not start unless we provide the appropriate
      configuration.
      
      Unfortunately, we do not actually know which MPM modules are
      available or appropriate for the system on which the tests
      are running. This patch picks the "prefork" module, as it
      is likely to be available on all Unix-like systems.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      296f0b3e
    • J
      t/lib-httpd/apache.conf: load compat access module in apache 2.4 · bb3f7cca
      Jeff King 提交于
      In apache 2.4, the "Order" directive has gone away in favor
      of a new system in mod_authz_host. However, since we want
      our config file to remain compatible across multiple Apache
      versions, we can use mod_access_compat to keep using the
      older style.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bb3f7cca
    • J
      t/lib-httpd/apache.conf: load extra auth modules in apache 2.4 · a8adcc47
      Jeff King 提交于
      In apache 2.4, the "Auth*" and "Require" directives have
      moved into the authn_core and authz_core modules,
      respectively.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a8adcc47