1. 14 1月, 2014 2 次提交
  2. 07 1月, 2014 2 次提交
  3. 04 1月, 2014 1 次提交
  4. 31 12月, 2013 1 次提交
  5. 18 12月, 2013 15 次提交
  6. 13 12月, 2013 2 次提交
    • J
      cat-file: handle --batch format with missing type/size · 6554dfa9
      Jeff King 提交于
      Commit 98e2092b taught cat-file to stream blobs with --batch,
      which requires that we look up the object type before
      loading it into memory.  As a result, we now print the
      object header from information in sha1_object_info, and the
      actual contents from the read_sha1_file. We double-check
      that the information we printed in the header matches the
      content we are about to show.
      
      Later, commit 93d2a607 allowed custom header lines for
      --batch, and commit 5b086407 made type lookups optional. As a
      result, specifying a header line without the type or size
      means that we will not look up those items at all.
      
      This causes our double-checking to erroneously die with an
      error; we think the type or size has changed, when in fact
      it was simply left at "0".
      
      For the size, we can fix this by only doing the consistency
      double-check when we have retrieved the size via
      sha1_object_info. In the case that we have not retrieved the
      value, that means we also did not print it, so there is
      nothing for us to check that we are consistent with.
      
      We could do the same for the type. However, besides our
      consistency check, we also care about the type in deciding
      whether to stream or not. So instead of handling the case
      where we do not know the type, this patch instead makes sure
      that we always trigger a type lookup when we are printing,
      so that even a format without the type will stream as we
      would in the normal case.
      Reviewed-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6554dfa9
    • J
      cat-file: pass expand_data to print_object_or_die · 370c9268
      Jeff King 提交于
      We currently individually pass the sha1, type, and size
      fields calculated by sha1_object_info. However, if we pass
      the whole struct, the called function can make more
      intelligent decisions about which fields were actually
      filled by sha1_object_info.
      
      This patch takes that first refactoring step, passing the
      whole struct, so further patches can make those decisions
      with less noise in their diffs. There should be no
      functional change to this patch (aside from a minor typo fix
      in the error message).
      
      As a side effect, we can rename the local variables in the
      function to "type" and "size", since the names are no longer
      taken.
      Reviewed-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      370c9268
  7. 04 12月, 2013 2 次提交
  8. 03 12月, 2013 3 次提交
    • J
      Sync with 1.8.4.5 · be38bee8
      Junio C Hamano 提交于
      be38bee8
    • J
      Git 1.8.4.5 · 2f93541d
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2f93541d
    • J
      submodule: do not copy unknown update mode from .gitmodules · ac1fbbda
      Junio C Hamano 提交于
      When submodule.$name.update is given as hint from the upstream in
      the .gitmodules file, we used to blindly copy it to .git/config,
      unless there already is a value defined for the submodule.
      
      However, there is no reason to expect that the update mode hinted by
      the upstream is available in the version of Git the user is using,
      and a really custom "!cmd" prepared by an upstream person running on
      Linux may not even be available to a user on Windows.  It is simply
      irresponsible to copy the setting blindly and to attempt to use it
      during a later "submodule update" without validating it first.
      
      Just show the suggested value to the diagnostic output, and set the
      value to 'none' in the configuration, if it is not one of the ones
      that are known to be supported by this version of Git.
      Helped-by: NJens Lehmann <Jens.Lehmann@web.de>
      Helped-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ac1fbbda
  9. 28 11月, 2013 5 次提交
  10. 26 11月, 2013 1 次提交
    • J
      Merge branch 'rh/remote-hg-bzr-updates' (early part) · c302941c
      Junio C Hamano 提交于
      Unbreaks a recent breakage due to use of unquote-c-style.
      
      This may need to be cherry-picked down to 1.8.4.x series.
      
      * 'rh/remote-hg-bzr-updates' (early part):
        remote-hg: don't decode UTF-8 paths into Unicode objects
      c302941c
  11. 22 11月, 2013 1 次提交
  12. 21 11月, 2013 5 次提交