1. 10 4月, 2014 3 次提交
  2. 09 4月, 2014 3 次提交
  3. 04 4月, 2014 10 次提交
  4. 01 4月, 2014 1 次提交
    • J
      diff-no-index: correctly diagnose error return from diff_opt_parse() · ad1c3fbd
      Junio C Hamano 提交于
      diff_opt_parse() returns the number of options parsed, or often
      returns error() which is defined to return -1.  Yes, return value of
      0 is "I did not process that option at all", which should cause the
      caller to say that, but negative return should not be forgotten.
      
      This bug caused "diff --no-index" to infinitely show the same error
      message because the returned value was used to decrement the loop
      control variable, e.g.
      
              $ git diff --no-index --color=words a b
              error: option `color' expects "always", "auto", or "never"
              error: option `color' expects "always", "auto", or "never"
              ...
      
      Instead, make it act like so:
      
              $ git diff --no-index --color=words a b
              error: option `color' expects "always", "auto", or "never"
              fatal: invalid diff option/value: --color=words
      Reported-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ad1c3fbd
  5. 27 3月, 2014 1 次提交
  6. 19 3月, 2014 20 次提交
    • J
      Git 1.9.1 · cee0c275
      Junio C Hamano 提交于
      The version numbering scheme has changed since Git 1.9 and we
      dropped the third dewey-decimal from the traditional numbering
      (e.g. both 1.8.4 and 1.8.5 were major feature releases).  This
      release 1.9.1 is the first maintenance relase for Git 1.9.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cee0c275
    • J
      Merge branch 'jk/clean-d-pathspec' into maint · 9526473f
      Junio C Hamano 提交于
      "git clean -d pathspec" did not use the given pathspec correctly
      and ended up cleaning too much.
      
      * jk/clean-d-pathspec:
        clean: simplify dir/not-dir logic
        clean: respect pathspecs with "-d"
      9526473f
    • J
      Merge branch 'da/difftool-git-files' into maint · 01e13d02
      Junio C Hamano 提交于
      "git difftool" misbehaved when the repository is bound to the
      working tree with the ".git file" mechanism, where a textual file
      ".git" tells us where it is.
      
      * da/difftool-git-files:
        t7800: add a difftool test for .git-files
        difftool: support repositories with .git-files
      01e13d02
    • J
      Merge branch 'jk/remote-pushremote-config-reading' into maint · 4097a254
      Junio C Hamano 提交于
      "git push" did not pay attention to branch.*.pushremote if it is
      defined earlier than remote.pushdefault; the order of these two
      variables in the configuration file should not matter, but it did by
      mistake.
      
      * jk/remote-pushremote-config-reading:
        remote: handle pushremote config in any order
      4097a254
    • J
      Merge branch 'jk/commit-dates-parsing-fix' into maint · 8aac6c97
      Junio C Hamano 提交于
      Codepaths that parse timestamps in commit objects have been
      tightened.
      
      * jk/commit-dates-parsing-fix:
        show_ident_date: fix tz range check
        log: do not segfault on gmtime errors
        log: handle integer overflow in timestamps
        date: check date overflow against time_t
        fsck: report integer overflow in author timestamps
        t4212: test bogus timestamps with git-log
      8aac6c97
    • J
      Merge branch 'tr/diff-submodule-no-reuse-worktree' into maint · a5aca6e8
      Junio C Hamano 提交于
      "git diff --external-diff" incorrectly fed the submodule directory
      in the working tree to the external diff driver when it knew it is
      the same as one of the versions being compared.
      
      * tr/diff-submodule-no-reuse-worktree:
        diff: do not reuse_worktree_file for submodules
      a5aca6e8
    • J
      Merge branch 'nd/reset-setup-worktree' into maint · 1f569775
      Junio C Hamano 提交于
      "git reset" needs to refresh the index when working in a working
      tree (it can also be used to match the index to the HEAD in an
      otherwise bare repository), but it failed to set up the working
      tree properly, causing GIT_WORK_TREE to be ignored.
      
      * nd/reset-setup-worktree:
        reset: optionally setup worktree and refresh index on --mixed
      1f569775
    • J
      Merge branch 'jc/check-attr-honor-working-tree' into maint · a8b31316
      Junio C Hamano 提交于
      "git check-attr" when working on a repository with a working tree
      did not work well when the working tree was specified via the
      --work-tree (and obviously with --git-dir) option.
      
      * jc/check-attr-honor-working-tree:
        check-attr: move to the top of working tree when in non-bare repository
        t0003: do not chdir the whole test process
      a8b31316
    • J
      Merge branch 'bk/refresh-missing-ok-in-merge-recursive' into maint · 6d011b8e
      Junio C Hamano 提交于
      "merge-recursive" was broken in 1.7.7 era and stopped working in an
      empty (temporary) working tree, when there are renames involved.
      This has been corrected.
      
      * bk/refresh-missing-ok-in-merge-recursive:
        merge-recursive.c: tolerate missing files while refreshing index
        read-cache.c: extend make_cache_entry refresh flag with options
        read-cache.c: refactor --ignore-missing implementation
        t3030-merge-recursive: test known breakage with empty work tree
      6d011b8e
    • J
      Merge branch 'ds/rev-parse-required-args' into maint · c7b31732
      Junio C Hamano 提交于
      "git rev-parse" was loose in rejecting command line arguments that
      do not make sense, e.g. "--default" without the required value for
      that option.
      
      * ds/rev-parse-required-args:
        rev-parse: check i before using argv[i] against argc
      c7b31732
    • J
      Merge branch 'jk/config-path-include-fix' into maint · 6f016677
      Junio C Hamano 提交于
      include.path variable (or any variable that expects a path that can
      use ~username expansion) in the configuration file is not a boolean,
      but the code failed to check it.
      
      * jk/config-path-include-fix:
        handle_path_include: don't look at NULL value
        expand_user_path: do not look at NULL path
      6f016677
    • J
      Merge branch 'nd/diff-quiet-stat-dirty' into maint · 34120a5f
      Junio C Hamano 提交于
      "git diff --quiet -- pathspec1 pathspec2" sometimes did not return
      correct status value.
      
      * nd/diff-quiet-stat-dirty:
        diff: do not quit early on stat-dirty files
        diff.c: move diffcore_skip_stat_unmatch core logic out for reuse later
      34120a5f
    • J
      Merge branch 'nd/http-fetch-shallow-fix' into maint · 1030d4c8
      Junio C Hamano 提交于
      Attempting to deepen a shallow repository by fetching over smart
      HTTP transport failed in the protocol exchange, when no-done
      extension was used.  The fetching side waited for the list of
      shallow boundary commits after the sending end stopped talking to
      it.
      
      * nd/http-fetch-shallow-fix:
        t5537: move http tests out to t5539
        fetch-pack: fix deepen shallow over smart http with no-done cap
        protocol-capabilities.txt: document no-done
        protocol-capabilities.txt: refer multi_ack_detailed back to pack-protocol.txt
        pack-protocol.txt: clarify 'obj-id' in the last ACK after 'done'
        test: rename http fetch and push test files
        tests: auto-set LIB_HTTPD_PORT from test name
      1030d4c8
    • J
      Merge branch 'nd/submodule-pathspec-ending-with-slash' into maint · 6a0556e4
      Junio C Hamano 提交于
      Allow "git cmd path/", when the 'path' is where a submodule is
      bound to the top-level working tree, to match 'path', despite the
      extra and unnecessary trailing slash (such a slash is often
      given by command line completion).
      
      * nd/submodule-pathspec-ending-with-slash:
        clean: use cache_name_is_other()
        clean: replace match_pathspec() with dir_path_match()
        pathspec: pass directory indicator to match_pathspec_item()
        match_pathspec: match pathspec "foo/" against directory "foo"
        dir.c: prepare match_pathspec_item for taking more flags
        pathspec: rename match_pathspec_depth() to match_pathspec()
        pathspec: convert some match_pathspec_depth() to dir_path_match()
        pathspec: convert some match_pathspec_depth() to ce_path_match()
      6a0556e4
    • U
      test-lib.sh: do not "echo" caller-supplied strings · cb1aefda
      Uwe Storbeck 提交于
      In some places we "echo" a string that is supplied by the calling
      test script and may contain backslash sequences. The echo command
      of some shells, most notably "dash", interprets these backslash
      sequences (POSIX.1 allows this) which may scramble the test
      output.
      Signed-off-by: NUwe Storbeck <uwe@ibr.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cb1aefda
    • B
    • B
      merge hook tests: fix and update tests · 1fc4f97d
      Benoit Pierre 提交于
      - update 'no editor' hook test and add 'editor' hook test
      - make sure the tree is reset to a clean state after running a test
        (using test_when_finished) so later tests are not impacted
      Signed-off-by: NBenoit Pierre <benoit.pierre@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1fc4f97d
    • B
      merge: fix GIT_EDITOR override for commit hook · 0a3beb0e
      Benoit Pierre 提交于
      Don't set GIT_EDITOR to ":" when calling prepare-commit-msg hook if the
      editor is going to be called (e.g. with "merge -e").
      Signed-off-by: NBenoit Pierre <benoit.pierre@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0a3beb0e
    • B
      commit: fix patch hunk editing with "commit -p -m" · 15048f8a
      Benoit Pierre 提交于
      Don't change git environment: move the GIT_EDITOR=":" override to the
      hook command subprocess, like it's already done for GIT_INDEX_FILE.
      Signed-off-by: NBenoit Pierre <benoit.pierre@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      15048f8a
    • B
      test patch hunk editing with "commit -p -m" · 91c9c869
      Benoit Pierre 提交于
      Add (failing) tests: with commit changing the environment to let hooks
      know that no editor will be used (by setting GIT_EDITOR to ":"), the
      "edit hunk" functionality does not work (no editor is launched and the
      whole hunk is committed).
      Signed-off-by: NBenoit Pierre <benoit.pierre@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      91c9c869
  7. 18 3月, 2014 2 次提交