1. 15 6月, 2005 6 次提交
  2. 14 6月, 2005 7 次提交
  3. 13 6月, 2005 20 次提交
    • 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
    • T
      [PATCH] git cvsimport fuzz argument · 9718a00b
      Tommy M. McGuire 提交于
      Add "-z fuzz" argument, passed to cvsps, and clean up argument
      processing.  Also, use "cvsps --cvs-direct", which is is somewhat
      faster.
      
      Give the user the option of specifying the timestamp fuzz passed to
      cvsps.  Looking at the other arguments to it, I can't see anything else
      that would be sane to play with.  Also, use --cvs-direct, which speeds
      up cvsps for remote repositories and doesn't seem to do anything bad to
      local repositories.
      Signed-off-by: NTommy McGuire <mcguire@crsr.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9718a00b
    • T
      [PATCH] cvs-migration.txt · 1cc92ff6
      Tommy M. McGuire 提交于
      Slightly expand the cvsimport description, and make a couple of syntax
      edits.
      
      The way I figure it, telling someone why cvsimport is taking so long
      will improve their overall user experience.  :-)
      Signed-off-by: NTommy McGuire <mcguire@crsr.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      1cc92ff6
    • T
      [PATCH] git cvsimport sanity checking · 861cb6f0
      Tommy M. McGuire 提交于
      This patch adds some sanity checking to git-cvsimport-script,
      specifically forcing the use of cvsps -x (to get the latest information
      from the repository, rather than whatever is in the cache) and aborting
      early if cvsps does not produce any output.
      
      I debated removing the $MODULE directory following an abort, but I
      eventually decided leaving stuff behind would make debugging easier.  On
      the other hand, this patch should help with the "cvsimport left me with
      an empty repository" complaints.
      
      Call cvsps with the -x flag, to get the current state of the repository,
      and abort the cvs import early if cvsps does not produce any output.
      Signed-off-by: NTommy McGuire <mcguire@crsr.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      861cb6f0
    • T
      [PATCH] cvsimport: allow remote CVS repos · 667628d9
      Tommy M. McGuire 提交于
      Remove unneeded sanity tests.  Remote repositories do, indeed, just
      work.
      Signed-off-by: NTommy McGuire <mcguire@crsr.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      667628d9
    • J
      [PATCH] diff-stages: unuglify the too big main() function. · 9939664a
      Junio C Hamano 提交于
      Split the core of the program, diff_stage, from one big "main()"
      function that does it all and leave only the parameter parsing,
      setup and finalize part in the main().
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9939664a
    • J
      [PATCH] read-tree: loosen too strict index requirements · 036d51cc
      Junio C Hamano 提交于
      This patch teaches read-tree 3-way merge that, when only "the
      other tree" changed a path, and if the index file already has
      the same change, we are not in a situation that would clobber
      the index and the work tree, and lets the merge succeed; this is
      case #14ALT in t1000 test.  It does not change the result of the
      merge, but prevents it from failing when it does not have to.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      036d51cc
    • J
      [PATCH] Finish making --emu23 equivalent to pure 2-way merge. · 32192e66
      Junio C Hamano 提交于
      This adds #3ALT rule (and #2ALT rule for symmetry) to the
      read-tree 3-way merge logic that collapses paths that are added
      only in one branch and not in the other internally.
      
      This makes --emu23 to succeed in the last remaining case where
      the pure 2-way merge succeeded and earlier one failed.  Running
      diff between t1001 and t1005 test scripts shows that the only
      difference between the two is that --emu23 can leave the states
      into separate stages so that the user can use usual 3-way merge
      resolution techniques to carry forward the local changes when
      pure 2-way merge would have refused to run.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      32192e66
    • J
      [PATCH] read-tree: fix too strong index requirement #5ALT · e7f9bc41
      Junio C Hamano 提交于
      This fixes too strong index requirement 3-way merge enforces in
      one case: the same file is added in both branches.
      
      In this case, the original code insisted that if the index file
      has that path, it must match our branch and be up-to-date.
      However in this particular case, it only has to match it, and
      can be dirty.  We just need to make sure that we keep the
      work-tree copy instead of checking out the merge result.
      
      The resolution of such a path, however, cannot be left to
      outside script, because we will not keep the original stage0
      entries for unmerged paths when read-tree finishes, and at that
      point, the knowledge of "if we resolve it to match the new file
      added in both branches, the merge succeeds and the work tree
      would not lose information, but we should _not_ update the work
      tree from the resulting index file" is lost.  For this reason,
      the now code needs to resolve this case (#5ALT) internally.
      
      This affects some existing tests in the test suite, but all in
      positive ways.  In t1000 (3-way test), this #5ALT case now gets
      one stage0 entry, instead of an identical stage2 and stage3
      entry pair, for such a path, and one test that checked for merge
      failure (because the test assumed the "stricter-than-necessary"
      behaviour) does not have to fail anymore.  In t1005 (emu23
      test), two tests that involves a case where the work tree
      already had a change introduced in the upstream (aka "merged
      head"), the merge succeeds instead of failing.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e7f9bc41
    • J
      [PATCH] read-tree --emu23. · 03efa6d9
      Junio C Hamano 提交于
      This new flag causes two-way fast forward to internally use the
      three-way merge mechanism.  This behaviour is intended to offer
      a better fast forward semantics when used in a dirty work tree.
      
      The new test t1005 is parallel to the existing t1001 "pure
      2-way" tests, but some parts that are commented out would fail.
      These failures are due to three-way merge enforcing too strict
      index requirements for cases that could succeed.  This problem
      will be addressed by later patches.
      
      Without even changing three-way mechanism, the --emu23 two-way
      fast forward already gives the user an easier-to-handle merge
      result when a file that "merged head" updates has local
      modifications.  This is demonstrated as "case 16" test in t1005.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      03efa6d9
    • J
      [PATCH] Clean up read-tree two-way tests. · 76bc82ca
      Junio C Hamano 提交于
      This is in preparation for "2-way fast-forward emulated with
      3-way mechanism" series.  It does not change what the tests for
      pure 2-way do.  It only changes how it tests things, to make
      reviewing of differences of the two tests easier in later steps.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      76bc82ca
    • J
      [PATCH] Add --diff-filter= output restriction to diff-* family. · f2ce9fde
      Junio C Hamano 提交于
      This is a halfway between debugging aid and a helper to write an
      ultra-smart merge scripts.  The new option takes a string that
      consists of a list of "status" letters, and limits the diff
      output to only those classes of changes, with two exceptions:
      
       - A broken pair (aka "complete rewrite"), does not match D
         (deleted) or N (created).  Use B to look for them.
      
       - The letter "A" in the diff-filter string does not match
         anything itself, but causes the entire diff that contains
         selected patches to be output (this behaviour is similar to
         that of --pickaxe-all for the -S option).
      
      For example,
      
          $ git-rev-list HEAD |
            git-diff-tree --stdin -s -v -B -C --diff-filter=BCR
      
      shows a list of commits that have complete rewrite, copy, or
      rename.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f2ce9fde
    • J
      [PATCH] diff-tree: --find-copies-harder · a7ca6540
      Junio C Hamano 提交于
      Normally, diff-tree does not feed unchanged filepair to diffcore
      for performance reasons, so copies are detected only when the
      source file of the copy happens to be modified in the same
      changeset.  This adds --find-copies-harder flag to tell
      diff-tree to sacrifice the performance in order to find copies
      the same way as other commands in diff-* family.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a7ca6540
    • J
      [PATCH] Tutorial update to adjust for -B fix · d327b89a
      Junio C Hamano 提交于
      Now -B does not say silly "complete rewrite" anymore for small
      files such as the one in the tutorial example.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d327b89a
    • J
      [PATCH] Fix rename/copy when dealing with temporarily broken pairs. · 2210100a
      Junio C Hamano 提交于
      When rename/copy uses a file that was broken by diffcore-break
      as the source, and the broken filepair gets merged back later,
      the output was mislabeled as a rename.  In this case, the source
      file ends up staying in the output, so we should label it as a
      copy instead.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2210100a
    • L
      git-whatchanged: make default output format be pretty. · a7fa68c5
      Linus Torvalds 提交于
      If you want the raw stuff, just do
      
      	git-whatchanged --pretty=raw
      
      and it wil act like it used to.
      a7fa68c5
    • L
      git-diff-tree: fix output with just "--pretty". · ba88e54b
      Linus Torvalds 提交于
      It set verbose, but didn't set the output prefix to "diff-tree".
      ba88e54b
    • J
      [PATCH] Support commit_format in diff-tree · a8db165e
      Junio C Hamano 提交于
      This steals --pretty command line option from rev-list and
      teaches diff-tree to do the same.  With this change,
      
          $ git-whatchanged --pretty
      
      would work as expected.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a8db165e
    • J
      [PATCH] Re-Fix SIGSEGV on unmerged files in git-diff-files -p · dc7090ef
      Junio C Hamano 提交于
      When an unmerged path was fed via diff_unmerged() into diffcore,
      it eventually called run_diff() with "one" and "two" parameters
      with NULL, but run_diff() was not written carefully enough to
      notice this situation.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dc7090ef
    • 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
  4. 10 6月, 2005 4 次提交
  5. 09 6月, 2005 3 次提交