1. 10 Oct, 2012 1 commit
    • http: don't discard the HEAD ref · aeba5e17
      The fix for fetching from empty repositories (22935b06 protocol:
      don't store flushes; 2012-10-07) forgot to take into account the
      deletion of the flush pkt in the HTTP transport. As a result, the HEAD
      ref advertisement where we detect the remote's capabilities was
      deleted instead. Fix this.
      Carlos Martín Nieto committed
  2. 09 Oct, 2012 13 commits
  3. 08 Oct, 2012 7 commits
  4. 07 Oct, 2012 15 commits
  5. 05 Oct, 2012 4 commits
    • Diff: Do not try to calculate an oid for a GITLINK. · 1dca8510
      We don't have anything useful that we could do with that oid anyway (We
      need to query the submodule for the HEAD commit instead).
      
      Without this, the following code creates the error "Failed to read
      descriptor: Is a directory" when run against the submod2 test-case:
      
          const char* oidstr = "873585b94bdeabccea991ea5e3ec1a277895b698";
          git_tree* tree = resolve_commit_oid_to_tree(g_repo, oidstr);
          git_diff_list* diff = NULL;
          cl_assert(tree);
          cl_git_pass(git_diff_workdir_to_tree(g_repo, NULL, tree, &diff));
      Sascha Cunz committed
    • Diff: teach get_workdir_content to show a submodule as text · 7e57d250
      1. teach diff.c:maybe_modified to query git_submodule_status for the
         modification state of a submodule. According to the
         git_submodule_status docs, it will filter for to-ignore states
         already.
      
      2. teach diff_output.c:get_workdir_content to check the submodule status
         again and create a line like:
      
            Subproject commit <SHA-1>\n
         or
            Subproject comimt <SHA-1>-dirty\n
      
         like git.git does.
      Sascha Cunz committed
    • Diff: teach get_blob_content to show a submodule as text · 9ce44f1a
      diff_output.c:get_blob_content used to try to read the submodule commit
      as a blob in the superproject's odb. Of course it cannot find it and
      errors out with GIT_ENOTFOUND, implcitly terminating the whole diff
      output.
      
      This patch teaches it to create a text that describes the submodule
      instead. The text looks like:
      
      	Subproject commit <SHA1>\n
      
      which is what git.git does, too.
      Sascha Cunz committed