1. 15 12月, 2008 2 次提交
    • J
      pager: do not dup2 stderr if it is already redirected · a8335024
      Junio C Hamano 提交于
      An earlier commit 61b80509 (sending errors to stdout under $PAGER,
      2008-02-16) avoided losing the error messages that are sent to the
      standard error when $PAGER is in effect by dup2'ing fd 2 to the pager.
      his way, showing a tag object that points to a bad object:
      
          $ git show tag-foo
      
      would give the error message to the pager.  However, it was not quite
      right if the user did:
      
          $ git show 2>error.log tag-foo
      
      i.e. use the pager but store the errors in a separate file.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a8335024
    • J
      git-show: do not segfault when showing a bad tag · d2dadfe8
      Junio C Hamano 提交于
      When a tag points at a bad or nonexistent object, we should diagnose the
      breakage and exit.  An earlier commit 4f3dcc27 (Fix 'git show' on signed
      tag of signed tag of commit, 2008-07-01) lost this check and made it
      segfault instead; not good.
      
      This fixes it.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d2dadfe8
  2. 13 12月, 2008 1 次提交
  3. 11 12月, 2008 2 次提交
  4. 10 12月, 2008 1 次提交
    • J
      work around Python warnings from AsciiDoc · aa971cb9
      Junio C Hamano 提交于
      It appears that a reference to an anchor defined as [[anchor-name]] from
      another place using <<anchor-name>> syntax, when the anchor name contains
      a string "-with-" in its name, triggers these warnings from Python
      interpreter.
      
        asciidoc -b docbook -d book user-manual.txt
        <string>:1: Warning: 'with' will become a reserved keyword in Python 2.6
        <string>:1: Warning: 'with' will become a reserved keyword in Python 2.6
        <string>:1: Warning: 'with' will become a reserved keyword in Python 2.6
        <string>:1: Warning: 'with' will become a reserved keyword in Python 2.6
      
      There currently is no reference to "Finding comments with given content",
      but for consistency and for futureproofing, the anchor is also updated as
      the other ones that are actually used and trigger these warnings.
      Signed-off-by: NJunio C Hamano <junio@pobox.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      aa971cb9
  5. 09 12月, 2008 1 次提交
    • D
      git-svn: Make following parents atomic · 553589f7
      Deskin Miller 提交于
      find_parent_branch generates branch@rev type branches when one has to
      look back through SVN history to properly get the history for a branch
      copied from somewhere not already being tracked by git-svn.  If in the
      process of fetching this history, git-svn is interrupted, then when one
      fetches again, it will use whatever was last fetched as the parent
      commit and fail to fetch any more history which it didn't get to before
      being terminated.  This is especially troubling in that different
      git-svn copies of the same SVN repository can end up with different
      commit sha1s, incorrectly showing the history as divergent and
      precluding easy collaboration using git push and fetch.
      
      To fix this, when we initialise the Git::SVN object $gs to search for
      and perhaps fetch history, we check if there are any commits in SVN in
      the range between the current revision $gs is at, and the top revision
      for which we were asked to fill history.  If there are commits we're
      missing in that range, we continue the fetch from the current revision
      to the top, properly getting all history before using it as the parent
      for the branch we're trying to create.
      Signed-off-by: NDeskin Miller <deskinm@umich.edu>
      Acked-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      553589f7
  6. 08 12月, 2008 2 次提交
  7. 07 12月, 2008 4 次提交
  8. 03 12月, 2008 5 次提交
  9. 01 12月, 2008 4 次提交
  10. 28 11月, 2008 8 次提交
  11. 27 11月, 2008 4 次提交
  12. 24 11月, 2008 4 次提交
  13. 17 11月, 2008 1 次提交
  14. 16 11月, 2008 1 次提交
    • J
      Teach ls-files --with-tree=<tree> to work with options other than -c · 4b4e26d2
      Junio C Hamano 提交于
      Originally --with-tree=<tree> was designed for the sole purpose of
      checking if a given pathspec makes sense as a parameter to git-commit
      using it in conjunction with --error-unmatch.  It had logic to avoid
      showing the same entry (one came from the original index, another from the
      overlayed tree) twice so that it works with -c (i.e. "show-cached"), but
      otherwise it was not designed to work with the flags such as -m, -d, etc.
      
      This teaches the same logic to cover the codepath for -m and -d.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4b4e26d2