1. 30 6月, 2018 13 次提交
  2. 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
  3. 18 5月, 2018 2 次提交
  4. 16 5月, 2018 2 次提交
  5. 10 5月, 2018 1 次提交
  6. 09 5月, 2018 7 次提交
  7. 26 4月, 2018 1 次提交
  8. 12 4月, 2018 2 次提交
  9. 27 3月, 2018 2 次提交
  10. 24 3月, 2018 2 次提交
  11. 15 3月, 2018 4 次提交
    • B
      Convert lookup_replace_object to struct object_id · b383a13c
      brian m. carlson 提交于
      Convert both the argument and the return value to be pointers to struct
      object_id.  Update the callers and their internals to deal with the new
      type.  Remove several temporaries which are no longer needed.
      Signed-off-by: Nbrian m. carlson <sandals@crustytoothpaste.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b383a13c
    • B
      sha1_file: convert read_sha1_file to struct object_id · b4f5aca4
      brian m. carlson 提交于
      Convert read_sha1_file to take a pointer to struct object_id and rename
      it read_object_file.  Do the same for read_sha1_file_extended.
      
      Convert one use in grep.c to use the new function without any other code
      change, since the pointer being passed is a void pointer that is already
      initialized with a pointer to struct object_id.  Update the declaration
      and definitions of the modified functions, and apply the following
      semantic patch to convert the remaining callers:
      
      @@
      expression E1, E2, E3;
      @@
      - read_sha1_file(E1.hash, E2, E3)
      + read_object_file(&E1, E2, E3)
      
      @@
      expression E1, E2, E3;
      @@
      - read_sha1_file(E1->hash, E2, E3)
      + read_object_file(E1, E2, E3)
      
      @@
      expression E1, E2, E3, E4;
      @@
      - read_sha1_file_extended(E1.hash, E2, E3, E4)
      + read_object_file_extended(&E1, E2, E3, E4)
      
      @@
      expression E1, E2, E3, E4;
      @@
      - read_sha1_file_extended(E1->hash, E2, E3, E4)
      + read_object_file_extended(E1, E2, E3, E4)
      Signed-off-by: Nbrian m. carlson <sandals@crustytoothpaste.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b4f5aca4
    • B
      sha1_file: convert sha1_object_info* to object_id · abef9020
      brian m. carlson 提交于
      Convert sha1_object_info and sha1_object_info_extended to take pointers
      to struct object_id and rename them to use "oid" instead of "sha1" in
      their names.  Update the declaration and definition and apply the
      following semantic patch, plus the standard object_id transforms:
      
      @@
      expression E1, E2;
      @@
      - sha1_object_info(E1.hash, E2)
      + oid_object_info(&E1, E2)
      
      @@
      expression E1, E2;
      @@
      - sha1_object_info(E1->hash, E2)
      + oid_object_info(E1, E2)
      
      @@
      expression E1, E2, E3;
      @@
      - sha1_object_info_extended(E1.hash, E2, E3)
      + oid_object_info_extended(&E1, E2, E3)
      
      @@
      expression E1, E2, E3;
      @@
      - sha1_object_info_extended(E1->hash, E2, E3)
      + oid_object_info_extended(E1, E2, E3)
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      abef9020
    • B
      sha1_file: convert check_sha1_signature to struct object_id · 17e65451
      brian m. carlson 提交于
      Convert this function to take a pointer to struct object_id and rename
      it check_object_signature.  Introduce temporaries to convert the return
      values of lookup_replace_object and lookup_replace_object_extended into
      struct object_id.
      
      The temporaries are needed because in order to convert
      lookup_replace_object, open_istream needs to be converted, and
      open_istream needs check_sha1_signature to be converted, causing a loop
      of dependencies.  The temporaries will be removed in a future patch.
      Signed-off-by: Nbrian m. carlson <sandals@crustytoothpaste.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      17e65451
  12. 15 2月, 2018 1 次提交
  13. 29 12月, 2017 1 次提交
  14. 09 12月, 2017 1 次提交
    • J
      rev-list: support termination at promisor objects · df11e196
      Jonathan Tan 提交于
      Teach rev-list to support termination of an object traversal at any
      object from a promisor remote (whether one that the local repo also has,
      or one that the local repo knows about because it has another promisor
      object that references it).
      
      This will be used subsequently in gc and in the connectivity check used
      by fetch.
      
      For efficiency, if an object is referenced by a promisor object, and is
      in the local repo only as a non-promisor object, object traversal will
      not stop there. This is to avoid building the list of promisor object
      references.
      
      (In list-objects.c, the case where obj is NULL in process_blob() and
      process_tree() do not need to be changed because those happen only when
      there is a conflict between the expected type and the existing object.
      If the object doesn't exist, an object will be synthesized, which is
      fine.)
      Signed-off-by: NJonathan Tan <jonathantanmy@google.com>
      Signed-off-by: NJeff Hostetler <jeffhost@microsoft.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      df11e196