1. 30 8月, 2018 1 次提交
    • J
      convert "hashcmp() == 0" to hasheq() · e3ff0683
      Jeff King 提交于
      This is the partner patch to the previous one, but covering
      the "hash" variants instead of "oid".  Note that our
      coccinelle rule is slightly more complex to avoid triggering
      the call in hasheq().
      
      I didn't bother to add a new rule to convert:
      
        - hasheq(E1->hash, E2->hash)
        + oideq(E1, E2)
      
      Since these are new functions, there won't be any such
      existing callers. And since most of the code is already
      using oideq, we're not likely to introduce new ones.
      
      We might still see "!hashcmp(E1->hash, E2->hash)" from topics
      in flight. But because our new rule comes after the existing
      ones, that should first get converted to "!oidcmp(E1, E2)"
      and then to "oideq(E1, E2)".
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e3ff0683
  2. 24 7月, 2018 1 次提交
  3. 18 7月, 2018 1 次提交
  4. 30 6月, 2018 17 次提交
  5. 22 5月, 2018 1 次提交
    • D
      commit-graph: always load commit-graph information · e2838d85
      Derrick Stolee 提交于
      Most code paths load commits using lookup_commit() and then
      parse_commit(). In some cases, including some branch lookups, the commit
      is parsed using parse_object_buffer() which side-steps parse_commit() in
      favor of parse_commit_buffer().
      
      With generation numbers in the commit-graph, we need to ensure that any
      commit that exists in the commit-graph file has its generation number
      loaded.
      
      Create new load_commit_graph_info() method to fill in the information
      for a commit that exists only in the commit-graph file. Call it from
      parse_commit_buffer() after loading the other commit information from
      the given buffer. Only fill this information when specified by the
      'check_graph' parameter.
      Signed-off-by: NDerrick Stolee <dstolee@microsoft.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e2838d85
  6. 18 5月, 2018 2 次提交
  7. 16 5月, 2018 2 次提交
  8. 10 5月, 2018 1 次提交
  9. 09 5月, 2018 7 次提交
  10. 26 4月, 2018 1 次提交
  11. 12 4月, 2018 2 次提交
  12. 27 3月, 2018 2 次提交
  13. 24 3月, 2018 2 次提交