1. 30 3月, 2013 4 次提交
    • J
      t7800: fix tests when difftool uses --no-symlinks · 3caf5a93
      John Keeping 提交于
      When 'git difftool --dir-diff' is using --no-symlinks (either explicitly
      or implicitly because it's running on Windows), any working tree files
      that have been copied to the temporary directory are copied back after
      the difftool completes.
      
      Because an earlier test uses "git add .", the "output" file used by
      tests is tracked by Git and the following sequence occurs during some
      tests:
      
      1) the shell opens "output" to redirect the difftool output
      2) difftool copies the empty "output" to the temporary directory
      3) difftool runs "ls" which writes to "output"
      4) difftool copies the empty "output" file back over the output of the
         command
      5) the output file doesn't contain the expected output, causing the
         test to fail
      
      Instead of adding all changes, explicitly add only the files that the
      test is using, allowing later tests to write their result files into the
      working tree.
      Signed-off-by: NJohn Keeping <john@keeping.me.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3caf5a93
    • J
      t7800: don't hide grep output · 472353a5
      John Keeping 提交于
      Remove the stdin_contains and stdin_doesnt_contain helper functions
      which add nothing but hide the output of grep, hurting debugging.
      Suggested-by: NJohannes Sixt <j.sixt@viscovery.net>
      Signed-off-by: NJohn Keeping <john@keeping.me.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      472353a5
    • J
      difftool: don't overwrite modified files · 67aa147a
      John Keeping 提交于
      After running the user's diff tool, git-difftool will copy any files
      that differ between the working tree and the temporary tree.  This is
      useful when the user edits the file in their diff tool but is wrong if
      they edit the working tree file while examining the diff.
      
      Instead of copying unconditionally when the files differ, create and
      index from the working tree files and only copy the temporary file back
      if it was modified and the working tree file was not.  If both files
      have been modified, print a warning and exit with an error.
      
      Note that we cannot use an existing index in git-difftool since those
      contain the modified files that need to be checked out but here we are
      looking at those files which are copied from the working tree and not
      checked out.  These are precisely the files which are not in the
      existing indices.
      Signed-off-by: NJohn Keeping <john@keeping.me.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      67aa147a
    • J
      t7800: move '--symlinks' specific test to the end · bf341b90
      John Keeping 提交于
      This will group the tests more logically when we introduce a helper to
      run most --dir-diff tests with both --symlinks and --no-symlinks.
      Signed-off-by: NJohn Keeping <john@keeping.me.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bf341b90
  2. 29 3月, 2013 10 次提交
    • J
      Merge branch 'yd/use-test-config-unconfig' · 631bc94e
      Junio C Hamano 提交于
      Bulk-update of the test suite.
      
      * yd/use-test-config-unconfig:
        t5520: use test_config to set/unset git config variables (leftover bits)
        t7600: use test_config to set/unset git config variables
        t7502: remove clear_config
        t7502: use test_config to set/unset git config variables
        t9500: use test_config to set/unset git config variables
        t7508: use test_config to set/unset git config variables
        t7500: use test_config to set/unset git config variables
        t5541: use test_config to set/unset git config variables
        t5520: use test_config to set/unset git config variables
        t4202: use test_config/test_unconfig to set/unset git config variables
        t4034: use test_config/test_unconfig to set/unset git config variables
        t4304: use test_config to set/unset git config variables
        t3400: use test_config to set/unset git config variables
      631bc94e
    • J
      Merge branch 'kk/revwalk-slop-too-many-commit-within-a-second' · 74bd5268
      Junio C Hamano 提交于
      Allow the revision "slop" code to look deeper while commits with
      exactly the same timestamps come next to each other (which can
      often happen after a large "am" and "rebase" session).
      
      * kk/revwalk-slop-too-many-commit-within-a-second:
        Fix revision walk for commits with the same dates
      74bd5268
    • J
      Merge branch 'rr/tests-dedup-test-config' · 4806c8c5
      Junio C Hamano 提交于
      * rr/tests-dedup-test-config:
        t4018,7810,7811: remove test_config() redefinition
      4806c8c5
    • J
      Merge branch 'yd/doc-is-in-asciidoc' · f893be27
      Junio C Hamano 提交于
      * yd/doc-is-in-asciidoc:
        CodingGuidelines: our documents are in AsciiDoc
      f893be27
    • J
      Merge branch 'yd/doc-merge-annotated-tag' · f1c8d833
      Junio C Hamano 提交于
      Document the 1.7.9 feature to merge a signed tag and keep that in
      the mergetag header in the resulting commit better.
      
      * yd/doc-merge-annotated-tag:
        Documentation: merging a tag is a special case
      f1c8d833
    • J
      Merge branch 'jc/remove-treesame-parent-in-simplify-merges' · 436b60ce
      Junio C Hamano 提交于
      The --simplify-merges logic did not cull irrelevant parents from a
      merge that is otherwise not interesting with respect to the paths
      we are following.
      
      This touches a fairly core part of the revision traversal
      infrastructure; even though I think this change is correct, please
      report immediately if you find any unintended side effect.
      
      * jc/remove-treesame-parent-in-simplify-merges:
        simplify-merges: drop merge from irrelevant side branch
      436b60ce
    • J
      Merge branch 'jk/checkout-attribute-lookup' · 39c5835d
      Junio C Hamano 提交于
      Codepath to stream blob object contents directly from the object
      store to filesystem did not use the correct path to find conversion
      filters when writing to temporary files.
      
      * jk/checkout-attribute-lookup:
        t2003: work around path mangling issue on Windows
        entry: fix filter lookup
        t2003: modernize style
      39c5835d
    • J
      Merge branch 'jk/difftool-dir-diff-edit-fix' · 18973d8a
      Junio C Hamano 提交于
      "git difftool --dir-diff" made symlinks to working tree files when
      preparing a temporary directory structure, so that accidental edits
      of these files in the difftool are reflected back to the working
      tree, but the logic to decide when to do so was not quite right.
      
      * jk/difftool-dir-diff-edit-fix:
        difftool --dir-diff: symlink all files matching the working tree
        difftool: avoid double slashes in symlink targets
        git-difftool(1): fix formatting of --symlink description
      18973d8a
    • J
      Merge branch 'maint' · d8355e5e
      Junio C Hamano 提交于
      * maint:
        git help config: s/insn/instruction/
      d8355e5e
    • J
      Merge branch 'maint-1.8.1' into maint · 5e950c21
      Junio C Hamano 提交于
      * maint-1.8.1:
        git help config: s/insn/instruction/
      5e950c21
  3. 28 3月, 2013 11 次提交
  4. 27 3月, 2013 15 次提交