1. 07 11月, 2013 1 次提交
  2. 31 10月, 2013 1 次提交
  3. 29 10月, 2013 7 次提交
  4. 24 10月, 2013 4 次提交
    • J
      Almost 1.8.4.2 ;-) · ca462804
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ca462804
    • J
      Merge branch 'jc/ls-files-killed-optim' into maint · e03a5010
      Junio C Hamano 提交于
      "git ls-files -k" needs to crawl only the part of the working tree
      that may overlap the paths in the index to find killed files, but
      shared code with the logic to find all the untracked files, which
      made it unnecessarily inefficient.
      
      * jc/ls-files-killed-optim:
        dir.c::test_one_path(): work around directory_exists_in_index_icase() breakage
        t3010: update to demonstrate "ls-files -k" optimization pitfalls
        ls-files -k: a directory only can be killed if the index has a non-directory
        dir.c: use the cache_* macro to access the current index
      e03a5010
    • J
      Merge branch 'jh/checkout-auto-tracking' into maint · 74051fa8
      Junio C Hamano 提交于
      "git branch --track" had a minor regression in v1.8.3.2 and later
      that made it impossible to base your local work on anything but a
      local branch of the upstream repository you are tracking from.
      
      * jh/checkout-auto-tracking:
        t3200: fix failure on case-insensitive filesystems
        branch.c: Relax unnecessary requirement on upstream's remote ref name
        t3200: Add test demonstrating minor regression in 41c21f22
        Refer to branch.<name>.remote/merge when documenting --track
        t3200: Minor fix when preparing for tracking failure
        t2024: Fix &&-chaining and a couple of typos
      74051fa8
    • J
      Merge branch 'nd/fetch-into-shallow' into maint · 6ba0d955
      Junio C Hamano 提交于
      When there is no sufficient overlap between old and new history
      during a "git fetch" into a shallow repository, objects that the
      sending side knows the receiving end has were unnecessarily sent.
      
      * nd/fetch-into-shallow:
        Add testcase for needless objects during a shallow fetch
        list-objects: mark more commits as edges in mark_edges_uninteresting
        list-objects: reduce one argument in mark_edges_uninteresting
        upload-pack: delegate rev walking in shallow fetch to pack-objects
        shallow: add setup_temporary_shallow()
        shallow: only add shallow graft points to new shallow file
        move setup_alternate_shallow and write_shallow_commits to shallow.c
      6ba0d955
  5. 19 10月, 2013 1 次提交
  6. 18 10月, 2013 12 次提交
  7. 16 10月, 2013 1 次提交
  8. 15 10月, 2013 1 次提交
  9. 27 9月, 2013 6 次提交
  10. 25 9月, 2013 1 次提交
    • B
      git-remote-mediawiki: bugfix for pages w/ >500 revisions · 1d905f74
      Benoit Person 提交于
      Mediawiki introduces a new API for queries w/ more than 500 results in
      version 1.21. That change triggered an infinite loop while cloning a
      mediawiki with such a page.
      
      The latest API renamed and moved the "continuing" information in the
      response, necessary to build the next query. The code failed to retrieve
      that information but still detected that it was in a "continuing
      query". As a result, it launched the same query over and over again.
      
      If a "continuing" information is detected in the response (old or new),
      the next query is updated accordingly. If not, we quit assuming it's not
      a continuing query.
      
      Reported-by: Benjamin Cathey
      Signed-off-by: NBenoit Person <benoit.person@gmail.com>
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      1d905f74
  11. 21 9月, 2013 1 次提交
    • J
      format-patch: print in-body "From" only when needed · 662cc30c
      Jeff King 提交于
      Commit a9080475 taught format-patch the "--from" option,
      which places the author ident into an in-body from header,
      and uses the committer ident in the rfc822 from header.  The
      documentation claims that it will omit the in-body header
      when it is the same as the rfc822 header, but the code never
      implemented that behavior.
      
      This patch completes the feature by comparing the two idents
      and doing nothing when they are the same (this is the same
      as simply omitting the in-body header, as the two are by
      definition indistinguishable in this case). This makes it
      reasonable to turn on "--from" all the time (if it matches
      your particular workflow), rather than only using it when
      exporting other people's patches.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      662cc30c
  12. 19 9月, 2013 4 次提交
    • J
      shortlog: ignore commits with missing authors · cd4f09e3
      Jeff King 提交于
      Most of git's traversals are robust against minor breakages
      in commit data. For example, "git log" will still output an
      entry for a commit that has a broken encoding or missing
      author, and will not abort the whole operation.
      
      Shortlog, on the other hand, will die as soon as it sees a
      commit without an author, meaning that a repository with
      a broken commit cannot get any shortlog output at all.
      
      Let's downgrade this fatal error to a warning, and continue
      the operation.
      
      We simply ignore the commit and do not count it in the total
      (since we do not have any author under which to file it).
      Alternatively, we could output some kind of "<empty>" record
      to collect these bogus commits. It is probably not worth it,
      though; we have already warned to stderr, so the user is
      aware that such bogosities exist, and any placeholder we
      came up with would either be syntactically invalid, or would
      potentially conflict with real data.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cd4f09e3
    • J
      clone: always set transport options · 643f918d
      Jeff King 提交于
      A clone will always create a transport struct, whether we
      are cloning locally or using an actual protocol. In the
      local case, we only use the transport to get the list of
      refs, and then transfer the objects out-of-band.
      
      However, there are many options that we do not bother
      setting up in the local case. For the most part, these are
      noops, because they only affect the object-fetching stage
      (e.g., the --depth option).  However, some options do have a
      visible impact. For example, giving the path to upload-pack
      via "-u" does not currently work for a local clone, even
      though we need upload-pack to get the ref list.
      
      We can just drop the conditional entirely and set these
      options for both local and non-local clones. Rather than
      keep track of which options impact the object versus the ref
      fetching stage, we can simply let the noops be noops (and
      the cost of setting the options in the first place is not
      high).
      
      The one exception is that we also check that the transport
      provides both a "get_refs_list" and a "fetch" method. We
      will now be checking the former for both cases (which is
      good, since a transport that cannot fetch refs would not
      work for a local clone), and we tweak the conditional to
      check for a "fetch" only when we are non-local.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      643f918d
    • J
      clone: treat "checking connectivity" like other progress · 2856cbf0
      Jeff King 提交于
      When stderr does not point to a tty, we typically suppress
      "we are now in this phase" progress reporting (e.g., we ask
      the server not to send us "counting objects" and the like).
      
      The new "checking connectivity" message is in the same vein,
      and should be suppressed. Since clone relies on the
      transport code to make the decision, we can simply sneak a
      peek at the "progress" field of the transport struct. That
      properly takes into account both the verbosity and progress
      options we were given, as well as the result of isatty().
      
      Note that we do not set up that progress flag for a local
      clone, as we do not fetch using the transport at all. That's
      acceptable here, though, because we also do not perform a
      connectivity check in that case.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2856cbf0
    • J
      clone: send diagnostic messages to stderr · 68b939b2
      Jeff King 提交于
      Putting messages like "Cloning into.." and "done" on stdout
      is un-Unix and uselessly clutters the stdout channel. Send
      them to stderr.
      
      We have to tweak two tests to accommodate this:
      
        1. t5601 checks for doubled output due to forking, and
           doesn't actually care where the output goes; adjust it
           to check stderr.
      
        2. t5702 is trying to test whether progress output was
           sent to stderr, but naively does so by checking
           whether stderr produced any output. Instead, have it
           look for "%", a token found in progress output but not
           elsewhere (and which lets us avoid hard-coding the
           progress text in the test).
      
      This should not regress any scripts that try to parse the
      current output, as the output is already internationalized
      and therefore unstable.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      68b939b2