1. 29 7月, 2006 1 次提交
    • L
      Call setup_git_directory() early · db6296a5
      Linus Torvalds 提交于
      Any git command that expects to work in a subdirectory of a project, and
      that reads the git config files (which is just about all of them) needs to
      make sure that it does the "setup_git_directory()" call before it tries to
      read the config file.
      
      This means, among other things, that we need to move the call out of
      "init_revisions()", and into the caller.
      
      This does the mostly trivial conversion to do that.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      db6296a5
  2. 10 7月, 2006 2 次提交
  3. 19 6月, 2006 1 次提交
  4. 18 6月, 2006 1 次提交
    • L
      Move "void *util" from "struct object" into "struct commit" · d3ff6f55
      Linus Torvalds 提交于
      Every single user actually wanted this only for commit objects, and we
      have no reason to waste space on it for other object types. So just move
      the structure member from the low-level "struct object" into the "struct
      commit".
      
      This leaves the commit object the same size, and removes one unnecessary
      pointer from all other object allocations.
      
      This shrinks memory usage (still at a fairly hefty half-gig, admittedly)
      of "git-rev-list --all --objects" on the mozilla repo by another 5% in my
      tests.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d3ff6f55
  5. 17 6月, 2006 1 次提交
  6. 30 5月, 2006 1 次提交
  7. 29 5月, 2006 1 次提交
  8. 04 5月, 2006 1 次提交
  9. 11 4月, 2006 1 次提交
  10. 07 4月, 2006 1 次提交
  11. 06 4月, 2006 2 次提交
  12. 04 4月, 2006 1 次提交
  13. 24 3月, 2006 1 次提交
  14. 22 3月, 2006 1 次提交
  15. 18 3月, 2006 2 次提交
  16. 11 3月, 2006 1 次提交
  17. 06 3月, 2006 5 次提交
  18. 05 3月, 2006 1 次提交
    • J
      Const tightening. · 9201c707
      Junio C Hamano 提交于
      Mark Wooding noticed there was a type mismatch warning in git.c; this
      patch does things slightly differently (mostly tightening const) and
      was what I was holding onto, waiting for the setup-revisions change
      to be merged into the master branch.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9201c707
  19. 03 3月, 2006 1 次提交
    • F
      git-blame, take 2 · fc675b8c
      Fredrik Kuivinen 提交于
      Here is an updated version of git-blame. The main changes compared to
      the first version are:
      
      * Use the new revision.h interface to do the revision walking
      * Do the right thing in a lot of more cases than before. In particular
        parallel development tracks are hopefully handled sanely.
      * Lots of clean-up
      
      It still won't follow file renames though.
      
      There are still some differences in the output between git-blame and
      git-annotate. For example, in 'Makefile' git-blame assigns lines
      354-358 to 455a7f32 and git-annotate
      assigns the same lines to 79a9d8ea.
      
      I think git-blame is correct in this case. This patterns occur in
      several other places, git-annotate seems to sometimes assign lines to
      merge commits when the lines actually changed in some other commit
      which precedes the merge.
      
      [jc: I have conned Ryan into doing test cases, so that it would
      help development and fixes on both implementations.  Let the
      battle begin! ;-) ]
      Signed-off-by: NFredrik Kuivinen <freku045@student.liu.se>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fc675b8c
  20. 21 2月, 2006 1 次提交
    • F
      Add git-blame, a tool for assigning blame. · cbfb73d7
      Fredrik Kuivinen 提交于
      I have also been working on a blame program. The algorithm is pretty
      much the one described by Junio in his blame.perl. My variant doesn't
      handle renames, but it shouldn't be too hard to add that. The output
      is minimal, just the line number followed by the commit SHA1.
      
      An interesting observation is that the output from my git-blame and
      your git-annotate doesn't match on all files in the git
      repository. One example where several lines differ is read-cache.c. I
      haven't investigated it further to find out which one is correct.
      
      The code should be considered as a work in progress. It certainly has
      a couple of rough edges. The output looks fairly sane on the few files
      I have tested it on, but it wouldn't be too surprising if it gets some
      cases wrong.
      
      [jc: adding it to pu for wider comments. I did minimum
      whitespace fixups but it still needs an indent run and
      -Wdeclaration-after-statement fixups.]
      Signed-off-by: NFredrik Kuivinen <freku045@student.liu.se>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cbfb73d7