1. 28 4月, 2006 1 次提交
    • J
      built-in count-objects. · c7432087
      Junio C Hamano 提交于
      Also it learned to do -v (verbose) to report:
      
      	- number of loose objects
      	- disk occupied by loose objects
      	- number of objects in local packs
      	- number of loose objects that are also in pack
      	- unrecognised garbage in .git/objects/??/.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c7432087
  2. 26 4月, 2006 2 次提交
  3. 22 4月, 2006 3 次提交
  4. 20 4月, 2006 3 次提交
    • J
      git-update-index --unresolve · 2bd452d3
      Junio C Hamano 提交于
      Retire git-unresolve and make it into "git-update-index --unresolve".
      It processes all paths that follow.
      
      During a merge, you would mark a path that is dealt with with:
      
      	$ git update-index hello
      
      and you would "undo" it with:
      
      	$ git update-index --unresolve hello
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2bd452d3
    • J
      Add git-unresolve <paths>... · ec167793
      Junio C Hamano 提交于
      This is an attempt to address the issue raised on #git channel
      recently by Carl Worth.
      
      After a conflicted automerge, "git diff" shows a combined diff
      to give you how the tentative automerge result differs from
      what came from each branch.  During a complex merge, it is
      tempting to be able to resolve a few paths at a time, mark
      them "I've dealt with them" with git-update-index to unclutter
      the next "git diff" output, and keep going.  However, when the
      final result does not compile or otherwise found to be a
      mismerge, the workflow to fix the mismerged paths suddenly
      changes to "git diff HEAD -- path" (to get a diff from our
      HEAD before merging) and "git diff MERGE_HEAD -- path" (to get
      a diff from theirs), and it cannot show the combined anymore.
      
      With git-unresolve <paths>..., the versions from our branch and
      their branch for specified blobs are placed in stage #2 and
      stage #3, without touching the working tree files.  This gives
      you the combined diff back for easier review, along with
      "diff --ours" and "diff --theirs".
      
      One thing it does not do is to place the base in stage #1; this
      means "diff --base" would behave differently between the run
      immediately after a conflicted three-way merge, and the run
      after an update-index by mistake followed by a git-unresolve.
      
      We could theoretically run merge-base between HEAD and
      MERGE_HEAD to find which tree to place in stage #1, but
      reviewing "diff --base" is not that useful so....
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ec167793
    • J
      diff: move diff.c to diff-lib.c to make room. · ba580aea
      Junio C Hamano 提交于
      Now I am not doing any real "git-diff in C" yet, but this would
      help before doing so.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ba580aea
  5. 19 4月, 2006 1 次提交
  6. 17 4月, 2006 1 次提交
  7. 13 4月, 2006 1 次提交
    • J
      Makefile: $(MAKE) check-docs · 8c989ec5
      Junio C Hamano 提交于
      This target lists undocumented commands, and/or whose document
      is not referenced from the main git documentation.
      
      For now, there are some exceptions I added primarily because I
      lack the energy to document them myself:
      
       - merge backends (we should really document them)
       - ssh-push/ssh-pull (does anybody still use them?)
       - annotate and blame (maybe after one of them eats the other ;-)
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8c989ec5
  8. 12 4月, 2006 2 次提交
  9. 11 4月, 2006 3 次提交
  10. 09 4月, 2006 1 次提交
    • J
      log-tree: separate major part of diff-tree. · 5f1c3f07
      Junio C Hamano 提交于
      This separates out the part that deals with one-commit diff-tree
      (and --stdin form) into a separate log-tree module.
      
      There are two goals with this.  The more important one is to be
      able to make this part available to "git log --diff", so that we
      can have a native "git whatchanged" command.  Another is to
      simplify the commit log generation part simpler.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5f1c3f07
  11. 06 4月, 2006 1 次提交
  12. 05 4月, 2006 4 次提交
  13. 01 4月, 2006 1 次提交
  14. 30 3月, 2006 1 次提交
    • J
      tree/diff header cleanup. · 1b0c7174
      Junio C Hamano 提交于
      Introduce tree-walk.[ch] and move "struct tree_desc" and
      associated functions from various places.
      
      Rename DIFF_FILE_CANON_MODE(mode) macro to canon_mode(mode) and
      move it to cache.h.  This macro returns the canonicalized
      st_mode value in the host byte order for files, symlinks and
      directories -- to be compared with a tree_desc entry.
      create_ce_mode(mode) in cache.h is similar but is intended to be
      used for index entries (so it does not work for directories) and
      returns the value in the network byte order.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1b0c7174
  15. 28 3月, 2006 1 次提交
  16. 27 3月, 2006 2 次提交
  17. 26 3月, 2006 1 次提交
    • L
      Use a *real* built-in diff generator · 3443546f
      Linus Torvalds 提交于
      This uses a simplified libxdiff setup to generate unified diffs _without_
      doing  fork/execve of GNU "diff".
      
      This has several huge advantages, for example:
      
      Before:
      
      	[torvalds@g5 linux]$ time git diff v2.6.16.. > /dev/null
      
      	real    0m24.818s
      	user    0m13.332s
      	sys     0m8.664s
      
      After:
      
      	[torvalds@g5 linux]$ time git diff v2.6.16.. > /dev/null
      
      	real    0m4.563s
      	user    0m2.944s
      	sys     0m1.580s
      
      and the fact that this should be a lot more portable (ie we can ignore all
      the issues with doing fork/execve under Windows).
      
      Perhaps even more importantly, this allows us to do diffs without actually
      ever writing out the git file contents to a temporary file (and without
      any of the shell quoting issues on filenames etc etc).
      
      NOTE! THIS PATCH DOES NOT DO THAT OPTIMIZATION YET! I was lazy, and the
      current "diff-core" code actually will always write the temp-files,
      because it used to be something that you simply had to do. So this current
      one actually writes a temp-file like before, and then reads it into memory
      again just to do the diff. Stupid.
      
      But if this basic infrastructure is accepted, we can start switching over
      diff-core to not write temp-files, which should speed things up even
      further, especially when doing big tree-to-tree diffs.
      
      Now, in the interest of full disclosure, I should also point out a few
      downsides:
      
       - the libxdiff algorithm is different, and I bet GNU diff has gotten a
         lot more testing. And the thing is, generating a diff is not an exact
         science - you can get two different diffs (and you will), and they can
         both be perfectly valid. So it's not possible to "validate" the
         libxdiff output by just comparing it against GNU diff.
      
       - GNU diff does some nice eye-candy, like trying to figure out what the
         last function was, and adding that information to the "@@ .." line.
         libxdiff doesn't do that.
      
       - The libxdiff thing has some known deficiencies. In particular, it gets
         the "\No newline at end of file" case wrong. So this is currently for
         the experimental branch only. I hope Davide will help fix it.
      
      That said, I think the huge performance advantage, and the fact that it
      integrates better is definitely worth it. But it should go into a
      development branch at least due to the missing newline issue.
      
      Technical note: this is based on libxdiff-0.17, but I did some surgery to
      get rid of the extraneous fat - stuff that git doesn't need, and seriously
      cutting down on mmfile_t, which had much more capabilities than the diff
      algorithm either needed or used. In this version, "mmfile_t" is just a
      trivial <pointer,length> tuple.
      
      That said, I tried to keep the differences to simple removals, so that you
      can do a diff between this and the libxdiff origin, and you'll basically
      see just things getting deleted. Even the mmfile_t simplifications are
      left in a state where the diffs should be readable.
      
      Apologies to Davide, whom I'd love to get feedback on this all from (I
      wrote my own "fill_mmfile()" for the new simpler mmfile_t format: the old
      complex format had a helper function for that, but I did my surgery with
      the goal in mind that eventually we _should_ just do
      
      	mmfile_t mf;
      
      	buf = read_sha1_file(sha1, type, &size);
      	mf->ptr = buf;
      	mf->size = size;
      	.. use "mf" directly ..
      
      which was really a nightmare with the old "helpful" mmfile_t, and really
      is that easy with the new cut-down interfaces).
      
      [ Btw, as any hawk-eye can see from the diff, this was actually generated
        with itself, so it is "self-hosting". That's about all the testing it
        has gotten, along with the above kernel diff, which eye-balls correctly,
        but shows the newline issue when you double-check it with "git-apply" ]
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      3443546f
  18. 19 3月, 2006 1 次提交
  19. 11 3月, 2006 1 次提交
    • M
      Add git-imap-send, derived from isync 1.0.1. · f2561fda
      Mike McCormack 提交于
      git-imap-send drops a patch series generated by git-format-patch into an
      IMAP folder. This allows patch submitters to send patches through their
      own mail program.
      
      git-imap-send uses the following values from the GIT repository
      configuration:
      
      The target IMAP folder:
      
      [imap]
               Folder = "INBOX.Drafts"
      
      A command to open an ssh tunnel to the imap mail server.
      
      [imap]
               Tunnel = "ssh -q user@imap.server.com /usr/bin/imapd ./Maildir
      2> /dev/null"
      
      [imap]
               Host = imap.server.com
               User = bob
               Password = pwd
               Port = 143
      f2561fda
  20. 10 3月, 2006 1 次提交
  21. 09 3月, 2006 1 次提交
  22. 08 3月, 2006 1 次提交
    • N
      Update http-push functionality · aa1dbc98
      Nick Hengeveld 提交于
      This brings http-push functionality more in line with the ssh/git version,
      by borrowing bits from send-pack and rev-list to process refspecs and
      revision history in more standard ways.  Also, the status of remote objects
      is determined using PROPFIND requests for the object directory rather than
      HEAD requests for each object - while it may be less efficient for small
      numbers of objects, this approach is able to get the status of all remote
      loose objects in a maximum of 256 requests.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      aa1dbc98
  23. 06 3月, 2006 2 次提交
  24. 05 3月, 2006 1 次提交
  25. 01 3月, 2006 3 次提交