1. 21 3月, 2013 1 次提交
  2. 15 3月, 2013 2 次提交
    • J
      entry: fix filter lookup · 7297a440
      John Keeping 提交于
      When looking up the stream filter, write_entry() should be passing the
      path of the file in the repository, not the path to which the content is
      going to be written.  This allows the file to be correctly looked up
      against the .gitattributes files in the working tree.
      
      This change makes the streaming case match the non-streaming case which
      passes ce->name to convert_to_working_tree later in the same function.
      
      The two tests added here test the different paths through write_entry
      since the CRLF filter is a streaming filter but the user-defined smudge
      filter is not streamed.
      Signed-off-by: NJohn Keeping <john@keeping.me.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7297a440
    • J
      t2003: modernize style · 013c3bb8
      John Keeping 提交于
      - Description goes on the test_expect_* line
      - Open SQ of test goes on the test_expect_* line
      - Closing SQ of test goes on its own line
      - Use TAB for indent
      
      Also remove three comments that appear to relate to the development of
      the patch before it was committed.
      Signed-off-by: NJohn Keeping <john@keeping.me.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      013c3bb8
  3. 27 5月, 2011 3 次提交
  4. 21 5月, 2011 10 次提交
  5. 20 5月, 2011 1 次提交
    • J
      sha1_object_info_extended(): expose a bit more info · 9a490590
      Junio C Hamano 提交于
      The original interface for sha1_object_info() takes an object name and
      gives back a type and its size (the latter is given only when it was
      asked).  The new interface wraps its implementation and exposes a bit
      more pieces of information that the interface used to discard, namely:
      
       - where the object is stored (loose? cached? packed?)
       - if packed, where in which packfile?
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ---
      
       * In the earlier round, this used u.pack.delta to record the length of
         the delta chain, but the caller is not necessarily interested in the
         length of the delta chain per-se, but may only want to know if it is a
         delta against another object or is stored as a deflated data. Calling
         packed_object_info_detail() involves walking the reverse index chain to
         compute the store size of the object and is unnecessarily expensive.
      
         We could resurrect the code if a new caller wants to know, but I doubt
         it.
      9a490590
  6. 17 5月, 2011 1 次提交
  7. 16 5月, 2011 15 次提交
  8. 15 5月, 2011 2 次提交
  9. 14 5月, 2011 5 次提交