1. 10 8月, 2005 1 次提交
    • T
      [PATCH] -Werror fixes · 4ec99bf0
      Timo Sirainen 提交于
      GCC's format __attribute__ is good for checking errors, especially
      with -Wformat=2 parameter. This fixes most of the reported problems
      against 2005-08-09 snapshot.
      4ec99bf0
  2. 29 7月, 2005 1 次提交
    • L
      [PATCH] Make git-apply --stat less butt-ugly with long filenames · 62917097
      Linus Torvalds 提交于
      When git-apply was printing out long filenames, it used to just truncate
      them to show the last "max_len" characters of the filename. Which can be
      really quite ugly (note the two filenames that have just been silently
      truncated from the beginning - it looks even worse when there are lots
      of them, like there were in the current v2.6.13-rc4 cris arch update):
      
       Documentation/video4linux/README.saa7134           |    9
       Documentation/video4linux/bttv/Cards               |   74
       umentation/video4linux/hauppauge-wintv-cx88-ir.txt |   54
       Documentation/video4linux/lifeview.txt             |   42
       mentation/video4linux/not-in-cx2388x-datasheet.txt |   41
       Documentation/w1/w1.generic                        |  107
      
      With this patch it now looks like so:
      
       Documentation/video4linux/README.saa7134           |    9
       Documentation/video4linux/bttv/Cards               |   74
       .../video4linux/hauppauge-wintv-cx88-ir.txt        |   54
       Documentation/video4linux/lifeview.txt             |   42
       .../video4linux/not-in-cx2388x-datasheet.txt       |   41
       Documentation/w1/w1.generic                        |  107
      
      ie we've made it clear with an ellipsis that we've cut off something from
      the beginning, and it also tries to do it cleanly at a subdirectory level.
      Signed-off-by: NLinus "good taste" Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      62917097
  3. 23 7月, 2005 2 次提交
  4. 14 7月, 2005 2 次提交
  5. 13 7月, 2005 1 次提交
  6. 07 7月, 2005 1 次提交
  7. 04 7月, 2005 1 次提交
    • L
      Fix sparse warnings. · 6da4016a
      Linus Torvalds 提交于
      Mainly making a lot of local functions and variables be marked "static",
      but there was a "zero as NULL" warning in there too.
      6da4016a
  8. 24 6月, 2005 1 次提交
  9. 23 6月, 2005 2 次提交
  10. 22 6月, 2005 1 次提交
    • L
      git-apply: create subdirectories leading up to a new file · 5c8af185
      Linus Torvalds 提交于
      Applying Andrew's latest patch-bomb showed us failing miserably if a new
      subdirectory needed to be created..  That said, it's uncommon enough
      that it's worth optimistically assuming it won't be needed, and then
      creating the subdirectories only on failure.
      5c8af185
  11. 21 6月, 2005 1 次提交
  12. 18 6月, 2005 1 次提交
  13. 14 6月, 2005 1 次提交
  14. 13 6月, 2005 2 次提交
    • L
      git-apply: fix error handling for nonexistent files · 84fb9a4d
      Linus Torvalds 提交于
      Missing argument for error() function. We should really use the
      gcc printf format checking capabilities.
      84fb9a4d
    • L
      git-apply: ignore empty git headers · 206de27e
      Linus Torvalds 提交于
      A meaningful (ie non-empty) git patch always has more information in the
      header than just the "diff --git" line itself: it needs to have either a
      patch associated with it (which implies "---" and "+++" lines in the
      header) or it needs to have rename/copy/delete/create information in it.
      
      Just ignore git patches which have no change information. Otherwise we'll
      end up with a patch that doesn't have filenames etc filled in, and we'll
      be unhappy.
      206de27e
  15. 08 6月, 2005 1 次提交
  16. 06 6月, 2005 7 次提交
    • L
      diff 'rename' format change. · dc938417
      Linus Torvalds 提交于
      Clearly even Junio felt git "rename" header lines should say "from/to"
      instead of "old/new", since he wrote the documentation that way.
      
      This way it also matches "copy".
      
      git-apply will accept both versions, at least for a while.
      dc938417
    • L
      git-apply: consider it an error to apply no changes · f7b79707
      Linus Torvalds 提交于
      A "--stat" or a "--check" will just be quiet, but if
      you try to apply something with no changes, that's an
      error.
      f7b79707
    • L
      git-apply: fix rename header parsing · 33f4d087
      Linus Torvalds 提交于
      It's not "rename from" and "rename to", it's "rename old" and "rename new".
      
      Which is illogical and doesn't match the "copy from/to" case, but that's
      life. Maybe Junio will fix it up one of these days.
      33f4d087
    • L
      git-apply: actually apply patches and update the index · 5aa7d94c
      Linus Torvalds 提交于
      We update the index only if the "--index" flag is given,
      so you can actually use this as a strange kind of "patch"
      program even for non-git usage. Not that you'd likely
      want to, but it comes in handy for testing.
      
      This _should_ more or less get everythign right, but as
      usual I leave the testing to the usrs..
      5aa7d94c
    • L
      git-apply: fix apply of a new file · 30996652
      Linus Torvalds 提交于
      (And fix name handling for when we have an implied
      create or delete event from a traditional diff).
      30996652
    • L
      git-apply: find offset fragments, and really apply them · 6e7c92a9
      Linus Torvalds 提交于
      This applies the fragments in memory, but doesn't actually
      write the results out to the files yet. But we now do all the
      difficult parts, the rest is just basically writing the
      results out and updating the index.
      6e7c92a9
    • L
      git-apply: first cut at actually checking fragment data · 3cca928d
      Linus Torvalds 提交于
      Right now it requires that the fragment offsets be exact,
      and it doesn't actually apply the fragment yet, but it
      does find where it goes and verify the data.
      
      Next step: actually applying the fragment changes.
      3cca928d
  17. 01 6月, 2005 2 次提交
  18. 31 5月, 2005 1 次提交
    • J
      [PATCH] Show dissimilarity index for D and N case. · 70aadac0
      Junio C Hamano 提交于
      The way broken deletes and creates are shown in the -p
      (diff-patch) output format has become consistent with how
      rename/copy edits are shown.  They will show "dissimilarity
      index" value, immediately following the "deleted file mode" and
      "new file mode" lines.
      
      The git-apply is taught to grok such an extended header.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      70aadac0
  19. 27 5月, 2005 6 次提交
  20. 25 5月, 2005 1 次提交
  21. 24 5月, 2005 4 次提交