1. 11 2月, 2010 1 次提交
    • J
      t8003: check exit code of command and error message separately · 33f0ea42
      Junio C Hamano 提交于
      Shell reports exit status only from the most downstream command
      in a pipeline.  In these tests, we want to make sure that the
      command fails in a controlled way, and produces a correct error
      message.
      
      This issue was known by Jay who submitted the patch, and also was
      pointed out by Hannes during the review process, but I forgot to
      fix it up before applying.  Sorry about that.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      33f0ea42
  2. 09 2月, 2010 1 次提交
  3. 01 2月, 2010 2 次提交
  4. 30 1月, 2010 1 次提交
  5. 21 1月, 2010 5 次提交
  6. 19 1月, 2010 6 次提交
    • J
      Merge branch 'maint-1.6.4' into maint-1.6.5 · 03c6e97f
      Junio C Hamano 提交于
      * maint-1.6.4:
        Fix mis-backport of t7002
        base85: Make the code more obvious instead of explaining the non-obvious
        base85: encode_85() does not use the decode table
        base85 debug code: Fix length byte calculation
        checkout -m: do not try to fall back to --merge from an unborn branch
        branch: die explicitly why when calling "git branch [-a|-r] branchname".
        textconv: stop leaking file descriptors
        commit: --cleanup is a message option
        git count-objects: handle packs bigger than 4G
        t7102: make the test fail if one of its check fails
      03c6e97f
    • J
      Merge branch 'maint-1.6.3' into maint-1.6.4 · 814035c1
      Junio C Hamano 提交于
      * maint-1.6.3:
        base85: Make the code more obvious instead of explaining the non-obvious
        base85: encode_85() does not use the decode table
        base85 debug code: Fix length byte calculation
        checkout -m: do not try to fall back to --merge from an unborn branch
        branch: die explicitly why when calling "git branch [-a|-r] branchname".
        textconv: stop leaking file descriptors
        commit: --cleanup is a message option
        git count-objects: handle packs bigger than 4G
        t7102: make the test fail if one of its check fails
      
      Conflicts:
      	builtin-commit.c
      814035c1
    • J
      Merge branch 'maint-1.6.2' into maint-1.6.3 · 011c181c
      Junio C Hamano 提交于
      * maint-1.6.2:
        base85: Make the code more obvious instead of explaining the non-obvious
        base85: encode_85() does not use the decode table
        base85 debug code: Fix length byte calculation
        checkout -m: do not try to fall back to --merge from an unborn branch
        branch: die explicitly why when calling "git branch [-a|-r] branchname".
        textconv: stop leaking file descriptors
        commit: --cleanup is a message option
        git count-objects: handle packs bigger than 4G
        t7102: make the test fail if one of its check fails
      
      Conflicts:
      	diff.c
      011c181c
    • J
      Merge commit 'v1.6.4.4-8-g8de65185' into maint-1.6.4 · 18d97f5f
      Junio C Hamano 提交于
      * commit 'v1.6.4.4-8-g8de65185':
        Fix mis-backport of t7002
      18d97f5f
    • J
      Fix mis-backport of t7002 · 8de65185
      Junio C Hamano 提交于
      The original patch that became cfe370c6 (grep: do not segfault when -f is
      used, 2009-10-16), was made against "maint" or newer branch back then, but
      the fix addressed the issue that was present as far as in 1.6.4 series.
      
      The maintainer backported the patch to the 1.6.4 maintenance branch, but
      failed to notice that the new tests assumed the setup done by the script
      in "maint", which did quite a lot more than the same test script in 1.6.4
      series, and the output didn't match the expected result.
      
      This should fix it.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8de65185
    • J
      grep: NUL terminate input from a file · 34f39992
      Jim Meyering 提交于
      Internally "git grep" runs regexec(3) that expects its input string
      to be NUL terminated.  When searching inside blob data, read_sha1_file()
      automatically gives such a buffer, but builtin-grep.c forgot to put
      the NUL at the end, even though it allocated enough space for it.
      Signed-off-by: NJim Meyering <meyering@redhat.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      34f39992
  7. 15 1月, 2010 1 次提交
  8. 10 1月, 2010 5 次提交
  9. 08 1月, 2010 1 次提交
    • B
      git-rm doc: Describe how to sync index & work tree · 47b70120
      Björn Gustavsson 提交于
      Newcomers to git that want to remove from the index only the
      files that have disappeared from the working tree will probably
      look for a way to do that in the documentation for 'git rm'.
      
      Therefore, describe how that can be done (even though it involves
      other commands than 'git rm'). Based on a suggestion by Junio,
      but re-arranged and rewritten to better fit into the style of
      command reference.
      
      While at it, change a single occurrence of "work tree" to "working
      tree" for consistency.
      Signed-off-by: NBjörn Gustavsson <bgustavsson@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      47b70120
  10. 07 1月, 2010 1 次提交
  11. 01 1月, 2010 2 次提交
  12. 30 12月, 2009 6 次提交
  13. 23 12月, 2009 1 次提交
  14. 20 12月, 2009 1 次提交
    • B
      rebase -i: abort cleanly if the editor fails to launch · e49ca974
      Björn Gustavsson 提交于
      If the user's configured editor is emacsclient, the editor
      will fail to launch if emacs is not running and the git
      command that tried to lanuch the editor will abort. For most
      commands, all you have to do is to start emacs and repeat
      the command.
      
      The "git rebase -i" command, however, aborts without cleaning
      the "$GIT_DIR/rebase-merge" directory if it fails to launch the
      editor, so you'll need to do "git rebase --abort" before
      repeating the rebase command.
      
      Change "git rebase -i" to terminate using "die_abort" (instead of
      with "die") if the initial launch of the editor fails.
      Signed-off-by: NBjörn Gustavsson <bgustavsson@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e49ca974
  15. 18 12月, 2009 2 次提交
  16. 17 12月, 2009 3 次提交
    • J
      Git 1.6.5.7 · 527b9d70
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      527b9d70
    • J
      worktree: don't segfault with an absolute pathspec without a work tree · b3100fd5
      Junio C Hamano 提交于
      If a command is run with an absolute path as a pathspec inside a bare
      repository, e.g. "rev-list HEAD -- /home", the code tried to run strlen()
      on NULL, which is the result of get_git_work_tree(), and segfaulted.  It
      should just fail instead.
      
      Currently the function returns NULL even inside .git/ in a repository
      with a work tree, but that is a separate issue.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b3100fd5
    • J
      ignore unknown color configuration · 8b8e8624
      Jeff King 提交于
      When parsing the config file, if there is a value that is
      syntactically correct but unused, we generally ignore it.
      This lets non-core porcelains store arbitrary information in
      the config file, and it means that configuration files can
      be shared between new and old versions of git (the old
      versions might simply ignore certain configuration).
      
      The one exception to this is color configuration; if we
      encounter a color.{diff,branch,status}.$slot variable, we
      die if it is not one of the recognized slots (presumably as
      a safety valve for user misconfiguration). This behavior
      has existed since 801235c5 (diff --color: use
      $GIT_DIR/config, 2006-06-24), but hasn't yet caused a
      problem. No porcelain has wanted to store extra colors, and
      we once a color area (like color.diff) has been introduced,
      we've never changed the set of color slots.
      
      However, that changed recently with the addition of
      color.diff.func. Now a user with color.diff.func in their
      config can no longer freely switch between v1.6.6 and older
      versions; the old versions will complain about the existence
      of the variable.
      
      This patch loosens the check to match the rest of
      git-config; unknown color slots are simply ignored. This
      doesn't fix this particular problem, as the older version
      (without this patch) is the problem, but it at least
      prevents it from happening again in the future.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8b8e8624
  17. 16 12月, 2009 1 次提交
    • J
      help.autocorrect: do not run a command if the command given is junk · 06500a02
      Johannes Sixt 提交于
      If a given command is not found, then help.c tries to guess which one the
      user could have meant. If help.autocorrect is 0 or unset, then a list of
      suggestions is given as long as the dissimilarity between the given command
      and the candidates is not excessively high. But if help.autocorrect was
      non-zero (i.e., a delay after which the command is run automatically), the
      latter restriction on dissimilarity was not obeyed.
      
      In my case, this happened:
      
       $ git ..daab02
       WARNING: You called a Git command named '..daab02', which does not exist.
       Continuing under the assumption that you meant 'read-tree'
       in 4.0 seconds automatically...
      
      The patch reuses the similarity limit that is also applied when the list of
      suggested commands is printed.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      06500a02