1. 25 5月, 2017 4 次提交
  2. 09 11月, 2006 1 次提交
    • J
      git-pickaxe: retire pickaxe · acca687f
      Junio C Hamano 提交于
      Just make it take over blame's place.  Documentation and command
      have all stopped mentioning "git-pickaxe".  The built-in synonym
      is left in the command table, so you can still say "git pickaxe",
      but it probably is a good idea to retire it as well.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      acca687f
  3. 06 11月, 2006 1 次提交
  4. 31 10月, 2006 1 次提交
  5. 12 10月, 2006 1 次提交
  6. 06 10月, 2006 5 次提交
    • J
      git-blame --porcelain · b5c698d9
      Junio C Hamano 提交于
      The new option makes the command's native output format to emit
      output that is easier to handle by Porcelain.
      
      Each line is output after a header.  The header at the minimum
      has the first line which has:
      
       - 40-byte SHA-1 of the commit the line is attributed to;
      
       - the line number of the line in the original file;
      
       - the line number of the line in the final file;
      
       - on a line that starts a group of line from a different commit
         than the previous one, the number of lines in this group.  On
         subsequent lines this field is absent.
      
      This header line is followed by the following information once
      for each commit:
      
       - author name ("author"), email ("author-mail"), time
         ("author-time"), and timezone ("author-tz"); similarly for
         committer.
      
       - filename in the commit the line is attributed to.
      
       - the first line of the commit log message ("summary").
      
      The contents of the actual line is output after the above
      header, prefixed by a TAB. This is to allow adding more header
      elements later.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b5c698d9
    • J
      blame.c: move code to output metainfo into a separate function. · c137f40f
      Junio C Hamano 提交于
      This does not change any behaviour, but just separates out the
      code to emit the initial part of the output of each line into a
      separate function, since I'll be mucking with it further.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c137f40f
    • J
      git-blame: --show-number (and -n) · cf54a029
      Junio C Hamano 提交于
      The new option makes the command's native output format show the
      original line number in the blamed revision.
      
      Note: the current implementation of find_orig_linenum involves
      linear search through the line_map array every time.  It should
      probably build a reverse map upfront and do a simple look-up to
      speed things up, but I'll leave it to more clever and beautiful
      people ;-).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cf54a029
    • J
      git-blame: --show-name (and -f) · eb93b724
      Junio C Hamano 提交于
      The new option makes the command's native output format show the
      filename even when there were no renames in its history, to make
      it simpler for Porcelains to parse its output.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      eb93b724
    • J
      blame.c: whitespace and formatting clean-up. · 506e49ff
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      506e49ff
  7. 02 9月, 2006 1 次提交
    • S
      Replace uses of strdup with xstrdup. · 9befac47
      Shawn Pearce 提交于
      Like xmalloc and xrealloc xstrdup dies with a useful message if
      the native strdup() implementation returns NULL rather than a
      valid pointer.
      
      I just tried to use xstrdup in new code and found it to be missing.
      However I expected it to be present as xmalloc and xrealloc are
      already commonly used throughout the code.
      
      [jc: removed the part that deals with last_XXX, which I am
       finding more and more dubious these days.]
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9befac47
  8. 24 8月, 2006 2 次提交
    • J
      Convert memset(hash,0,20) to hashclr(hash). · a8e0d16d
      Junio C Hamano 提交于
      In the same spirit as hashcmp() and hashcpy().
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a8e0d16d
    • S
      Convert memcpy(a,b,20) to hashcpy(a,b). · e702496e
      Shawn Pearce 提交于
      This abstracts away the size of the hash values when copying them
      from memory location to memory location, much as the introduction
      of hashcmp abstracted away hash value comparsion.
      
      A few call sites were using char* rather than unsigned char* so
      I added the cast rather than open hashcpy to be void*.  This is a
      reasonable tradeoff as most call sites already use unsigned char*
      and the existing hashcmp is also declared to be unsigned char*.
      
      [jc: Splitted the patch to "master" part, to be followed by a
       patch for merge-recursive.c which is not in "master" yet.
      
       Fixed the cast in the latter hunk to combine-diff.c which was
       wrong in the original.
      
       Also converted ones left-over in combine-diff.c, diff-lib.c and
       upload-pack.c ]
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e702496e
  9. 16 8月, 2006 1 次提交
  10. 15 8月, 2006 1 次提交
  11. 04 8月, 2006 1 次提交
  12. 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
  13. 10 7月, 2006 2 次提交
  14. 19 6月, 2006 1 次提交
  15. 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
  16. 17 6月, 2006 1 次提交
  17. 30 5月, 2006 1 次提交
  18. 29 5月, 2006 1 次提交
  19. 04 5月, 2006 1 次提交
  20. 11 4月, 2006 1 次提交
  21. 07 4月, 2006 1 次提交
  22. 06 4月, 2006 2 次提交
  23. 04 4月, 2006 1 次提交
  24. 24 3月, 2006 1 次提交
  25. 22 3月, 2006 1 次提交
  26. 18 3月, 2006 2 次提交
  27. 11 3月, 2006 1 次提交
  28. 06 3月, 2006 2 次提交